css_enhanced_waf/utils/vmpi/vmpi_service/perf_counters.h

29 lines
571 B
C
Raw Normal View History

2020-04-22 17:56:21 +01:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#ifndef PERF_COUNTERS_H
#define PERF_COUNTERS_H
#ifdef _WIN32
#pragma once
#endif
class IPerfTracker
{
public:
virtual void Init( unsigned long dwProcessID ) = 0;
virtual void Release() = 0;
virtual unsigned long GetProcessID() = 0;
virtual void GetPerfData( int &processorPercentage, int &memoryUsageMegabytes ) = 0;
};
IPerfTracker* CreatePerfTracker();
#endif // PERF_COUNTERS_H