#include <nsTraceRefcnt.h>
Definition at line 12 of file nsTraceRefcnt.h.
◆ StatisticsType
◆ DemangleSymbol()
static void nsTraceRefcnt::DemangleSymbol |
( |
const char * |
aSymbol, |
|
|
char * |
aBuffer, |
|
|
int |
aBufLen |
|
) |
| |
|
static |
◆ DumpStatistics()
◆ ResetStatistics()
static void nsTraceRefcnt::ResetStatistics |
( |
| ) |
|
|
static |
◆ SetActivityIsLegal()
static void nsTraceRefcnt::SetActivityIsLegal |
( |
bool |
aLegal | ) |
|
|
static |
Tell nsTraceRefcnt whether refcounting, allocation, and destruction activity is legal.
This is used to trigger assertions for any such activity that occurs because of static constructors or destructors.
◆ Shutdown()
static void nsTraceRefcnt::Shutdown |
( |
| ) |
|
|
static |
◆ WalkTheStack()
static void nsTraceRefcnt::WalkTheStack |
( |
FILE * |
aStream | ) |
|
|
static |
◆ WalkTheStackCached()
static void nsTraceRefcnt::WalkTheStackCached |
( |
FILE * |
aStream | ) |
|
|
static |
This is a variant of |WalkTheStack| that uses |CodeAddressService| to cache the results of |NS_DescribeCodeAddress|.
If |WalkTheStackCached| is being called frequently, it will be a few orders of magnitude faster than |WalkTheStack|. However, the cache uses a lot of memory, which can cause OOM crashes. Therefore, this should only be used for things like refcount logging which walk the stack extremely frequently.
The documentation for this class was generated from the following file: