Skip to main content

Module timing

Module timing 

Source
Expand description

Elapsed timings with explicit logical scope lifetimes.

Finished and interrupted samples both contribute to every duration statistic. Durations include async suspension, are not CPU time, and overlapping scopes must not be added as wall time. Names are static callsite literals, with at most 256 aggregate buckets (including overflow). Histograms retain two significant figures in microseconds; totals and maxima retain full Duration precision. Histogram values saturate only above 2^56 microseconds (over 2,000 years).

Structsยง

Scope
An explicit scope lifetime, independent of cloned spans and child spans.