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 TClass*Class()
static voidcreate(const TObject* obj)
static voiddestroy(const TObject* obj)
static voiddump()
static voiddump(ostream& os, Bool_t sinceMarked = kFALSE)
virtual TClass*IsA() const
static voidmark()
RooTrace&operator=(const RooTrace&)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
static voidverbose(Bool_t flag)
protected:
voidaddPad(const TObject* ref, Bool_t doPad)
static voidcreate2(const TObject* obj)
static voiddestroy2(const TObject* obj)
Bool_tremovePad(const TObject* ref)

Data Members

protected:
static Bool_t_active
static RooLinkedList_list
static RooLinkedList_markList
static Bool_t_verbose

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void create(const TObject* obj)
 Register creation of object 'obj'
void destroy(const TObject* obj)
 Register deletion of object 'obj'
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 mark()
 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)
 Dump contents of object register to stream 'os'. If sinceMarked is
 true, only object created after the last call to mark() are shown.
virtual ~RooTrace()
{}
void addPad(const TObject* ref, Bool_t doPad)
Bool_t removePad(const TObject* ref)