Skip to documentation
SLOP

tiny.bench.AllocationCounts

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

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

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

Definitions1
Public names1
Members5
Version26.7.0
Revisiondaab053ee433