|
unilink
0.4.3
A simple C++ library for unified async communication
|
RAII helper for automatic memory tracking. More...
#include <memory_tracker.hpp>
Public Member Functions | |
| ScopedMemoryTracker (const char *file, int line, const char *function) | |
| ~ScopedMemoryTracker () | |
| void | track_allocation (void *ptr, size_t size) |
| void | track_deallocation (void *ptr) |
RAII helper for automatic memory tracking.
Definition at line 104 of file memory_tracker.hpp.
| unilink::memory::ScopedMemoryTracker::ScopedMemoryTracker | ( | const char * | file, |
| int | line, | ||
| const char * | function | ||
| ) |
Definition at line 223 of file memory_tracker.cc.
| unilink::memory::ScopedMemoryTracker::~ScopedMemoryTracker | ( | ) |
Definition at line 226 of file memory_tracker.cc.
| void unilink::memory::ScopedMemoryTracker::track_allocation | ( | void * | ptr, |
| size_t | size | ||
| ) |
Definition at line 230 of file memory_tracker.cc.
| void unilink::memory::ScopedMemoryTracker::track_deallocation | ( | void * | ptr | ) |
Definition at line 234 of file memory_tracker.cc.