|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Allocation hooks that count what is live, for finding leaks. More...
#include <gui_core/memory/gui_tracking_allocator.h>
Public Member Functions | |
| TrackingAllocator () | |
| ~TrackingAllocator () | |
| TrackingAllocator (const TrackingAllocator &)=delete | |
| TrackingAllocator & | operator= (const TrackingAllocator &)=delete |
| AllocationHooks | Hooks () |
| Hooks that allocate through this allocator; valid while it lives. | |
| size_t | LiveAllocations () const |
| Allocations not freed yet. | |
| size_t | LiveBytes () const |
| Their total size in bytes, as requested. | |
| size_t | TotalAllocations () const |
| Ever made, including freed ones. | |
| size_t | ReportLeaks () const |
| Logs a warning per live allocation; returns how many there are. | |
Allocation hooks that count what is live, for finding leaks.
Logs a warning for every allocation still live when it is destroyed. Thread-safe.
| tachyon::TrackingAllocator::TrackingAllocator | ( | ) |
| tachyon::TrackingAllocator::~TrackingAllocator | ( | ) |
|
delete |
|
delete |
| AllocationHooks tachyon::TrackingAllocator::Hooks | ( | ) |
Hooks that allocate through this allocator; valid while it lives.
| size_t tachyon::TrackingAllocator::LiveAllocations | ( | ) | const |
Allocations not freed yet.
| size_t tachyon::TrackingAllocator::LiveBytes | ( | ) | const |
Their total size in bytes, as requested.
| size_t tachyon::TrackingAllocator::TotalAllocations | ( | ) | const |
Ever made, including freed ones.
| size_t tachyon::TrackingAllocator::ReportLeaks | ( | ) | const |
Logs a warning per live allocation; returns how many there are.