Skip to content

Instantly share code, notes, and snippets.

@ghaiklor
Created April 19, 2016 11:15
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 ghaiklor/9e23a51eb7680931912fe351a49d31eb to your computer and use it in GitHub Desktop.
Save ghaiklor/9e23a51eb7680931912fe351a49d31eb to your computer and use it in GitHub Desktop.
Example of statistical profiling result in NodeJS
Statistical profiling result from isolate-0x101804a00-v8.log, (7436 ticks, 1 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
7431 99.9% /usr/local/bin/node
2 0.0% /usr/lib/system/libsystem_malloc.dylib
1 0.0% /usr/lib/system/libsystem_platform.dylib
[JavaScript]:
ticks total nonlib name
1 0.0% 50.0% LazyCompile: ~runInThisContext node.js:306:28
[C++]:
ticks total nonlib name
[Summary]:
ticks total nonlib name
1 0.0% 50.0% JavaScript
0 0.0% 0.0% C++
5 0.1% 250.0% GC
7434 100.0% Shared libraries
1 0.0% Unaccounted
[C++ entry points]:
ticks cpp total name
[Bottom up (heavy) profile]:
Note: percentage shows a share of a particular caller in the total
amount of its parent calls.
Callers occupying less than 2.0% are not shown.
ticks parent name
7431 99.9% /usr/local/bin/node
7425 99.9% /usr/local/bin/node
7389 99.5% LazyCompile: ~pbkdf2 crypto.js:557:16
5144 69.6% LazyCompile: ~exports.pbkdf2Sync crypto.js:552:30
5144 100.0% LazyCompile: ~hash /Users/ghaiklor/Library/Projects/test.js:5:14
5144 100.0% Function: ~<anonymous> /Users/ghaiklor/Library/Projects/test.js:1:11
2245 30.4% LazyCompile: *hash /Users/ghaiklor/Library/Projects/test.js:5:14
2245 100.0% Function: ~<anonymous> /Users/ghaiklor/Library/Projects/test.js:1:11
2245 100.0% LazyCompile: ~Module._compile module.js:380:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment