You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch adds a `symbolize` feature which performs online
symbolization of profiles using the `backtrace` crate.
This is often much more convenient than having to manually obtain
binaries and symbolize the profiles, and matches the behavior of e.g.
the `pprof-rs` CPU profiler. It will also allow emitting e.g. flamegraph
SVGs directly, which I'll submit in a follow-up PR.
Online symbolization uses a fair amount of memory for symbol caches, but
this is often a worthwhile tradeoff.
> Note: The profiling data is not symbolized, so either `addr2line` or `llvm-addr2line` needs to be available in the path and pprof needs to be able to discover the respective debuginfos.
96
+
> Note: if symbolization is not enabled, either `addr2line` or `llvm-addr2line` needs to be available in the path and pprof needs to be able to discover the respective debuginfos.
97
+
98
+
To generate symbolized profiles, enable the `symbolize` crate feature:
99
+
100
+
```toml
101
+
[dependencies]
102
+
jemalloc_pprof = { version = "0", features = ["symbolize"] }
0 commit comments