GitXplorerGitXplorer
l

system_alloc_stats

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
8194101f17e7a1f561f73dfb70fd4bfd048b1560

clippy: fix a new lint

lljedrz committed 7 months ago
Unverified
a2c738ba2385cfc5f3cc9ba4da8566819848ae8d

tests: merge the reset case into the basics

lljedrz committed a year ago
Unverified
5d94102f68cf3a986314cb4a436528c69f11aab4

tests: improve the main case

lljedrz committed a year ago
Unverified
ea3d680a0fe85838de3c605225a175daea5c21ac

tests: solve the flakiness related to max_use

lljedrz committed a year ago
Unverified
df8fe8448eb6b533ded8982eeffc46b6bac00a70

tests: improve the basic tests

lljedrz committed a year ago
Unverified
ec9dbc4f686d2b2ae987cf46a4508e5c8729ef3b

chore: extend the TOML

lljedrz committed a year ago

README

The README file for this repository.

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());
    (...)
}