DebugAllocatorLiveBytes
Description
Total user-requested bytes currently outstanding.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
AllocDebug.c:24:
bool ok = p1 && p2;
ok = ok && DebugAllocatorLiveCount(dbg) == 2;
ok = ok && DebugAllocatorLiveBytes(dbg) == (64 + 128);
AllocatorFree(adbg, p1, 64);- In
AllocDebug.c:28:
AllocatorFree(adbg, p1, 64);
ok = ok && DebugAllocatorLiveCount(dbg) == 1;
ok = ok && DebugAllocatorLiveBytes(dbg) == 128;
AllocatorFree(adbg, p2, 128);- In
AllocDebug.c:32:
AllocatorFree(adbg, p2, 128);
ok = ok && DebugAllocatorLiveCount(dbg) == 0;
ok = ok && DebugAllocatorLiveBytes(dbg) == 0;
ok = ok && DebugAllocatorDoubleFrees(dbg) == 0;
ok = ok && DebugAllocatorOverflows(dbg) == 0;- In
AllocDebug.c:99:
bool ok = DebugAllocatorLiveCount(dbg) == 2;
ok = ok && DebugAllocatorLiveBytes(dbg) == (32 + 48);
// DebugAllocatorDestroy will free the underlying buffers via the
- In
Debug.c:354:
}
size DebugAllocatorLiveBytes(const DebugAllocator *self) {
if (!self)
return 0;
Last updated on