mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-15 13:16:58 +00:00
1
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
#ifndef CL2CACHE_H
|
||||
#define CL2CACHE_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
class P4Event_BSQ_cache_reference;
|
||||
|
||||
class CL2Cache
|
||||
{
|
||||
public:
|
||||
|
||||
CL2Cache();
|
||||
~CL2Cache();
|
||||
|
||||
void Start( void );
|
||||
void End( void );
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// GetL2CacheMisses
|
||||
//-------------------------------------------------------------------------
|
||||
int GetL2CacheMisses( void )
|
||||
{
|
||||
return m_iL2CacheMissCount;
|
||||
}
|
||||
|
||||
#ifdef DBGFLAG_VALIDATE
|
||||
void Validate( CValidator &validator, tchar *pchName ); // Validate our internal structures
|
||||
#endif // DBGFLAG_VALIDATE
|
||||
|
||||
private:
|
||||
|
||||
int m_nID;
|
||||
|
||||
P4Event_BSQ_cache_reference *m_pL2CacheEvent;
|
||||
int64 m_i64Start;
|
||||
int64 m_i64End;
|
||||
int m_iL2CacheMissCount;
|
||||
};
|
||||
|
||||
#endif // CL2CACHE_H
|
||||
Reference in New Issue
Block a user