ROOT logo
ROOT » ROOFIT » ROOFITCORE » RooTrace

class RooTrace



Class RooTrace controls the memory tracing hooks in all RooFit objects. When tracing is active, a table of live RooFit objects is kept that can be queried at any time. In verbose mode, messages are printed in addition at the construction and destruction of each object.

Function Members (Methods)

public:
RooTrace()
RooTrace(const RooTrace&)
virtual~RooTrace()
static voidactive(Bool_t flag)
static voidcallgrind_dump()
static voidcallgrind_zero()
static TClass*Class()
static voidcreate(const TObject* obj)
static voidcreateSpecial(const char* name, int size)
static voiddestroy(const TObject* obj)
static voiddestroySpecial(const char* name)
static voiddump()
static voiddump(ostream& os, Bool_t sinceMarked = kFALSE)
static RooTrace&instance()
virtual TClass*IsA() const
static voidmark()
RooTrace&operator=(const RooTrace&)
static voidprintObjectCounts()
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
static voidverbose(Bool_t flag)
protected:
voidaddPad(const TObject* ref, Bool_t doPad)
voidcreate2(const TObject* obj)
voidcreate3(const TObject* obj)
voidcreateSpecial3(const char* name, int size)
voiddestroy2(const TObject* obj)
voiddestroy3(const TObject* obj)
voiddestroySpecial3(const char* name)
voiddump3(ostream&, Bool_t sinceMarked)
voidmark3()
voidprintObjectCounts3()
Bool_tremovePad(const TObject* ref)

Data Members

protected:
Bool_t_active
static RooTrace*_instance
RooLinkedList_list
RooLinkedList_markList
map<TClass*,int>_objectCount
map<std::string,int>_specialCount
map<std::string,int>_specialSize
Bool_t_verbose

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooTrace& instance()
RooTrace()
void create(const TObject* obj)
 Register creation of object 'obj'
void destroy(const TObject* obj)
 Register deletion of object 'obj'
void createSpecial(const char* name, int size)
void destroySpecial(const char* name)
void createSpecial3(const char* name, int size)
void destroySpecial3(const char* name)
void active(Bool_t flag)
 If flag is true, memory tracing is activated
void verbose(Bool_t flag)
 If flag is true, a message will be printed at each
 object creation or deletion
void create2(const TObject* obj)
 Back end function of create(), register creation of object 'obj'
void destroy2(const TObject* obj)
 Back end function of destroy(), register deletion of object 'obj'
void create3(const TObject* obj)
 Back end function of create(), register creation of object 'obj'
void destroy3(const TObject* obj)
 Back end function of destroy(), register deletion of object 'obj'
void mark()
 Put marker in object list, that allows to dump contents of list
 relative to this marker
void mark3()
 Put marker in object list, that allows to dump contents of list
 relative to this marker
void dump()
 Dump contents of object registry to stdout
void dump(ostream& os, Bool_t sinceMarked = kFALSE)
void dump3(ostream& , Bool_t sinceMarked)
 Dump contents of object register to stream 'os'. If sinceMarked is
 true, only object created after the last call to mark() are shown.
void printObjectCounts()
void printObjectCounts3()
void callgrind_zero()
 Utility function to trigger zeroing of callgrind counters.

 Note that this function does _not_ do anything, other than optionally printing this message
 To trigger callgrind zero counter action, run callgrind with
 argument '--zero-before=RooTrace::callgrind_zero()' (include single quotes in cmdline)
void callgrind_dump()
 Utility function to trigger dumping of callgrind counters.

 Note that this function does _not_ do anything, other than optionally printing this message
 To trigger callgrind dumping action, run callgrind with
 argument '--dump-before=RooTrace::callgrind_dump()' (include single quotes in cmdline)
RooTrace()
virtual ~RooTrace()
{}
void addPad(const TObject* ref, Bool_t doPad)
Bool_t removePad(const TObject* ref)