#include <memory_tracker.h>
Definition at line 14 of file memory_tracker.h.
◆ MemoryTracker()
yaze::core::MemoryTracker::MemoryTracker |
( |
| ) |
|
|
privatedefault |
◆ GetInstance()
static MemoryTracker & yaze::core::MemoryTracker::GetInstance |
( |
| ) |
|
|
inlinestatic |
◆ TrackAllocation()
void yaze::core::MemoryTracker::TrackAllocation |
( |
const void * | ptr, |
|
|
size_t | size, |
|
|
const char * | type ) |
|
inline |
◆ TrackDeallocation()
void yaze::core::MemoryTracker::TrackDeallocation |
( |
const void * | ptr | ) |
|
|
inline |
◆ GetTotalAllocated()
size_t yaze::core::MemoryTracker::GetTotalAllocated |
( |
| ) |
const |
|
inline |
◆ DumpAllocations()
void yaze::core::MemoryTracker::DumpAllocations |
( |
| ) |
const |
|
inline |
◆ IsFreed()
bool yaze::core::MemoryTracker::IsFreed |
( |
const void * | ptr | ) |
const |
|
inline |
◆ allocations_
std::unordered_map<const void*, AllocationInfo> yaze::core::MemoryTracker::allocations_ |
|
private |
◆ total_allocated_
size_t yaze::core::MemoryTracker::total_allocated_ = 0 |
|
private |
◆ mutex_
std::mutex yaze::core::MemoryTracker::mutex_ |
|
mutableprivate |
The documentation for this class was generated from the following file: