Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::MemoryTracker Namespace Reference

Classes

struct  AllocationInfo

Functions

std::unordered_map< void *, AllocationInfo > & GetAllocations ()
std::mutex & GetMutex ()
void AddAllocation (void *ptr, usize size, const char *function, const char *typeName, bool isArray)
void RemoveAllocation (void *ptr)
void DumpLeaks ()

Function Documentation

◆ AddAllocation()

void Raven::MemoryTracker::AddAllocation ( void * ptr,
usize size,
const char * function,
const char * typeName,
bool isArray )
inline

◆ DumpLeaks()

void Raven::MemoryTracker::DumpLeaks ( )
inline

◆ GetAllocations()

std::unordered_map< void *, AllocationInfo > & Raven::MemoryTracker::GetAllocations ( )
inline

◆ GetMutex()

std::mutex & Raven::MemoryTracker::GetMutex ( )
inline

◆ RemoveAllocation()

void Raven::MemoryTracker::RemoveAllocation ( void * ptr)
inline