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.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |