PerformanceImpl.h revision e6a899848410114df5f1db88a025d0843a98112c
/* $Id$ */
/** @file
*
* VBox Performance COM Classes declaration.
*/
/*
* Copyright (C) 2008 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ____H_PERFORMANCEIMPL
#define ____H_PERFORMANCEIMPL
#include "VirtualBoxBase.h"
//#ifdef VBOX_WITH_RESOURCE_USAGE_API
//#endif /* VBOX_WITH_RESOURCE_USAGE_API */
#include <list>
#include <set>
#include "Performance.h"
/* Each second we obtain new CPU load stats. */
#define VBOX_USAGE_SAMPLER_MIN_INTERVAL 1000
{
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// IPerformanceMetric properties
// IPerformanceMetric methods
// public methods only for internal purposes
// public methods for internal purposes only
// (ensure there is a caller and a read lock before calling them!)
struct Data
{
/* Constructor. */
};
Data m;
};
#if 0
{
struct Data
{
/* Constructor. */
Data() { }
{
}
};
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// IPerformanceData properties
// IPerformanceData methods
// public methods only for internal purposes
};
#endif
{
void FinalRelease();
// public initializers/uninitializers only for internal purposes
void uninit();
// IPerformanceCollector properties
// IPerformanceCollector methods
// public methods only for internal purposes
// public methods for internal purposes only
// (ensure there is a caller and a read lock before calling them!)
// for VirtualBoxSupportErrorInfoImpl
void samplerCallback();
enum
{
MAGIC = 0xABBA1972u
};
unsigned int mMagic;
struct Data
{
};
Data m;
};
#endif //!____H_PERFORMANCEIMPL