tracesStatements
Retrieve the statements of a recorded trace with their execution times to see where a run spent its time. Pass a trace ID and optionally sort by heaviest first to find the most expensive statements.
Instructions
The statements of one trace, with their times - where a run spent itself. Takes a trace id from tracesList. The trace has to have been recorded with aggregate false: the backend refuses statements for an aggregated one. One ADT call is some 8000 statements, so the answer is capped - pass heaviestFirst for the expensive end of it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the trace, as tracesList reports it. | |
| limit | No | Cap on the statements reported, default 100. The counts are always for everything found. | |
| options | No | Query options passed on to the backend, e.g. withDetails (object, or a JSON string). | |
| heaviestFirst | No | Sort by gross time, longest first, before capping. Off by default, which keeps the call sequence. |