alloc_observe.beginOwned
Internal implementation documentation
Defined in alloc_observe.
Initiates an ordinary observation span using an explicit caller identity, forwarding prior and requested buffer sizes, addresses, alignment, and return address arguments.
Source
Source: lib/alloc/observe/src/protocol.zig:589
zig
/// Initiates an ordinary observation span using an explicit caller identity,/// forwarding prior and requested buffer sizes, addresses, alignment, and/// return address arguments. In enabled builds, this function asserts identity/// validity rules by requiring a nonzero producer identifier and requiring a/// nonzero cookie whenever the generation number is nonzero, but it performs no/// automatic generation advancement or lifecycle state validation. If/// observation is suppressed or no sink is present, the function returns an/// inactive span. In disabled builds, it returns an inert span.pub inline fn beginOwned( identity: Identity, operation: Operation, old_address: usize, old_len: usize, len: usize, alignment: usize, return_address: usize,) Span { return beginEvent( identity, operation, .none, .none, old_address, old_len, len, alignment, return_address, );}Source: lib/alloc/observe/src/root.zig:479
zig
/// Initiates an ordinary observation span using an explicit caller identity,/// forwarding prior and requested buffer sizes, addresses, alignment, and/// return address arguments. In enabled builds, this function asserts identity/// validity rules by requiring a nonzero producer identifier and requiring a/// nonzero cookie whenever the generation number is nonzero, but it performs no/// automatic generation advancement or lifecycle state validation. If/// observation is suppressed or no sink is present, the function returns an/// inactive span. In disabled builds, it returns an inert span.pub const beginOwned = protocol.beginOwned;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |