Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var util = require('util');
- (function main() {
- var count = 0;
- var interv = setInterval( function(){
- count++;
- console.log( "... working " + count);
- console.log(util.inspect(process.memoryUsage()));
- if ( count > 1000 ) {
- console.log( "... clearing ");
- clearInterval( interv );
- }
- }, 1000);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement