| 49 | fl::unsorted_map_fixed<const void*, u32, 64000> allocations; |
| 50 | |
| 51 | void reset() { |
| 52 | current_bytes.store(0); |
| 53 | peak_bytes.store(0); |
| 54 | total_allocated.store(0); |
| 55 | alloc_count.store(0); |
| 56 | free_count.store(0); |
| 57 | allocations.clear(); |
| 58 | } |
| 59 | |
| 60 | void on_malloc(void* ptr, size_t size) { |
| 61 | if (!ptr) return; |