CKB VM PProf
This project profiling data in the format expected by the flamegraph visualization tool. It is a sub-project of ckb-vm.
Usage
Suppose the program to be tested is:
int
int
We should take the -g
option on compiling for saving the debugging information:
To convert the textual representation of a flamegraph to a visual one, first install inferno:
Then, pass the file created by FlameLayer into inferno-flamegraph:
|
Open the svg:
Know more about ckb-vm-pprof
- ckb-vm-pprof-converter: This project converts raw data emitted by ckb-vm-pprof to profile.proto format supported by pprof for detailed analysis.
Licences
MIT