Reading Profiler Output
Flame graphs, hot paths, CPU time vs. wall time, call stacks — vocabulary for interpreting performance profiling output. Advanced
0 / 5 completed
1 / 5
A senior engineer opens a CPU flame graph and points to a wide, flat bar at the top: "The flame graph shows a wide bar for the serialize() function."
What does a wide bar in a CPU flame graph indicate?
In a flame graph (invented by Brendan Gregg): the X-axis represents time (proportion of samples — wider = more CPU time); the Y-axis represents call stack depth (higher = deeper). A wide flat bar at the top means a leaf function is consuming that CPU time directly.
| Flame graph feature | Meaning |
|---|---|
| Wide bar (high % of samples) | This function or its children consume significant CPU time — a hot path candidate for optimisation |
| Tall stack at same width | Deep call chain — all calls are in service of the parent wide bar |
| Narrow bar | Function uses little CPU — low priority for optimisation |
| Leaf function | A function at the top of the stack with no children — it is doing the actual CPU work |