Created
August 7, 2017 08:41
-
-
Save voltrue2/a0cdcc71caa7ec408b84c01e22c84587 to your computer and use it in GitHub Desktop.
Use node.js V8 Profiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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