Skip to main content

alloc_distribution

Function alloc_distribution 

Source
pub fn alloc_distribution() -> [f64; 52]
Expand description

Returns the fractional distribution of alloc_count across all size classes as an array of f64 values in [0.0, 1.0] that sum to 1.0.

The i-th element is alloc_count[i] / total_alloc_count. If no allocations have been recorded, every element is 0.0.

Useful for understanding which size classes dominate the workload.