Skip to main content

Crate aster_forge_alloc

Crate aster_forge_alloc 

Source
Expand description

Shared allocator tracking and memory statistics helpers.

Applications still own their #[global_allocator] selection and any platform-specific allocator configuration. This crate provides the reusable pieces used by Aster services: a debug tracking allocator for system-allocator builds, and a single stats API that reports either tracked system allocation counters or jemalloc counters depending on enabled features.

Functionsยง

stats
Returns current allocated and resident memory in MiB for jemalloc stats builds.