Hi Ingo, gObjectTable->Print() shows the number of objects per class currently in memory (only if you have activated Root.ObjectStat to 1 in .rootrc) It cannot show the memory allocated independently in your objects. For example if inside one of your objects, you have statements like float *f = new float[n]; the memory allocated in the array of floats will not be seen in the table. Rene Brun Ingo Strauch wrote: > > Hi rooters! > > I have compiled two programs, each using a different implementation of an > algorithm. Because I know one of them uses more memory I wanted to get the > exact amount via gObjectTable->Print(). > But I get the same results for both variants. > > Checking with Print() before and after a function call makes no difference, > either. I know I have to set Root.ObjectStat to 1 in my .rootrc in order to > get the information in interactive ROOT. But how does it work in compiled > executables? > > Cheers, > Ingo > > ---------------------------------------------------------------------------- > Ingo Strauch Budapester Str. 30, 20359 Hamburg, Tel.: +49 40 7421 4722 > ---------------------------------------------------------------------------- > DESY, Group H1/AAC1, Room 1c354 | I.Phys.Inst. RWTH Aachen, Room 28B210 > Notkestr. 85, 22607 Hamburg | Sommerfeldstr. 14, 52056 Aachen > Tel: +49 40 8998-2312 / Fax: -4385 | Tel: +49 241 80-7183 / Fax: 8888-661 > strauch@mail.desy.de | strauch@toots.physik.rwth-aachen.de > ---------------------------------------------------------------------------- > www-h1.desy.de/~strauch/ or www-users.rwth-aachen.de/Ingo.Strauch/ > ----------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET