Skip to documentation
SLOP

alloc_observe.Span

Reference alloc_observe Span

Internal implementation documentation

Defined in alloc_observe.

A thread-bound tracking token representing an active observation interval.

No direct callersNo direct callsalloc_observeSpan
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/alloc/observe/src/protocol.zig:297

zig
/// A thread-bound tracking token representing an active observation interval./// When created while observation is enabled, unsuppressed, and backed by an/// installed sink, an active span records the current thread parent operation/// ID, updates the thread current operation ID, increments the active operation/// count, and captures the sink reference. Active spans must be finished/// strictly in last-in, first-out order on their originating thread, and each/// token must be owned and finished by a single authoritative holder. When/// observation is disabled, suppressed, or running without an installed sink,/// the token is inert. Concrete field layouts differ between enabled and/// disabled builds.pub const Span = if (enabled) EnabledSpan else DisabledSpan;

Source: lib/alloc/observe/src/root.zig:438

zig
/// A thread-bound tracking token representing an active observation interval./// When created while observation is enabled, unsuppressed, and backed by an/// installed sink, an active span records the current thread parent operation/// ID, updates the thread current operation ID, increments the active operation/// count, and captures the sink reference. Active spans must be finished/// strictly in last-in, first-out order on their originating thread, and each/// token must be owned and finished by a single authoritative holder. When/// observation is disabled, suppressed, or running without an installed sink,/// the token is inert. Concrete field layouts differ between enabled and/// disabled builds.pub const Span = protocol.Span;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433