Skip to content
PreviewCompare time, tokens or cost. Select a parent span to zoom into its calls.

The run took 2 min 14 s across 4 agents, 5 model calls and 4 tool calls. 1 span failed.

FlameGraph

labelrequired
string
Its name: the run's ("Ship v2.4"). It names the chart to a reader and stands as the first crumb.
root
FlameSpan
The run's first span, the one that holds the rest. Absent while loading or when nothing was recorded.
metric
"time" | "tokens" | "cost"
The metric the blocks are as wide as, held by the product. A metric the data does not record is never drawn.
defaultMetric
"time" | "tokens" | "cost"
Default: "time"
The metric it starts on, held by the part.
onMetricChange
(metric: FlameMetric) => void
The metric chosen, by the control or by the product.
formatCost
(amount: number) => string
Writes a cost, in the unit the data carries, such as dollars ($). Required to offer cost at all: without it, no cost is drawn.
query
string
The search text, held by the product.
defaultQuery
string
Default: ""
The search it starts with, held by the part.
onQueryChange
(query: string) => void
The search written.
loading
boolean
Default: false
Loading: the toolbar, the crumbs and the field, and after 200ms a still block where the rows go.
empty
{ title: string; action?: ReactNode }
Nothing given: the empty state's words, in the product's terms, and its one way to start.
error
{ message: string; readout?: string }
It failed: what happened and what to do, and the machine's own message as a readout, with Retry (onRetry).
onRetry
() => void
Retry after an error.
rootStyle
RootStyle<FlameGraphKnobs>
Typed StyleX override: where it sits and its --flame-row and --flame-h knobs.

Rest props go to HTMLAttributes<HTMLDivElement>.

State machine

PreviewCompare the time spent by each step.

The run took 10 s across 2 agents, 1 model call and 1 tool call. 1 span failed.