Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
English

Overview

The ICrySizer interface is used to record detailed information about the memory usage of a class.

Memory profiling

The console variable "MemStats" 0/x=refresh rate in milliseconds

Image Removed

Also available in Editor as "Engine Memory info".

How to use the ICrySizer interface

Sample:

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

...