Team Fortress 2 Source Code as on 22/4/2020
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.

46 lines
956 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef CL2CACHE_H
  7. #define CL2CACHE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class P4Event_BSQ_cache_reference;
  12. class CL2Cache
  13. {
  14. public:
  15. CL2Cache();
  16. ~CL2Cache();
  17. void Start( void );
  18. void End( void );
  19. //-------------------------------------------------------------------------
  20. // GetL2CacheMisses
  21. //-------------------------------------------------------------------------
  22. int GetL2CacheMisses( void )
  23. {
  24. return m_iL2CacheMissCount;
  25. }
  26. #ifdef DBGFLAG_VALIDATE
  27. void Validate( CValidator &validator, tchar *pchName ); // Validate our internal structures
  28. #endif // DBGFLAG_VALIDATE
  29. private:
  30. int m_nID;
  31. P4Event_BSQ_cache_reference *m_pL2CacheEvent;
  32. int64 m_i64Start;
  33. int64 m_i64End;
  34. int m_iL2CacheMissCount;
  35. };
  36. #endif // CL2CACHE_H