Skip to content

Commit 0b46854

Browse files
author
Forbes Lindesay
committed
Don't measure resident swap size
It does not indicate a memory leak, and is very sensitive to environmental factors.
1 parent 19bfb2a commit 0b46854

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/memory-leak.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function next() {
2727
console.dir(sampleA)
2828
console.log('Memory usage at end:');
2929
console.dir(sampleB)
30-
assert(sampleA.rss * 1.2 > sampleB.rss, 'RSS should not grow by more than 20%')
3130
assert(sampleA.heapTotal * 1.2 > sampleB.heapTotal, 'heapTotal should not grow by more than 20%')
3231
assert(sampleA.heapUsed * 1.2 > sampleB.heapUsed, 'heapUsed should not grow by more than 20%')
3332
}

0 commit comments

Comments
 (0)