Loading tutorials
main 8 min readcargo build and cargo build --release, and understand what a call stack is. By the end you will know why a profile needs a release build, why that build needs debug information, and how to configure Cargo so 6 min readflamegraph.svg file you can open in a browser. It assumes you can build and run a Cargo project in release mode, use a terminal, and know what a call stack is. The earlier chapters covered how sampling works, how a flamegraph is laid out,6 min readcargo flamegraph or with the perf and inferno pipeline. It also assumes you know what a call stack is. Here you learn to read the picture and decide which function to change first.6 min readperf or cargo flamegraph on Linux. You should know what a call stack is. It explains how a profiler turns a sampled instruction pointer into a full chain of callers, why that sometimes fails, and how to choose between the 7 min readcargo flamegraph does for you. You will run the pipeline by hand: record samples with perf, fold them into counted stacks, and render an SVG with the inferno tools. Knowing each stage helps you fix broken profiles and tune the sampling.5 min readcargo flamegraph, and that you can read it well enough to see that is_prime dominates the time. Here we fix that hotspot and then prove the fix help6 min readcargo flamegraph or with perf and inferno, and that you can read a basic one: width is the share of samples, and the top edge is where the CPU was. It also assumes you know how to spawn threads with std::thread and have seen `async6 min readcargo flamegraph or perf and inferno, and you know that a flamegraph is built from sampled call stacks. Here you will learn what a CPU flamegraph leaves out, how to tell that your prog6 min read