summaryrefslogtreecommitdiff
path: root/utils/vmpi/vmpi_service/perf_counters.h
blob: aa800149e51d0524f9e724b693f0a005987a3251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//========= 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