bench4q/Bench4Q-Monitor/WindowsMonitor/Monitor/Common.h

15 lines
507 B
C
Raw Normal View History

2013-07-06 23:15:17 +08:00
#pragma once
2013-07-07 15:29:46 +08:00
#include "Monitor.h"
2013-07-07 19:02:56 +08:00
#include <string>
using namespace std;
2013-07-06 23:15:17 +08:00
2013-07-07 14:50:22 +08:00
class MONITOR_API Common
2013-07-06 23:53:50 +08:00
{
public:
2013-07-07 19:02:56 +08:00
static string WideStringToString(const wstring & str);
static wstring StringToWideString(const string & str);
2013-07-06 23:53:50 +08:00
static double GetCounterValue(const wchar_t * fullCounterPath);
2013-07-07 00:12:18 +08:00
static double GetCounterValueWithIdle(const wchar_t * fullCounterPath,int idleTime);
2013-07-06 23:53:50 +08:00
static list<wstring> GetInstanceName(const wchar_t * objectName);
static list<wstring> GetCounterList(const wchar_t * objectName);
};