4 #ifndef __KVCLASSMONITOR_H
5 #define __KVCLASSMONITOR_H
61 static Bool_t fDisableCheck;
62 mutable std::map<std::string, int> fChanges;
78 if (!fDisableCheck && fgClassMonitor) {
79 printf(
"<%s> : %s\n", method.
Data(), message.
Data());
80 fgClassMonitor->
Check();
87 fDisableCheck =
kTRUE;
#define ClassDef(name, id)
Base class for KaliVeda framework.
Simple tool to track which classes instance count increases over time.
static KVClassMonitor * GetInstance()
Return pointer to unique instance of class monitor class.
std::map< std::string, int > & GetListOfChanges() const
static void DisableChecking()
Disable static DoCheck method.
static void EnableChecking()
Re-enable static DoCheck method.
virtual ~KVClassMonitor()
Destructor.
static void DoCheck(const TString &method, const TString &message)
Print statistics of global singleton if it exists.
const char * Data() const