mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-19 06:51:56 +00:00
1
This commit is contained in:
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user