Menu
Lumberyard
Developer Guide (Version 1.11)

ICrySizer

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

Note

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.

Copy
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); }