ckb-vm-signal-profiler 0.115.0-rc2

Linux signal based profiler for ckb-vm, note this is profiling ckb-vm itself, not the programs running in ckb-vm
docs.rs failed to build ckb-vm-signal-profiler-0.115.0-rc2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

ckb-vm-signal-profiler

Signal based profiler for ckb-vm. Like gperftools, it uses a SIGPROF signal handler to suspend running CKB-VM programs so as to gather profiling data. One advantage of this solution, is that it requires no code injections into CKB-VM. However also due to this design choice, this profiler runs on Linux only for the moment.

See here for an example on using this library.

This library inherits a lot of the signal handler related code from pprof-rs library.

Notes

  • If anything weird happens when loading the generated profiling data, make sure you are using the golang based pprof at here, not the binary from gperftools with the same name.