Hi,
Here’s a pretty minimal case. I add the following lines into ~/.rootrc:
Root.MemStat: 1
Root.ObjectStat: 1
and then I open ROOT interactively and I see this:
root [0] gObjectTable->Print()
Object statistics
class cnt on heap size total size heap size
================================================================================
TList 143 142 52 7436 7384
TObjectTable 1 1 24 24 24
TROOT 1 0 388 388 0
TPluginManager 1 1 24 24 24
THashTable 3 3 48 144 144
TClassTable 1 1 12 12 12
THashList 1 1 56 56 56
TObjString 57 57 28 1596 1596
TEnv 1 1 36 36 36
TEnvRec 134 134 68 9112 9112
TNamed 1 1 44 44 44
TMap 1 0 36 36 0
TPair 56 56 20 1120 1120
TObjArray 1 1 48 48 48
TUnixSystem 1 1 440 440 440
TOrdCollection 6 6 52 312 312
--------------------------------------------------------------------------------
Total: 409 406 1376 20828 20352
================================================================================
root [1] TH1F h = TH1F("h", "h", 20, -3, 3)
root [2] gObjectTable->Print()
Object statistics
class cnt on heap size total size heap size
================================================================================
TList 143 142 52 7436 7384
TObjectTable 1 1 24 24 24
TROOT 1 0 388 388 0
TPluginManager 1 1 24 24 24
THashTable 3 3 48 144 144
TClassTable 1 1 12 12 12
THashList 1 1 56 56 56
TObjString 57 57 28 1596 1596
TEnv 1 1 36 36 36
TEnvRec 134 134 68 9112 9112
TNamed 1 1 44 44 44
TMap 1 0 36 36 0
TPair 56 56 20 1120 1120
TObjArray 1 1 48 48 48
TUnixSystem 1 1 440 440 440
TOrdCollection 6 6 52 312 312
--------------------------------------------------------------------------------
Total: 409 406 1376 20828 20352
================================================================================
I would expect the TH1F to show up in the gObjectTable, the second time I call Print(). Does gObjectTable need to be updated manually? I can go ahead and create all sorts of objects and do all sorts of operations on them, gObjectTable.Print() always gives this output. What am I doing wrong here?
Cheers,
Michel.