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