|
Krita Source Code Documentation
|
#include <kis_memory_leak_tracker.h>
Public Member Functions | |
| template<typename _T_ > | |
| void | dereference (const _T_ *what, const void *bywho) |
| void | dereference (const void *what, const void *bywho) |
| void | dumpReferences () |
| void | dumpReferences (const void *what) |
| KisMemoryLeakTracker () | |
| template<typename _T_ > | |
| void | reference (const _T_ *what, const void *bywho) |
| void | reference (const void *what, const void *bywho, const char *whatName=0) |
| ~KisMemoryLeakTracker () | |
Static Public Member Functions | |
| static KisMemoryLeakTracker * | instance () |
Private Attributes | |
| Private *const | d |
This class tracks what pointer is reference by who. It is used by the smart pointers to detect leaks.
Note that the KisMemoryLeakTracker is currently only available on Linux, and translate to NOOP on other platforms. It is also just a debug tool, and should not be used in a production build of krita.
Definition at line 34 of file kis_memory_leak_tracker.h.
| KisMemoryLeakTracker::KisMemoryLeakTracker | ( | ) |
Definition at line 193 of file kis_memory_leak_tracker.cpp.
| KisMemoryLeakTracker::~KisMemoryLeakTracker | ( | ) |
Definition at line 197 of file kis_memory_leak_tracker.cpp.
| void KisMemoryLeakTracker::dereference | ( | const _T_ * | what, |
| const void * | bywho ) |
Definition at line 63 of file kis_memory_leak_tracker.h.
References dereference().
Definition at line 208 of file kis_memory_leak_tracker.cpp.
| void KisMemoryLeakTracker::dumpReferences | ( | ) |
Definition at line 214 of file kis_memory_leak_tracker.cpp.
Definition at line 218 of file kis_memory_leak_tracker.cpp.
|
static |
Definition at line 22 of file kis_memory_leak_tracker.cpp.
| void KisMemoryLeakTracker::reference | ( | const _T_ * | what, |
| const void * | bywho ) |
Definition at line 57 of file kis_memory_leak_tracker.h.
References reference().
| void KisMemoryLeakTracker::reference | ( | const void * | what, |
| const void * | bywho, | ||
| const char * | whatName = 0 ) |
Definition at line 201 of file kis_memory_leak_tracker.cpp.
|
private |
Definition at line 51 of file kis_memory_leak_tracker.h.