alloc_geiger 0.3.0

A Rust allocator which makes sound when active, like a Geiger counter.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::thread;
use std::time::Duration;

use alloc_geiger::Geiger;
use jemallocator::Jemalloc;

#[global_allocator]
static ALLOC: Geiger<Jemalloc> = Geiger::with_alloc(Jemalloc);

fn main() {
    dbg!(&ALLOC);
    let delay = Duration::from_millis(1000);
    for i in 1..10 {
        thread::sleep(delay / i);
        let _ = Box::new(i);
    }
}