![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #ifndef PERFMONEVENT_PERFMONMEMSTATSHOOKS_H
11 #define PERFMONEVENT_PERFMONMEMSTATSHOOKS_H 1
67 static unsigned long long nbytes() {
return m_nbytes; }
69 static unsigned long long nmallocs() {
return m_nmallocs; }
71 static unsigned long long nfrees() {
return m_nfrees; }
81 #endif// PERFMONEVENT_PERFMONMEMSTATSHOOKS_H
placeholder for the stats
static unsigned long long m_nmallocs ATLAS_THREAD_SAFE
number of times malloc has been called so far
static void uninstallHooks()
uninstall our hooks
static void saveHooks()
save current hooks
a simple malloc wrapper that keeps track of the amount of memory allocated on the heap.
static unsigned long long nfrees()
return the number of times free has been called so far
static bool enabled()
return the current flag value
static unsigned long long m_nfrees ATLAS_THREAD_SAFE
number of times free has been called so far
static void start()
initialize library
static void stop()
finalize library
static bool enable(const bool flag)
switch to enable or disable the global malloc hooks
static unsigned long long nbytes()
return the number of bytes allocated so far
static std::atomic< bool > m_enabled
flag disabling or enabling the global malloc hooks
Define macros for attributes used to control the static checker.
static unsigned long long nmallocs()
return the number of times malloc has been called so far
static void installHooks()
install our hooks
static unsigned long long m_nbytes ATLAS_THREAD_SAFE
number of bytes allocated so far