1 | /* $Id: PerformanceOs2.cpp 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 |
|
---|
3 | /** @file
|
---|
4 | *
|
---|
5 | * VBox OS/2-specific Performance Classes implementation.
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2008-2023 Oracle and/or its affiliates.
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox base platform packages, as
|
---|
12 | * available from https://www.virtualbox.org.
|
---|
13 | *
|
---|
14 | * This program is free software; you can redistribute it and/or
|
---|
15 | * modify it under the terms of the GNU General Public License
|
---|
16 | * as published by the Free Software Foundation, in version 3 of the
|
---|
17 | * License.
|
---|
18 | *
|
---|
19 | * This program is distributed in the hope that it will be useful, but
|
---|
20 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
22 | * General Public License for more details.
|
---|
23 | *
|
---|
24 | * You should have received a copy of the GNU General Public License
|
---|
25 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
26 | *
|
---|
27 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
28 | */
|
---|
29 |
|
---|
30 | #include "Performance.h"
|
---|
31 |
|
---|
32 | namespace pm {
|
---|
33 |
|
---|
34 | class CollectorOS2 : public CollectorHAL
|
---|
35 | {
|
---|
36 | public:
|
---|
37 | virtual int getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle);
|
---|
38 | virtual int getHostCpuMHz(ULONG *mhz);
|
---|
39 | virtual int getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available);
|
---|
40 | virtual int getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel);
|
---|
41 | virtual int getProcessMemoryUsage(RTPROCESS process, ULONG *used);
|
---|
42 | };
|
---|
43 |
|
---|
44 |
|
---|
45 | CollectorHAL *createHAL()
|
---|
46 | {
|
---|
47 | return new CollectorOS2();
|
---|
48 | }
|
---|
49 |
|
---|
50 | int CollectorOS2::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle)
|
---|
51 | {
|
---|
52 | return VERR_NOT_IMPLEMENTED;
|
---|
53 | }
|
---|
54 |
|
---|
55 | int CollectorOS2::getHostCpuMHz(ULONG *mhz)
|
---|
56 | {
|
---|
57 | return VERR_NOT_IMPLEMENTED;
|
---|
58 | }
|
---|
59 |
|
---|
60 | int CollectorOS2::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
|
---|
61 | {
|
---|
62 | return VERR_NOT_IMPLEMENTED;
|
---|
63 | }
|
---|
64 |
|
---|
65 | int CollectorOS2::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel)
|
---|
66 | {
|
---|
67 | return VERR_NOT_IMPLEMENTED;
|
---|
68 | }
|
---|
69 |
|
---|
70 | int CollectorOS2::getProcessMemoryUsage(RTPROCESS process, ULONG *used)
|
---|
71 | {
|
---|
72 | return VERR_NOT_IMPLEMENTED;
|
---|
73 | }
|
---|
74 |
|
---|
75 | }
|
---|