128 Printf(
"\nList of all objects");
129 Printf(
"object address class name");
130 Printf(
"================================================================================");
131 for (i = 0; i <
fSize; i++) {
135 printf(
"%-8d 0x%-16zx %-24s %s\n", num, (
size_t)obj, obj->ClassName(),
138 Printf(
"================================================================================\n");
151 Error(
"Add",
"op is 0");
177 ::Error(
"TObjectTable::AddObj",
"op is 0");
198 for (
int i = 0; i <
fSize; i++) {
213 Error(
"Remove",
"remove 0 from TObjectTable");
222 Warning(
"Remove",
"0x%zx not found at %d", (
size_t)
op, i);
225 Error(
"Remove",
"0x%zx found at %d !!!", (
size_t)
op,
j);
332 for (
int i = 0; i <
oldsize; i++)
350 Printf(
"\nObject statistics");
351 Printf(
"class cnt on heap size total size heap size");
352 Printf(
"================================================================================");
355 while ((cl = (
TClass*) next())) {
368 Printf(
"--------------------------------------------------------------------------------");
370 Printf(
"================================================================================\n");
383 gROOT->GetListOfClasses()->R__FOR_EACH(
TClass,ResetInstanceCount)();
385 for (
int i = 0; i <
fSize; i++)
388 op->IsA()->AddInstance(
op->IsOnHeap());
390 Error(
"UpdateInstCount",
"oops 0x%zx\n", (
size_t)
op);
402 Warning(
"CheckPtrAndWarn",
"%s (0x%zx)\n",
msg, (
size_t)
vp);
int Int_t
Signed integer 4 bytes (int)
const char Option_t
Option string (const char)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
TObjectTable * gObjectTable
R__EXTERN TObjectTable * gObjectTable
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
TClass instances represent classes, structs and namespaces in the ROOT type system.
UInt_t GetInstanceCount() const
Int_t Size() const
Return size of object of this class.
UInt_t GetHeapInstanceCount() const
const char * GetName() const override
Returns name of object.
This class registers all instances of TObject and its derived classes in a hash table.
void InstanceStatistics() const
Print the object table.
Int_t FindElement(TObject *obj)
Find an object in the object table.
void Terminate()
Deletes the object table (this static class function calls the dtor).
~TObjectTable()
Delete TObjectTable.
void Remove(TObject *obj)
Remove an object from the object table.
void * CheckPtrAndWarn(const char *msg, void *vp)
Issue a warning in case an object still appears in the table while it should not.
void UpdateInstCount() const
Histogram all objects according to their classes.
TObjectTable(const TObjectTable &)=delete
void Print(Option_t *option="") const override
Print the object table.
void FixCollisions(Int_t index)
Rehash the object table in case an object has been removed.
void Add(TObject *obj)
Add an object to the object table.
void Delete(Option_t *opt="") override
Delete all objects stored in the TObjectTable.
static void AddObj(TObject *obj)
Add an object to the global object table gObjectTable.
void Expand(Int_t newsize)
Expand the object table.
void RemoveQuietly(TObject *obj)
Remove an object from the object table.
Mother of all ROOT objects.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
static Bool_t Initialized()
Return kTRUE if the TROOT object has been initialized.
void ToLower()
Change string to lower-case.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
R__ALWAYS_INLINE bool HasBeenDeleted(const TObject *obj)
Check if the TObject's memory has been deleted.
Long_t NextPrime(Long_t x)