Skip to main content

Module timing

Module timing 

Source
Expand description

Structured timing instrumentation for query execution.

Enabled via the APIARY_TIMING=1 environment variable. When unset, all timing operations are no-ops with zero overhead.

After each query completes, a single parseable line is emitted to stderr:

[TIMING] query=Q1.1 total=5044ms parse=2ms plan=15ms ...

Structs§

QueryTimings
Collected timing phases for a single query.

Functions§

timing_enabled
Returns true when APIARY_TIMING=1 is set.