Legacy Reference


The ICrySizer interface can be implemented to record detailed information about the memory usage of a class.


This information is also available in the Editor under Engine Memory info.

How to use the ICrySizer interface

The following example shows how to use the ICrySizer interface.

void GetMemoryUsage( ICrySizer *pSizer ) { { SIZER_COMPONENT_NAME( pSizer, "Renderer (Aux Geometries)" ); pSizer->Add(*this); } pSizer->AddObject(<element_prow>,<element_count>); pSizer->AddObject(<container>); m_SubObject.GetMemoryUsage(pSizer); }