Memory allocation tracking utilities for benchmarks and performance analysis.
This package provides utilities to track memory allocations during code execution, enabling analysis of allocation patterns in benchmarks and performance tests.
Features
panic_on_next_alloc: Enables thepanic_on_next_allocfunction for debugging unexpected allocations. This feature adds some overhead to allocations, so it's optional.
Basic usage
use ;
static ALLOCATOR: = system;
Debugging unexpected allocations
The package also provides a panic-on-allocation feature to help track down unexpected
allocations in performance-critical code. This requires enabling the panic_on_next_alloc feature:
[]
= { = "0.5", = ["panic_on_next_alloc"] }
use ;
static ALLOCATOR: = system;
More details in the package documentation.
This is part of the Folo project that provides mechanisms for high-performance hardware-aware programming in Rust.