#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

#336 in Memory management

Download history 25/week @ 2024-07-29 6/week @ 2024-08-05 3/week @ 2024-08-12 5/week @ 2024-08-26 25/week @ 2024-09-02 8/week @ 2024-09-09 39/week @ 2024-09-16 23/week @ 2024-09-23 50/week @ 2024-09-30 9/week @ 2024-10-07 39/week @ 2024-10-14 67/week @ 2024-10-21 32/week @ 2024-10-28 56/week @ 2024-11-04

194 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