Skip to content

Commit

Permalink
test: use faster variant for rss in test-vm-memleak.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#36769
Refs: nodejs#34291
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
PoojaDurgad authored and foxxyz committed Oct 18, 2021
1 parent a88e05c commit fd84b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-vm-memleak.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const interval = setInterval(function() {
} catch {
}

const rss = process.memoryUsage().rss;
const rss = process.memoryUsage.rss();
assert.ok(rss < 64 * 1024 * 1024,
`memory usage: ${rss} (${Math.round(rss / (1024 * 1024))} MB)`);

Expand Down

0 comments on commit fd84b4d

Please sign in to comment.