Skip to documentation
SLOP

alloc_observe.begin

Reference 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.

Called byCallsprivate sourcelib.alloc.observe.src.allocator.ObservedAlloc...beginalloc_observebeginOwnedalloc_observebegin
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433