3 ms·
Whaaat, Chrome has a built-in flamegraph profiler that you can use with profiling data from languages like Rust (and presumably others)?! Sweet tip.
by gavinray 4y ago
Whaaat, Chrome has a built-in flamegraph profiler that you can use with profiling data from languages like Rust (and presumably others)?!
Sweet tip.
- oxff 4y agohttps://fasterthanli.me/articles/when-rustc-explodes https://fasterthanli.me/articles/when-rustc-explodes & https://fasterthanli.me/articles/why-is-my-rust-build-so-slow https://fasterthanli.me/articles/why-is-my-rust-build-so-slo... these two articles also showcase how to use chrome for this
- nszceta 4y agoSimilarly, py-spy is a sampling profiler for Python programs. It lets you visualize what your Python program is spending time on without restarting the program or modifying the code in any way. py-spy is extremely low overhead: it is written in Rust for speed and doesn't run in the same process as the profiled Python program. This means py-spy is safe to use against production Python code. I'm not sure if it exports results in a format Chrome can render but it does produce great interactive SVGs and is compatible with speedscope.app https://github.com/benfred/py-spy https://github.com/benfred/py-spy https://github.com/jlfwong/speedscope https://github.com/jlfwong/speedscope
- dralley 4y agoThere is also https://profiler.firefox.com/ https://profiler.firefox.com/
- namibj 4y agoWhile yes, it's really meh compared to something like Hotspot. Interactivity and availability do not favor JavaScript+DOM.