#tracking #memory-allocator #process-memory #limit #handler #memory-tracking #global-allocator #checkpoint

staging-tracking-allocator

Tracking allocator to control the amount of memory consumed by the process

3 releases (stable)

2.0.0 Jan 23, 2024
1.0.0 Nov 20, 2023
0.0.0 Nov 9, 2023

#816 in Memory management

Download history 785/week @ 2025-10-13 952/week @ 2025-10-20 819/week @ 2025-10-27 1069/week @ 2025-11-03 945/week @ 2025-11-10 917/week @ 2025-11-17 888/week @ 2025-11-24 1072/week @ 2025-12-01 970/week @ 2025-12-08 724/week @ 2025-12-15 687/week @ 2025-12-22 777/week @ 2025-12-29 630/week @ 2026-01-05 614/week @ 2026-01-12 614/week @ 2026-01-19 676/week @ 2026-01-26

2,668 downloads per month
Used in 4 crates (2 directly)

GPL-3.0-only

10KB
170 lines

Tracking/limiting global allocator. Calculates the peak allocation between two checkpoints for the whole process. Accepts an optional limit and a failure handler which is called if the limit is overflown.

No runtime deps