Skip to content

Commit daad0ab

Browse files
PoojaDurgaddanielleadams
authored andcommitted
test: use faster variant for rss in test-vm-memleak.js
PR-URL: #36769 Refs: #34291 Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 53cf996 commit daad0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pummel/test-vm-memleak.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const interval = setInterval(function() {
3434
} catch {
3535
}
3636

37-
const rss = process.memoryUsage().rss;
37+
const rss = process.memoryUsage.rss();
3838
assert.ok(rss < 64 * 1024 * 1024,
3939
`memory usage: ${Math.round(rss / (1024 * 1024))}Mb`);
4040

0 commit comments

Comments
 (0)