We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf51ad commit b83d76cCopy full SHA for b83d76c
1 file changed
test/parallel/test-memory-usage.js
@@ -19,11 +19,15 @@
19
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
-// Flags: --predictable-gc-schedule
+// Flags: --expose-gc --predictable-gc-schedule
23
'use strict';
24
const common = require('../common');
25
const assert = require('assert');
26
27
+// Clear stale ArrayBuffer backing stores before taking the baseline so the
28
+// exact allocation delta below is not affected by unrelated cleanup.
29
+globalThis.gc();
30
+
31
const r = process.memoryUsage();
32
// On IBMi, the rss memory always returns zero
33
if (!common.isIBMi) {
0 commit comments