Skip to main content

Module span

Module span 

Source

Structs§

Span
SpanBottomUp
SpanEventSelfTime
Stores duration as NonZeroU64 so the variant has a niche; combined with Child’s NonZeroUsize index, this lets the compiler pack SpanEvent without a separate discriminant byte (saving 8 bytes per event vs. an end: Timestamp layout). Callers must filter zero-duration self-time events before constructing — see SpanEvent::self_time.
SpanExtra
SpanGraph
SpanName
SpanNames
SpanTimeData
SpanTotals

Enums§

SpanEvent
SpanGraphEvent

Type Aliases§

SpanArgs
Storage for Span::args ~32% of spans have <=1 arg (typically just the name key for turbo_tasks::function spans), so inlining one entry avoids a heap allocation in this common case.
SpanIndex