Flame graph
A flame graph is a visualization of hierarchical stack-trace or resource-usage data in which nested regions have widths proportional to aggregated execution cost or resource consumption.
Cloud Observability in Action
A flame graph is a hierarchical visualization of collected stack traces in which horizontal extent represents call frequency or resource consumption and vertical position represents stack depth.
- How it is used
- Uses stack-profile visualizations to debug code and understand runtime or resource usage.
- How deep it goes
- Explains axes, rectangles, colors, and resource scope with a worked pprof example, but defers detailed rendering internals.
- Examples
- Demonstrates a Go pprof profile where slowTask() dominates CPU time and appears beneath main().
- What you can do after
- Diagnose CPU, memory, or I/O bottlenecks by reading widths, stack depth, and caller relationships.
Read how Cloud Observability in Action explains flame graph →
Latency
FlameGraph profiling is a visualization-based profiling technique that represents hierarchical sampled execution costs as nested horizontal bars.
- How it is used
- Uses sampled execution visualization to locate dominant code paths during performance optimization.
- How deep it goes
- Explains proportional stack-trace visualization and a profiling workflow, without detailing flame-graph rendering internals.
- Examples
- Uses recursive Fibonacci, memoization, iteration, Criterion measurements, and a generated performance flame graph.
- What you can do after
- Diagnose costly execution paths by profiling Rust benchmarks with Criterion and pprof.
Related concepts
- trajectoryproduced by · A trajectory is an ordered sequence of states, actions, events, or operations that records or describes progression through successive steps or over time.
- profilingproduced by · Profiling is the measurement and analysis of a program’s runtime behavior and resource use to characterize performance and identify bottlenecks.
- icicle chartequivalent to · An icicle chart is a hierarchical visualization that represents parent-child relationships with nested or stacked rectangular regions.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

