How can I check the memory taken by each tree object?


I have a ROOT Tree named MyTree with lots of objects in it Object1, Object2… and a folder with some 2D histograms. How do I check how much memory each object/histogram is using?

ROOT Version: 6.28
Platform: Ubuntu
Compiler: Not Provided

Edit : MyTree->Print() does it but is there a way to see the information in MB/KB/GB?


I guess @pcanal will know

For a given TBranch the function TBranch::GetTotalSize will return the total uncompressed data size for that branch in bytes.