Counter Strike : Global Offensive Source Code
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//========= Copyright � 1996-2008, Valve Corporation, All rights reserved. ============//
//
// Purpose: Spew free memory at a fixed rate, for logging
//
//=============================================================================//
#ifndef C_MEMORYLOG_H
#define C_MEMORYLOG_H
#if defined( _GAMECONSOLE ) && !defined( _CERT )
#define C_MEMORYLOG_TICKING_ENABLED
#endif
#ifdef C_MEMORYLOG_TICKING_ENABLED
#include "igamesystem.h"
class C_MemoryLog : public CAutoGameSystemPerFrame { public: // Methods of IGameSystem
virtual bool Init( void ); virtual void Update( float frametime ); virtual void LevelInitPostEntity(); virtual void LevelShutdownPreEntity();
private: void Spew( void );
float m_fLastSpewTime; size_t m_nRecentFreeMem[ 256 ]; // For inspection in full heap crashdumps
};
#endif // C_MEMORYLOG_TICKING_ENABLED
#endif // C_MEMORYLOG_H
|