VirtualBox

source: vbox/trunk/src/VBox/Main/os2/PerformanceOs2.cpp@ 11162

Last change on this file since 11162 was 10993, checked in by vboxsync, 16 years ago

Fix OSE export

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/* $Id: PerformanceOs2.cpp 10993 2008-07-30 14:55:29Z vboxsync $ */
2
3/** @file
4 *
5 * VBox OS/2-specific Performance Classes implementation.
6 */
7
8/*
9 * Copyright (C) 2008 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
20 * Clara, CA 95054 USA or visit http://www.sun.com if you need
21 * additional information or have any questions.
22 */
23
24#include "Performance.h"
25
26namespace pm {
27
28class CollectorOS2 : public CollectorHAL
29{
30public:
31 virtual int getHostCpuLoad(unsigned long *user, unsigned long *kernel, unsigned long *idle);
32 virtual int getHostCpuMHz(unsigned long *mhz);
33 virtual int getHostMemoryUsage(unsigned long *total, unsigned long *used, unsigned long *available);
34 virtual int getProcessCpuLoad(RTPROCESS process, unsigned long *user, unsigned long *kernel);
35 virtual int getProcessMemoryUsage(RTPROCESS process, unsigned long *used);
36};
37
38
39MetricFactoryOS2::MetricFactoryOS2()
40{
41 mHAL = new CollectorOS2();
42 Assert(mHAL);
43}
44
45int CollectorOS2::getHostCpuLoad(unsigned long *user, unsigned long *kernel, unsigned long *idle)
46{
47 return E_NOTIMPL;
48}
49
50int CollectorOS2::getHostCpuMHz(unsigned long *mhz)
51{
52 return E_NOTIMPL;
53}
54
55int CollectorOS2::getHostMemoryUsage(unsigned long *total, unsigned long *used, unsigned long *available)
56{
57 return E_NOTIMPL;
58}
59
60int CollectorOS2::getProcessCpuLoad(RTPROCESS process, unsigned long *user, unsigned long *kernel)
61{
62 return E_NOTIMPL;
63}
64
65int CollectorOS2::getProcessMemoryUsage(RTPROCESS process, unsigned long *used)
66{
67 return E_NOTIMPL;
68}
69
70}
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