Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. 'use strict';
  2.  
  3. var util = require('util');
  4.  
  5.  
  6. (function main() {
  7.  
  8. var count = 0;
  9. var interv = setInterval( function(){
  10. count++;
  11. console.log( "... working " + count);
  12. console.log(util.inspect(process.memoryUsage()));
  13.  
  14. if ( count > 1000 ) {
  15. console.log( "... clearing ");
  16. clearInterval( interv );
  17. }
  18.  
  19. }, 1000);
  20.  
  21.  
  22. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement