tiny.bench.AllocationCounts
Defined in tiny.bench.
Records the allocation traffic and the outstanding-byte high water of one counted allocator.
API (5)
Fields and members
Public fields and members.
Source
Source: lib/bench/src/allocation.zig:10
zig
/// Records the allocation traffic and the outstanding-byte high water of one/// counted allocator. A counted allocator holds one of these and updates it on/// every request that passes through it.pub const Counts = struct { /// Counts the allocation requests the backing allocator satisfied. alloc_count: u64 = 0, /// Counts the free requests. free_count: u64 = 0, /// Counts the bytes handed out by allocations and by resizes that grew. alloc_bytes: u64 = 0, /// Bytes handed out and not yet freed. The total carries across a reset. live_bytes: u64 = 0, /// The largest live-byte total reached since the counted allocator started /// or since its last reset. peak_live_bytes: u64 = 0,};Source: lib/bench/src/root.zig:78
zig
pub const AllocationCounts = allocation.Counts;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |