Skip to documentation
SLOP

alloc_observe.beginLifecycle

Reference alloc_observe beginLifecycle

Internal implementation documentation

Defined in alloc_observe.

Initiates a lifecycle observation span for an allocator transition, requiring disposition and reason values other than none even though disabled builds ultimately discard the event.

Called byCallsNo direct callersprivate sourcelib.alloc.observe.src.protocolbeginEventalloc_observebeginLifecycle
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
/// Initiates a lifecycle observation span for an allocator transition,/// requiring disposition and reason values other than none even though disabled/// builds ultimately discard the event. The span records a lifecycle operation/// kind, sets prior address, prior length, and requested length to zero, sets/// alignment to one, and forwards the supplied identity and return address. The/// caller supplies the eventual outcome upon finishing the span. The/// observation layer records this transition without modifying or managing/// owner lifetime state.pub inline fn beginLifecycle(    identity: Identity,    disposition: LifecycleDisposition,    reason: LifecycleReason,    return_address: usize,) Span {    std.debug.assert(disposition != .none);    std.debug.assert(reason != .none);    return beginEvent(        identity,        .lifecycle,        disposition,        reason,        0,        0,        0,        1,        return_address,    );}

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

zig
/// Initiates a lifecycle observation span for an allocator transition,/// requiring disposition and reason values other than none even though disabled/// builds ultimately discard the event. The span records a lifecycle operation/// kind, sets prior address, prior length, and requested length to zero, sets/// alignment to one, and forwards the supplied identity and return address. The/// caller supplies the eventual outcome upon finishing the span. The/// observation layer records this transition without modifying or managing/// owner lifetime state.pub const beginLifecycle = protocol.beginLifecycle;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433