| 120 | void operator delete[](void* ptr) { og_free(ptr); } |
| 121 | |
| 122 | uint32_t GetAndResetMallocAllocationCount() { |
| 123 | uint32_t v; |
| 124 | pthread_mutex_lock(&fastmutex); |
| 125 | v = allocations_this_frame; |
| 126 | allocations_this_frame = 0; |
| 127 | pthread_mutex_unlock(&fastmutex); |
| 128 | return v; |
| 129 | } |
| 130 | |
| 131 | uint64_t GetCurrentTotalMallocAllocation(int index) { |
| 132 | return total_memory_allocations[index]; |