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

8 lines
188 B
JavaScript
Raw Normal View History

common = require("../common");
assert = common.assert
2009-11-03 08:30:01 +08:00
2009-11-03 20:00:42 +08:00
var r = process.memoryUsage();
console.log(common.inspect(r));
assert.equal(true, r["rss"] > 0);
assert.equal(true, r["vsize"] > 0);