VirtualBox

source: vbox/trunk/src/VBox/Main/src-server/os2/PerformanceOs2.cpp

Last change on this file was 106061, checked in by vboxsync, 8 weeks ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: PerformanceOs2.cpp 106061 2024-09-16 14:03:52Z vboxsync $ */
2
3/** @file
4 *
5 * VBox OS/2-specific Performance Classes implementation.
6 */
7
8/*
9 * Copyright (C) 2008-2024 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
32namespace pm {
33
34class CollectorOS2 : public CollectorHAL
35{
36public:
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
45CollectorHAL *createHAL()
46{
47 return new CollectorOS2();
48}
49
50int CollectorOS2::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle)
51{
52 return VERR_NOT_IMPLEMENTED;
53}
54
55int CollectorOS2::getHostCpuMHz(ULONG *mhz)
56{
57 return VERR_NOT_IMPLEMENTED;
58}
59
60int CollectorOS2::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
61{
62 return VERR_NOT_IMPLEMENTED;
63}
64
65int CollectorOS2::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel)
66{
67 return VERR_NOT_IMPLEMENTED;
68}
69
70int CollectorOS2::getProcessMemoryUsage(RTPROCESS process, ULONG *used)
71{
72 return VERR_NOT_IMPLEMENTED;
73}
74
75}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette