News for hackers. Stuff that matters.
Re:Optimizing a Math Expression Parser in Rust by the-wumpus on Thursday July 10, 2025 @10:16AM (#44521374)
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`.

Re:Optimizing a Math Expression Parser in Rust by IshKebab on Thursday July 10, 2025 @11:33AM (#44522168)
I typically use gperftools for profiling instead of perf. You can LD_PRELOAD it.