I should have asked here first as that is *exactly* what I would want to see. I didn't even know how to do it let alone that it was already done. :)
Thanks, Allen On Wed, Jan 14, 2009 at 8:21 AM, Carsten Neumann <[email protected]> wrote: > Hello Allen, > > Allen Bierbaum wrote: >> As part of our on-going effort to track down some OpenSG memory usage, >> I tried to write a function that would: >> >> 1) Count up the number of allocated field containers (from the field >> container factory) >> 2) Print out a nice little report about how many of each class type >> have been allocated >> >> The goal was to see if there were some object types that keep growing. >> Then hopefully this could point to a section of the code that we >> could look at to fix the leak. >> >> Anyway, I wrote the function below, but it didn't work. It comes back >> thinking the type of all fc's is "FieldContainer". I suspect >> type-pruning, but I don't see the error. Can anyone see my mistake? > > Gerrit already answered this in another message. > > Although you've already written your own function I thought I'd mention > that in Source/System/FieldContainer/Misc/OSGFieldContainerUtils.h is a > little class MemoryConsumption that does something similar (counts > number of instances per type and adds up the getBinSize() space consumed > by each object). > > Cheers, > Carsten > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
