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.

28 lines
571 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef PERF_COUNTERS_H
  7. #define PERF_COUNTERS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class IPerfTracker
  12. {
  13. public:
  14. virtual void Init( unsigned long dwProcessID ) = 0;
  15. virtual void Release() = 0;
  16. virtual unsigned long GetProcessID() = 0;
  17. virtual void GetPerfData( int &processorPercentage, int &memoryUsageMegabytes ) = 0;
  18. };
  19. IPerfTracker* CreatePerfTracker();
  20. #endif // PERF_COUNTERS_H