Intel(r) Performance Counter Monitor
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
UncoreCounterState Class Reference

Basic uncore counter state. More...

#include <cpucounters.h>

Inheritance diagram for UncoreCounterState:
ServerUncorePowerState SocketCounterState SystemCounterState

Public Member Functions

UncoreCounterStateoperator+= (const UncoreCounterState &o)
 

Protected Member Functions

void readAndAggregate (SafeMsrHandle *)
 

Protected Attributes

uint64 UncMCFullWrites
 
uint64 UncMCNormalReads
 
uint64 UncMCIORequests
 
uint64 PackageEnergyStatus
 
uint64 DRAMEnergyStatus
 
uint64 CStateResidency [PCM::MAX_C_STATE+1]
 

Friends

class PCM
 
template<class CounterStateType >
uint64 getBytesReadFromMC (const CounterStateType &before, const CounterStateType &after)
 Computes number of bytes read from DRAM memory controllers. More...
 
template<class CounterStateType >
uint64 getBytesWrittenToMC (const CounterStateType &before, const CounterStateType &after)
 Computes number of bytes written to DRAM memory controllers. More...
 
template<class CounterStateType >
uint64 getIORequestBytesFromMC (const CounterStateType &before, const CounterStateType &after)
 Computes number of bytes of read/write requests from all IO sources. More...
 
template<class CounterStateType >
uint64 getConsumedEnergy (const CounterStateType &before, const CounterStateType &after)
 Returns energy consumed by processor, exclusing DRAM (measured in internal units) More...
 
template<class CounterStateType >
uint64 getDRAMConsumedEnergy (const CounterStateType &before, const CounterStateType &after)
 Returns energy consumed by DRAM (measured in internal units) More...
 
template<class CounterStateType >
double getPackageCStateResidency (int state, const CounterStateType &before, const CounterStateType &after)
 Computes residency in the package C-state. More...
 

Detailed Description

Basic uncore counter state.

Intended only for derivation, but not for the direct use

Friends And Related Function Documentation

template<class CounterStateType >
uint64 getBytesReadFromMC ( const CounterStateType &  before,
const CounterStateType &  after 
)
friend

Computes number of bytes read from DRAM memory controllers.

Parameters
beforeCPU counter state before the experiment
afterCPU counter state after the experiment
Returns
Number of bytes
template<class CounterStateType >
uint64 getBytesWrittenToMC ( const CounterStateType &  before,
const CounterStateType &  after 
)
friend

Computes number of bytes written to DRAM memory controllers.

Parameters
beforeCPU counter state before the experiment
afterCPU counter state after the experiment
Returns
Number of bytes
template<class CounterStateType >
uint64 getConsumedEnergy ( const CounterStateType &  before,
const CounterStateType &  after 
)
friend

Returns energy consumed by processor, exclusing DRAM (measured in internal units)

Parameters
beforeCPU counter state before the experiment
afterCPU counter state after the experiment
template<class CounterStateType >
uint64 getDRAMConsumedEnergy ( const CounterStateType &  before,
const CounterStateType &  after 
)
friend

Returns energy consumed by DRAM (measured in internal units)

Parameters
beforeCPU counter state before the experiment
afterCPU counter state after the experiment
template<class CounterStateType >
uint64 getIORequestBytesFromMC ( const CounterStateType &  before,
const CounterStateType &  after 
)
friend

Computes number of bytes of read/write requests from all IO sources.

Parameters
beforeCPU counter state before the experiment
afterCPU counter state after the experiment
Returns
Number of bytes
template<class CounterStateType >
double getPackageCStateResidency ( int  state,
const CounterStateType &  before,
const CounterStateType &  after 
)
friend

Computes residency in the package C-state.

Parameters
stateC-state
beforeCPU counter state before the experiment
afterCPU counter state after the experiment
Returns
residence ratio (0..1): 0 - 0%, 1.0 - 100%

The documentation for this class was generated from the following files: