29 static Stats *Instance_;
34 Instance_ =
new Stats();
50 {
int status = pthread_mutex_lock(&Lock_); assert(!status); }
52 {
int status = pthread_mutex_unlock(&Lock_); assert(!status); }
55 { ++TL_CriticalSectionCount; }
57 { ++TL_NestedCriticalSectionCount; }
59 { ++TL_LoggedStoreCount; }
61 { ++TL_CriticalLoggedStoreCount; }
63 { ++TL_UnloggedStoreCount; }
65 { ++TL_LogElisionFailCount; }
67 { ++TL_UnloggedCriticalStoreCount; }
69 { TL_LogMemUse += sz; }
74 pthread_mutex_t Lock_;
77 thread_local
static uint64_t TL_CriticalSectionCount;
80 thread_local
static uint64_t TL_NestedCriticalSectionCount;
83 thread_local
static uint64_t TL_LoggedStoreCount;
86 thread_local
static uint64_t TL_CriticalLoggedStoreCount;
89 thread_local
static uint64_t TL_UnloggedStoreCount;
92 thread_local
static uint64_t TL_LogElisionFailCount;
95 thread_local
static uint64_t TL_UnloggedCriticalStoreCount;
98 thread_local
static uint64_t TL_LogMemUse;
101 thread_local
static uint64_t TL_NumLogFlushes;
void incrementLoggedStoreCount()
Definition: stats.hpp:58
void incrementCriticalLoggedStoreCount()
Definition: stats.hpp:60
void releaseLock()
Definition: stats.hpp:51
static Stats & getInstance()
Definition: stats.hpp:44
void acquireLock()
Definition: stats.hpp:49
void incrementNestedCriticalSectionCount()
Definition: stats.hpp:56
void print()
Definition: stats.cpp:44
void incrementCriticalSectionCount()
Definition: stats.hpp:54
static Stats & createInstance()
Definition: stats.hpp:32
void incrementUnloggedStoreCount()
Definition: stats.hpp:62
void incrementUnloggedCriticalStoreCount()
Definition: stats.hpp:66
void incrementLogMemUse(size_t sz)
Definition: stats.hpp:68
Definition: atlas_alloc_cpp.hpp:21
static void deleteInstance()
Definition: stats.hpp:38
void incrementLogElisionFailCount()
Definition: stats.hpp:64