Skip to content

Instantly share code, notes, and snippets.

@Bigous
Created November 9, 2015 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bigous/a036bcdbc93a16bef5dc to your computer and use it in GitHub Desktop.
Save Bigous/a036bcdbc93a16bef5dc to your computer and use it in GitHub Desktop.
Run NodeJS with Garbage Collection and Statistics exposed
@echo off
node --expose-gc --track_gc_object_stats %*
@Bigous
Copy link
Author

Bigous commented Nov 9, 2015

Turn on

globa.gc(); // force garbage collection execution

and

console.log(getV8Statistics()); // shows v8 statistics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment