Flame graph
Where the time went in one run.
Definition · Updated Nov 2, 2026
A flame graph shows one run as stacked bars: the whole run on top, each step below it and each step's sub-steps below that, all on one time axis. Wide bars are where time went. Use it for agent traces, request traces and profiling.
Pay once. Every update included.
Live preview
Sample data: one agent run of 8.4 s, plan, research and answer, coloured by model, tool, retrieval and wait
- Data shape
- Nested spans with start and length
- Good for
- Agent traces, request traces, profiling
- Avoid when
- There is no nesting
- Sizes
- XS, S, M and L, re-laid out from the data
Anatomy
Inspect it like the Figma file.
The same layers, names and tokens as the component. Select one to read its size, fill and style.
Layers
074 / Flame graph
- Layer
- span · research
- Type
- Rectangle
- Size
- 405 × 24
- Fill
- data/cat-2
- Radius
- 3
- Group
- Marks · 13
Layers
074 / Flame graph
- Layer
- span · research
- Type
- Rectangle
- Size
- 233 × 24
- Fill
- data/cat-2
- Radius
- 3
- Group
- Marks · 13
Layers
074 / Flame graph
- Layer
- span · research
- Type
- Rectangle
- Size
- 147 × 24
- Fill
- data/cat-2
- Radius
- 3
- Group
- Marks · 13
Sizes
Re-laid out, never scaled.
The same data at XS, S, M and L. Every size is redrawn from the data, so text and line weights never shrink.
M against S
Width360 px480 px
Plot328 px440 px
Labels1314
Marks1313
Height212 px246 px
Same tokens at every size: text styles, 1 px lines and mark radius stay put.
When to use
Where the time went.
Three signs it fits, and three signs another type fits better.
Code and Figma
One name in Figma and in code.
Every Figma property is a prop with the same name and values. One command installs it.
Figma
chart/074-flame-agent-trace
npx shadcn add @chartory/flame-graphimport { FlameGraph } from "@/components/chartory/flame-graph"import { agentTrace } from "./agent-trace"export function AgentTrace() { return ( <FlameGraph data={agentTrace} size="m" legend={true} /> )}Hearth widget
Flame graph as a widget.
The chart in a Hearth card with a hero number and two blocks. One token set, light and dark.
EmberPreset
ChartoryDefault preset
Pick the blocks, the size and the preset for your own widget.
Read the Hearth widget docsFAQ
Flame graph questions.
What people ask before they put a flame graph in a dashboard.
Something else?
hello@usechartory.comThe kind of work: model, tool, retrieval and wait, named in the legend. A wide wait bar means time spent doing nothing.
Six calls to the same step, drawn as one labelled bar so the trace stays readable.
One data object in the sample’s shape: nested spans with start and length. The docs page lists every field and links its JSON Schema; the sample data comes with the component, so you can start from it and swap in your own.
Series take the preset’s data colours in order, and states such as up, down or warning take its status colours. Change the preset in Figma or in code to recolour every chart at once.
XS, S, M and L, in light and dark. Each size is laid out again from the data, so text and lines keep their size.
Yes. It plays in when it scrolls into view, and when the data changes every mark moves from its old place to its new one. With reduced motion on, it does not move.
Yes. The React component is free in the public registry in Hearth, no token needed; Signal comes with Code and Complete. The Figma component comes with Figma and Complete.
Ask for it by name. The MCP server tells the agent what data it needs and runs the same command: npx shadcn add @chartory/flame-graph. You review the diff.
Related types
Other ways to show part of a whole.
The same question, a different shape of answer. Every type ships in Figma and in code.
Same family
Part of a whole
16 types in Chartory answer this question.