This will be a rather short blog post, because all I wanted to show off was this flamegraph, generated from one of the questions in the competitive programming course I’m taking:
(Note: the SVG file is actually interactive, but you do need to right-click on the image and open it in a new tab!)
I love looking at flamegraphs!
Side-note: getting cargo flamegraph
running on Windows is slightly involved.
dtrace
functionality by running bcdedit /set dtrace on
in an elevated permissions terminal.dtrace
repository._NT_SYMBOL_PATH
system environment variable to the following (see details on why here):srv*c:\symbols*https://msdl.microsoft.com/download/symbols
On Linux, you do need the linux-tools
packages for your specific kernel version. I’m using NixOS, so I just had to run nix shell nixpkgs#linuxKernel.packages.linux_latest_libre.perf
to get just the perf
package that flamegraph-rs
requires. (No idea what the libre
part is for, but there wasn’t one without that suffix…) Check out the official installation section of the README for distro-specific instructions.