1
/* $Id: PerformanceOs2.cpp 28800 2010-04-27 08:22:32Z vboxsync $ */
5
* VBox OS/2-specific Performance Classes implementation.
9
* Copyright (C) 2008 Oracle Corporation
11
* This file is part of VirtualBox Open Source Edition (OSE), as
12
* available from http://www.virtualbox.org. This file is free software;
13
* you can redistribute it and/or modify it under the terms of the GNU
14
* General Public License (GPL) as published by the Free Software
15
* Foundation, in version 2 as it comes in the "COPYING" file of the
16
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20
#include "Performance.h"
24
class CollectorOS2 : public CollectorHAL
27
virtual int getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle);
28
virtual int getHostCpuMHz(ULONG *mhz);
29
virtual int getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available);
30
virtual int getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel);
31
virtual int getProcessMemoryUsage(RTPROCESS process, ULONG *used);
35
CollectorHAL *createHAL()
37
return new CollectorOS2();
40
int CollectorOS2::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle)
45
int CollectorOS2::getHostCpuMHz(ULONG *mhz)
50
int CollectorOS2::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
55
int CollectorOS2::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel)
60
int CollectorOS2::getProcessMemoryUsage(RTPROCESS process, ULONG *used)