peakmem_alloc
An instrumenting middleware for global allocators in Rust, useful to find the peak memory consumed by a function.
Example
use *;
use System;
static GLOBAL: & = &INSTRUMENTED_SYSTEM;
Custom allocators
You can wrap your existing allocator as follows:
use Jemalloc;
use *;
static GLOBAL: = new;