lwdr.tracking

Undocumented in source.

Members

Functions

disableMemoryTracking
void disableMemoryTracking()

Stop tracking allocations

enableMemoryTracking
void enableMemoryTracking()

Begin tracking allocations

enterMemoryTracking
MemAlloc enterMemoryTracking()

Get the current state of allocations

isCurrentTracking
bool isCurrentTracking()

Are we currently allocations?

lwdrInternal_alloc
void* lwdrInternal_alloc(size_t sz)

Allocate heap memory of sz bytes. If tracking allocations, the resultant pointer will be added to trackedAllocations

lwdrInternal_alloc
void* lwdrInternal_alloc(size_t sz)

Allocate heap memory of sz bytes

lwdrInternal_allocBytes
ubyte[] lwdrInternal_allocBytes(size_t sz)

Allocate sz bytes heap memory represented by a slice of ubytes. If tracking allocations, the resultant slice will be added to trackedAllocations

lwdrInternal_allocBytes
ubyte[] lwdrInternal_allocBytes(size_t sz)

Allocate sz bytes of heap memory represented by a slice of ubytes.

lwdrInternal_free
void lwdrInternal_free(void* ptr)

Dealloc heap memory

lwdrInternal_free
void lwdrInternal_free(void* ptr)

Free heap memory

Structs

AllocationList
struct AllocationList(T, size_t MaxElements)

Keeps track of allocations

MemAlloc
struct MemAlloc

Stores state of allocations at specific scope

Meta