Skip to content

ljedrz/system_alloc_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

system_alloc_stats

crates.io docs.rs actively maintained

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

Usage

use system_alloc_stats::SystemWithStats;

#[global_allocator]
static SWS: SystemWithStats = SystemWithStats;

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages