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
28 lines
571 B
//========= 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
|