Skip to documentation
SLOP

tiny.bench.IndexedMemoryTotals

Reference tiny.bench IndexedMemoryTotals

Defined in tiny.bench.

Called byCallstest sourcelib.bench.src.stats.testtest: indexed totals and unit rates r...private sourcelib.bench.src.stats.totalsmeanU128tiny.benchIndexedMemoryTotals
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/bench/src/stats/totals.zig:39

zig
pub fn IndexedMemoryTotals(comptime count: usize) type {    return struct {        alloc_count_total: [count]u128 = @as([count]u128, @splat(0)),        free_count_total: [count]u128 = @as([count]u128, @splat(0)),        alloc_bytes_total: [count]u128 = @as([count]u128, @splat(0)),        pub fn record(            self: *@This(),            index: usize,            alloc_count: u64,            free_count: u64,            alloc_bytes: u64,        ) void {            std.debug.assert(index < count);            self.alloc_count_total[index] += alloc_count;            self.free_count_total[index] += free_count;            self.alloc_bytes_total[index] += alloc_bytes;        }        pub fn meanAllocCount(self: *const @This(), index: usize, sample_count: u32) f64 {            std.debug.assert(index < count);            return meanU128(self.alloc_count_total[index], sample_count);        }        pub fn meanFreeCount(self: *const @This(), index: usize, sample_count: u32) f64 {            std.debug.assert(index < count);            return meanU128(self.free_count_total[index], sample_count);        }        pub fn meanAllocBytes(self: *const @This(), index: usize, sample_count: u32) f64 {            std.debug.assert(index < count);            return meanU128(self.alloc_bytes_total[index], sample_count);        }    };}

Source: lib/bench/src/root.zig:98

zig
pub const IndexedMemoryTotals = stats.IndexedMemoryTotals;

Also reachable as

statistics.IndexedMemoryTotals.

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433