This sub-mod provides some facilities about memory performance profiling.
There’s a platform-related function called
get_process_memory_info available on MacOS and Windows.
We provide a
CountingAllocator that wraps the system allocator but tracks the bytes used by rust allocations.
This crate DOES NOT replace the global allocator by default. You need to make it as a
global_allocator or enable the
#[global_allocator] static _COUNTER: perf_monitor::mem::CountingAllocator = perf_monitor:mem::CountingAllocator;
An allocator tracks inuse allocated bytes.