#allocator #process #tracking

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

#652 in Memory management

Download history 143/week @ 2024-12-11 120/week @ 2024-12-18 48/week @ 2024-12-25 61/week @ 2025-01-01 123/week @ 2025-01-08 105/week @ 2025-01-15 179/week @ 2025-01-22 174/week @ 2025-01-29 214/week @ 2025-02-05 165/week @ 2025-02-12 113/week @ 2025-02-19 236/week @ 2025-02-26 62/week @ 2025-03-05 149/week @ 2025-03-12 97/week @ 2025-03-19 198/week @ 2025-03-26

530 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