Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

stam.h File Reference


Detailed Description

STAM - Statistics Manager.

Definition in file stam.h.

#include <VBox/cdefs.h>
#include <VBox/types.h>
#include <iprt/stdarg.h>

Go to the source code of this file.

Classes

struct  STAMCOUNTER
struct  STAMPROFILE
struct  STAMPROFILEADV
struct  STAMRATIOU32

Defines

#define STAM_COUNTER_ADD(pCounter, Addend)   do { } while (0)
#define STAM_COUNTER_DEC(pCounter)   do { } while (0)
#define STAM_COUNTER_INC(pCounter)   do { } while (0)
#define STAM_COUNTER_RESET(pCounter)   STAM_REL_COUNTER_RESET(pCounter)
#define STAM_DEREG(pVM, pvSample)   STAM_STATS({ STAM_REL_DEREG(pVM, pvSample); })
#define STAM_GET_TS(u64)
#define STAM_PROFILE_ADV_RESUME(pProfileAdv, Prefix)   do { } while (0)
#define STAM_PROFILE_ADV_START(pProfileAdv, Prefix)   do { } while (0)
#define STAM_PROFILE_ADV_STOP(pProfileAdv, Prefix)   do { } while (0)
#define STAM_PROFILE_ADV_STOP_EX(pProfileAdv, pProfile2, Prefix)   do { } while (0)
#define STAM_PROFILE_ADV_SUSPEND(pProfileAdv, Prefix)   do { } while (0)
#define STAM_PROFILE_START(pProfile, Prefix)   do { } while (0)
#define STAM_PROFILE_STOP(pProfile, Prefix)   do { } while (0)
#define STAM_PROFILE_STOP_EX(pProfile, pProfile2, Prefix)   do { } while (0)
#define STAM_REG(pVM, pvSample, enmType, pszName, enmUnit, pszDesc)   STAM_STATS({STAM_REL_REG(pVM, pvSample, enmType, pszName, enmUnit, pszDesc);})
#define STAM_REG_USED(pVM, pvSample, enmType, pszName, enmUnit, pszDesc)   STAM_STATS({ STAM_REL_REG_USED(pVM, pvSample, enmType, pszName, enmUnit, pszDesc); })
#define STAM_REL_COUNTER_ADD(pCounter, Addend)   do { (pCounter)->c += (Addend); } while (0)
#define STAM_REL_COUNTER_DEC(pCounter)   do { (pCounter)->c--; } while (0)
#define STAM_REL_COUNTER_INC(pCounter)   do { (pCounter)->c++; } while (0)
#define STAM_REL_COUNTER_RESET(pCounter)   do { (pCounter)->c = 0; } while (0)
#define STAM_REL_DEREG(pVM, pvSample)   STAM_REL_STATS({ int rcStam = STAMR3Deregister(pVM, pvSample); AssertRC(rcStam); })
#define STAM_REL_PROFILE_ADV_RESUME(pProfileAdv, Prefix)
#define STAM_REL_PROFILE_ADV_START(pProfileAdv, Prefix)   STAM_GET_TS((pProfileAdv)->tsStart)
#define STAM_REL_PROFILE_ADV_STOP(pProfileAdv, Prefix)
#define STAM_REL_PROFILE_ADV_STOP_EX(pProfileAdv, pProfile2, Prefix)
#define STAM_REL_PROFILE_ADV_SUSPEND(pProfileAdv, Prefix)
#define STAM_REL_PROFILE_START(pProfile, Prefix)
#define STAM_REL_PROFILE_STOP(pProfile, Prefix)
#define STAM_REL_PROFILE_STOP_EX(pProfile, pProfile2, Prefix)
#define STAM_REL_REG(pVM, pvSample, enmType, pszName, enmUnit, pszDesc)
#define STAM_REL_REG_USED(pVM, pvSample, enmType, pszName, enmUnit, pszDesc)
#define STAM_REL_STATS(code)   do code while(0)
#define STAM_REL_U16_ADD(pCounter, Addend)   do { *(pCounter) += (Addend); } while (0)
#define STAM_REL_U16_DEC(pCounter)   do { --*(pCounter); } while (0)
#define STAM_REL_U16_INC(pCounter)   do { ++*(pCounter); } while (0)
#define STAM_REL_U32_ADD(pCounter, Addend)   do { *(pCounter) += (Addend); } while (0)
#define STAM_REL_U32_DEC(pCounter)   do { --*(pCounter); } while (0)
#define STAM_REL_U32_INC(pCounter)   do { ++*(pCounter); } while (0)
#define STAM_REL_U64_ADD(pCounter, Addend)   do { *(pCounter) += (Addend); } while (0)
#define STAM_REL_U64_DEC(pCounter)   do { --*(pCounter); } while (0)
#define STAM_REL_U64_INC(pCounter)   do { ++*(pCounter); } while (0)
#define STAM_REL_U8_ADD(pCounter, Addend)   do { *(pCounter) += (Addend); } while (0)
#define STAM_REL_U8_DEC(pCounter)   do { --*(pCounter); } while (0)
#define STAM_REL_U8_INC(pCounter)   do { ++*(pCounter); } while (0)
#define STAM_STATS(code)   do {} while(0)
#define STAM_U16_ADD(pCounter, Addend)   do { } while (0)
#define STAM_U16_DEC(pCounter)   do { } while (0)
#define STAM_U16_INC(pCounter)   do { } while (0)
#define STAM_U32_ADD(pCounter, Addend)   do { } while (0)
#define STAM_U32_DEC(pCounter)   do { } while (0)
#define STAM_U32_INC(pCounter)   do { } while (0)
#define STAM_U64_ADD(pCounter, Addend)   do { } while (0)
#define STAM_U64_DEC(pCounter)   do { } while (0)
#define STAM_U64_INC(pCounter)   do { } while (0)
#define STAM_U8_ADD(pCounter, Addend)   do { } while (0)
#define STAM_U8_DEC(pCounter)   do { } while (0)
#define STAM_U8_INC(pCounter)   do { } while (0)

Typedefs

typedef STAMTYPE void STAMUNIT
STAMVISIBILITY 
enmVisiblity
typedef void FNSTAMR3CALLBACKPRINT (PVM pVM, void *pvSample, char *pszBuf, size_t cchBuf)
typedef void FNSTAMR3CALLBACKRESET (PVM pVM, void *pvSample)
typedef const STAMCOUNTERPCSTAMCOUNTER
typedef const STAMPROFILEPCSTAMPROFILE
typedef const STAMPROFILEADVPCSTAMPROFILEADV
typedef const STAMRATIOU32PCSTAMRATIOU32
typedef FNSTAMR3CALLBACKPRINTPFNSTAMR3CALLBACKPRINT
typedef FNSTAMR3CALLBACKRESETPFNSTAMR3CALLBACKRESET
typedef FNSTAMR3ENUM * PFNSTAMR3ENUM
typedef STAMCOUNTERPSTAMCOUNTER
typedef STAMPROFILEPSTAMPROFILE
typedef STAMPROFILEADVPSTAMPROFILEADV
typedef STAMRATIOU32PSTAMRATIOU32
typedef STAMTYPE void STAMUNIT
STAMVISIBILITY const char void * 
pvUser

Enumerations

enum  STAMTYPE {
  STAMTYPE_INVALID = 0, STAMTYPE_COUNTER, STAMTYPE_PROFILE, STAMTYPE_PROFILE_ADV,
  STAMTYPE_RATIO_U32, STAMTYPE_RATIO_U32_RESET, STAMTYPE_CALLBACK, STAMTYPE_U8,
  STAMTYPE_U8_RESET, STAMTYPE_X8, STAMTYPE_X8_RESET, STAMTYPE_U16,
  STAMTYPE_U16_RESET, STAMTYPE_X16, STAMTYPE_X16_RESET, STAMTYPE_U32,
  STAMTYPE_U32_RESET, STAMTYPE_X32, STAMTYPE_X32_RESET, STAMTYPE_U64,
  STAMTYPE_U64_RESET, STAMTYPE_X64, STAMTYPE_X64_RESET, STAMTYPE_END
}
enum  STAMUNIT {
  STAMUNIT_INVALID = 0, STAMUNIT_NONE, STAMUNIT_CALLS, STAMUNIT_COUNT,
  STAMUNIT_BYTES, STAMUNIT_PAGES, STAMUNIT_ERRORS, STAMUNIT_OCCURENCES,
  STAMUNIT_TICKS_PER_CALL, STAMUNIT_TICKS_PER_OCCURENCE, STAMUNIT_GOOD_BAD, STAMUNIT_MEGABYTES,
  STAMUNIT_KILOBYTES, STAMUNIT_NS, STAMUNIT_NS_PER_CALL, STAMUNIT_NS_PER_OCCURENCE,
  STAMUNIT_PCT, STAMUNIT_END
}
enum  STAMVISIBILITY {
  STAMVISIBILITY_INVALID = 0, STAMVISIBILITY_ALWAYS, STAMVISIBILITY_USED, STAMVISIBILITY_NOT_GUI,
  STAMVISIBILITY_END
}

Functions

typedef DECLCALLBACK (int) FNSTAMR3ENUM(const char *pszName
 VMMR3DECL (const char *) STAMR3GetUnit(STAMUNIT enmUnit)
 VMMR3DECL (void) STAMR3TermUVM(PUVM pUVM)
 VMMR3DECL (int) STAMR3InitUVM(PUVM pUVM)

Variables

void STAMTYPE STAMVISIBILITY
STAMUNIT const char const char
void STAMTYPE STAMVISIBILITY
STAMUNIT const char const char
void STAMTYPE STAMVISIBILITY
STAMUNIT const char const char
va_list 
args
void STAMTYPE enmType
void STAMTYPE STAMVISIBILITY
const char STAMUNIT 
enmUnit
void STAMTYPE STAMVISIBILITY enmVisibility
const char char size_t bool fWithDesc
const char char size_t * pcchSnapshot
const char PFNSTAMR3ENUM pfnEnum
void STAMVISIBILITY STAMUNIT
PFNSTAMR3CALLBACKRESET
PFNSTAMR3CALLBACKPRINT 
pfnPrint
void STAMVISIBILITY STAMUNIT
PFNSTAMR3CALLBACKRESET 
pfnReset
const char char ** ppszSnapshot
void STAMTYPE STAMVISIBILITY
const char STAMUNIT const char * 
pszDesc
void STAMTYPE STAMVISIBILITY
const char * 
pszName
const char * pszPat
char * pszSnapshot
void * pvSample


Generated by  Doxygen 1.6.0   Back to index