alloc_observe.begin
Internal implementation documentation
Defined in alloc_observe.
Initiates an ordinary observation span with generation and owner cookie defaulted to zero, forwarding previous address, previous length, requested length, byte alignment, and caller return address to the resulting token.
Source
Source: lib/alloc/observe/src/protocol.zig:555
zig
/// Initiates an ordinary observation span with generation and owner cookie/// defaulted to zero, forwarding previous address, previous length, requested/// length, byte alignment, and caller return address to the resulting token./// When observation is enabled, the caller must supply a nonzero producer/// identifier even if observation is currently suppressed or no sink is/// installed. The caller must finish the returned token with an outcome to/// conclude the operation.pub inline fn begin( producer_id: u64, producer: Producer, operation: Operation, old_address: usize, old_len: usize, len: usize, alignment: usize, return_address: usize,) Span { return beginOwned( .{ .producer_id = producer_id, .producer = producer, .generation = 0, .owner_cookie = 0, }, operation, old_address, old_len, len, alignment, return_address, );}Source: lib/alloc/observe/src/root.zig:453
zig
/// Initiates an ordinary observation span with generation and owner cookie/// defaulted to zero, forwarding previous address, previous length, requested/// length, byte alignment, and caller return address to the resulting token./// When observation is enabled, the caller must supply a nonzero producer/// identifier even if observation is currently suppressed or no sink is/// installed. The caller must finish the returned token with an outcome to/// conclude the operation.pub const begin = protocol.begin;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |