`query.py flame '<TraceQL>' [since] [out.svg]` folds the matching spans of up to 100 traces into stacks of self time and draws them as a flame graph, with the folded stacks beside it for speedscope or inferno. A wall-clock picture of where a route's time goes, waiting included, which a CPU profiler would not show: ipx waits on Postgres and the disk far more than it computes. The traces are fetched in one container, a docker run apiece being a second each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 KiB
Executable File
12 KiB
Executable File