tiny.memtrace.TracingAllocator
Defined in tiny.memtrace.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
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;Audit
| Definitions | 3 |
|---|---|
| Public names | 3 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |