PerformanceFreeBSD.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $Id$ */
/** @file
* VirtualBox Performance Collector, FreeBSD Specialization.
*/
/*
* Copyright (C) 2008-2009 Oracle Corporation
*
* 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.
*/
#include "Performance.h"
namespace pm {
class CollectorFreeBSD : public CollectorHAL
{
public:
};
{
return new CollectorFreeBSD();
}
{
return E_NOTIMPL;
}
{
int CpuMHz = 0;
/** @todo: Howto support more than one CPU? */
return VERR_NOT_SUPPORTED;
return VINF_SUCCESS;
}
{
int rc = VINF_SUCCESS;
u_int cPagesMemFree = 0;
u_int cPagesMemInactive = 0;
u_int cPagesMemCached = 0;
u_int cPagesMemUsed = 0;
int cbPage = 0;
int cProcessed = 0;
cProcessed++;
cbParameter = sizeof(cPagesMemFree);
cProcessed++;
cbParameter = sizeof(cPagesMemUsed);
cProcessed++;
cbParameter = sizeof(cPagesMemInactive);
cProcessed++;
cbParameter = sizeof(cPagesMemCached);
cProcessed++;
cbParameter = sizeof(cbPage);
cProcessed++;
if (cProcessed == 6)
{
}
else
return rc;
}
{
return E_NOTIMPL;
}
{
return E_NOTIMPL;
}
} /* namespace pm */