0x/examples/cpu-profiler
Khairul Azhar Kasmiran 5621be1476
Support .cpuprofile of node --cpu-prof (#256)
* Support `.cpuprofile` of `node --cpu-prof`

* `convert_cpu_prof` -> `convertCpuProf`

* Do separate test script for `node --cpu-prof`

* Fix linter `const` error

* Format code according to `standard`
2022-06-14 10:42:16 +02:00
..
2019-04-23 17:31:10 +02:00
2019-04-23 17:31:10 +02:00
2019-04-23 17:31:10 +02:00
2019-04-23 17:31:10 +02:00
2019-04-23 17:31:10 +02:00

visualize .cpuprofile example

You need curl installed. This will probably work on linux and macOS.

Running:

npm i
./test.sh

Then open flamegraph.html and you should see something like this:

flamegraph