Skip to documentation
SLOP

tiny.memtrace.TracingAllocator

Reference tiny.memtrace TracingAllocator

Defined in tiny.memtrace.

API (5)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.memtraceTracingAllocator
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/memtrace/src/tracer.zig:440

zig
pub const TracingAllocator = struct {    tracer: *Tracer,    backing: Allocator,    allocator_id: u32,    pub fn init(        tracer: *Tracer,        backing: Allocator,        options: TracingAllocatorOptions,    ) !TracingAllocator {        return .{            .tracer = tracer,            .backing = backing,            .allocator_id = try tracer.registerAllocator(options.name, options.retention),        };    }    pub fn allocator(self: *TracingAllocator) Allocator {        return .{            .ptr = self,            .vtable = &vtable,        };    }};

Source: lib/memtrace/src/root.zig:66

zig
pub const TracingAllocator = tracer_mod.TracingAllocator;
Called byCallsNo direct callsTracertracedAllocatorTracertracedAllocatorWithOptionsTracingAllocatorinit
Static calls · unresolved targets: 0 · external targets: 1.

Audit

Definitions3
Public names3
Members3
Version26.7.0
Revisiondaab053ee433