Skip to content

Instantly share code, notes, and snippets.

@voltrue2
Created August 7, 2017 08:41
Show Gist options
  • Save voltrue2/a0cdcc71caa7ec408b84c01e22c84587 to your computer and use it in GitHub Desktop.
Save voltrue2/a0cdcc71caa7ec408b84c01e22c84587 to your computer and use it in GitHub Desktop.
Use node.js V8 Profiler
# Start your node.js application with profiler
node --prof app.js
# When you stop the application process, you will see the following files:
# If you run your application in cluster mode, you will have multiple log files
isolate-nnnnnnnnnnn-v8.log
# Process the log file(s) to make them human-readable
node --prof-process isolate-nnnnnnnnnn-v8.log > prof
# Open prof file with your favorite text editor
less prof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment