Skip to content

v0.9.1

Pre-release
Pre-release

Choose a tag to compare

@rocketman-code rocketman-code released this 05 Mar 06:11
· 456 commits to main since this release

Fixes allocation tracking reporting zero bytes when the user's global allocator is behind a #[cfg(...)] gate -- a common pattern with tikv-jemallocator and mimalloc.

Fixed

  • Allocation tracking no longer reports zero when the user's #[global_allocator] is behind a #[cfg(...)] gate (#231)
    • Detection moved from string matching to syn AST walk
    • Cfg-gated allocators get a #[cfg(not(...))] fallback so every platform tracks allocations
    • Common pattern: #[cfg(target_os = "linux")] #[global_allocator] with tikv-jemallocator or mimalloc