1 unstable release

0.1.0 May 6, 2019

#546 in Memory management

Apache-2.0/MIT

3KB

daktylos - a simple memory usage counting allocator

This crate gets the excellent custom wrapper example that keeps track of memory usage.

Usage

use daktylos::Allocator;

#[global_allocator]
static A: Allocator = Allocator::new();

fn main() {
    println!("{}", A.current_usage());
}

No runtime deps