systemallocstats

crates.io docs.rs actively maintained

systemallocstats provides a wrapper around the System allocator, exposing some of its runtime statistics.

Usage

```rust use systemallocstats::SystemWithStats;

[global_allocator]

static SWS: SystemWithStats = SystemWithStats;

fn main() { (...) println!("current heap use: {}; average allocation size: {}", SWS.usecurr(), SWS.allocavg()); (...) } ```