#memory #process-memory #allocator #tracking #allocation #control

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

#485 in Memory management

Download history 36/week @ 2024-10-25 49/week @ 2024-11-01 58/week @ 2024-11-08 156/week @ 2024-11-15 129/week @ 2024-11-22 142/week @ 2024-11-29 187/week @ 2024-12-06 143/week @ 2024-12-13 81/week @ 2024-12-20 45/week @ 2024-12-27 98/week @ 2025-01-03 109/week @ 2025-01-10 135/week @ 2025-01-17 198/week @ 2025-01-24 132/week @ 2025-01-31 212/week @ 2025-02-07

692 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