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

8 lines
201 B
JavaScript
Raw Normal View History

2010-12-05 07:20:34 +08:00
var common = require('../common');
var assert = require('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));
2010-12-05 06:45:52 +08:00
assert.equal(true, r['rss'] > 0);
assert.equal(true, r['vsize'] > 0);