Hacker News new | ask | show | jobs
by the-wumpus 337 days ago
pprof doesn't do an amazing job of explaining how to use it with perf (which you'd need to use for a rust project like OP), so:

First install perf, graphviz, perf_data_converter and ofc pprof, then generate the data with `perf record [command]`, and display it with `pprof -http=: perf.data`.

1 comments

I typically use gperftools for profiling instead of perf. You can LD_PRELOAD it.