peak_alloc icon indicating copy to clipboard operation
peak_alloc copied to clipboard

An allocator to keep track of (the max) allocated memory

Results 2 peak_alloc issues
Sort by recently updated
recently updated
newest added

By only implementing `alloc` and `dealloc` (and not `realloc` or `alloc_zeroed`) you introduce an additional and needless cost to using `peak_alloc`. Would you accept a pull request adding support for...

Perform one null check when reallocating or zero allocating. I'd like to also add some useful tests, but I cannot think of a test I would qualify as useful.