15 releases (1 stable)
Uses new Rust 2024
| 1.0.0 | Nov 4, 2025 |
|---|---|
| 0.200.2 | Jul 2, 2025 |
| 0.200.1 | Apr 24, 2025 |
| 0.200.0 | Mar 6, 2025 |
| 0.112.1 | Nov 22, 2023 |
#10 in #signal-handler
22KB
418 lines
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.
Dependencies
~9–13MB
~237K SLoC