node/test/simple/test-memory-usage.js

8 lines
201 B
JavaScript

var common = require('../common');
var assert = require('assert');
var r = process.memoryUsage();
console.log(common.inspect(r));
assert.equal(true, r['rss'] > 0);
assert.equal(true, r['vsize'] > 0);