-
Notifications
You must be signed in to change notification settings - Fork 41
Profiling CPU usage
angelxuanchang edited this page Jan 13, 2018
·
1 revision
Basic steps
- Run
node --prof app.js
to profile your program. It will output aisolate-0xnnnnnnnnnnnn-v8.log
file. - Run
node --prof-process isolate-0xnnnnnnnnnnnn-v8.log > profile.txt
to get a human readable interpretation of the profile log. The resultingprofile.txt
will have the following sections.
[Shared libraries]
[JavaScript]
[C++]
[Summary]
[C++ entry points]
[Bottom up (heavy) profile]
-
Go to
[Summary]
To get an overall breakdown of CPU usage by Javascript/C++/GC/...Go to
[JavaScript]
or[C++]
for the top CPU consuming functionsGo to
[Bottom up (heavy) profile]
to get trace of callers for top CPU consuming functions
See https://nodejs.org/en/docs/guides/simple-profiling/ for more details.
- Home
- Main
- Annotators
- Assets
- Batch processing
- Development
- File formats
- Rendering
- Scene Tools
- Voxels