VirtualBox

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

Last change on this file since 92153 was 82968, checked in by vboxsync, 5 years 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.6 KB
Line 
1/* $Id: PerformanceOs2.cpp 82968 2020-02-04 10:35:17Z vboxsync $ */
2
3/** @file
4 *
5 * VBox OS/2-specific Performance Classes implementation.
6 */
7
8/*
9 * Copyright (C) 2008-2020 Oracle Corporation
10 *
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.
18 */
19
20#include "Performance.h"
21
22namespace pm {
23
24class CollectorOS2 : public CollectorHAL
25{
26public:
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);
32};
33
34
35CollectorHAL *createHAL()
36{
37 return new CollectorOS2();
38}
39
40int CollectorOS2::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle)
41{
42 return VERR_NOT_IMPLEMENTED;
43}
44
45int CollectorOS2::getHostCpuMHz(ULONG *mhz)
46{
47 return VERR_NOT_IMPLEMENTED;
48}
49
50int CollectorOS2::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
51{
52 return VERR_NOT_IMPLEMENTED;
53}
54
55int CollectorOS2::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel)
56{
57 return VERR_NOT_IMPLEMENTED;
58}
59
60int CollectorOS2::getProcessMemoryUsage(RTPROCESS process, ULONG *used)
61{
62 return VERR_NOT_IMPLEMENTED;
63}
64
65}
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