toTimeline()
toTimeline(
graph):string
Defined in: visualize.ts:139
Render an ExecutionGraph as a horizontal timeline/waterfall.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The execution graph to render. |
Returns
string
A multi-line string showing spans as horizontal bars relative to graph start.
Example
console.log(toTimeline(graph));
// 0s 1s 2s 3s
// ├─────────┼─────────┼─────────┤
// ████████████████████████████████ main (4.2s)
// ██████████ search (1.1s)