Grid 0.7.0
PerformanceCounter Class Reference

#include <PerfCount.h>

Data Structures

struct  PerformanceCounterConfig

Public Types

enum  PerformanceCounterType {
  CACHE_REFERENCES , CACHE_MISSES , CPUCYCLES , INSTRUCTIONS ,
  L1D_READ_ACCESS , PERFORMANCE_COUNTER_NUM_TYPES
}

Public Member Functions

 PerformanceCounter (int _pct)
void Open (void)
void Start (void)
void Stop (void)
void Report (void)
 ~PerformanceCounter ()

Static Public Member Functions

static int NumTypes (void)

Data Fields

int PCT
long long count
long long cycles
int fd
int cyclefd
unsigned long long elapsed
uint64_t begin

Static Private Attributes

static const PerformanceCounterConfig PerformanceCounterConfigs []

Detailed Description

Definition at line 109 of file PerfCount.h.

Member Enumeration Documentation

◆ PerformanceCounterType

Enumerator
CACHE_REFERENCES 
CACHE_MISSES 
CPUCYCLES 
INSTRUCTIONS 
L1D_READ_ACCESS 
PERFORMANCE_COUNTER_NUM_TYPES 

Definition at line 123 of file PerfCount.h.

Constructor & Destructor Documentation

◆ PerformanceCounter()

PerformanceCounter::PerformanceCounter ( int _pct)
inline

Definition at line 147 of file PerfCount.h.

References count, cyclefd, cycles, fd, Open(), PCT, and PERFORMANCE_COUNTER_NUM_TYPES.

◆ ~PerformanceCounter()

PerformanceCounter::~PerformanceCounter ( )
inline

Definition at line 236 of file PerfCount.h.

References cyclefd, and fd.

Member Function Documentation

◆ NumTypes()

int PerformanceCounter::NumTypes ( void )
inlinestatic

Definition at line 143 of file PerfCount.h.

References PERFORMANCE_COUNTER_NUM_TYPES.

◆ Open()

void PerformanceCounter::Open ( void )
inline

Definition at line 159 of file PerfCount.h.

References cyclefd, fd, PCT, and PerformanceCounterConfigs.

Referenced by PerformanceCounter().

◆ Start()

void PerformanceCounter::Start ( void )
inline

Definition at line 191 of file PerfCount.h.

References begin, cyclecount(), cyclefd, and fd.

◆ Stop()

void PerformanceCounter::Stop ( void )
inline

Definition at line 206 of file PerfCount.h.

References begin, count, cyclecount(), cyclefd, cycles, elapsed, and fd.

◆ Report()

void PerformanceCounter::Report ( void )
inline

Definition at line 224 of file PerfCount.h.

References count, cycles, elapsed, PCT, and PerformanceCounterConfigs.

Field Documentation

◆ PerformanceCounterConfigs

const PerformanceCounter::PerformanceCounterConfig PerformanceCounter::PerformanceCounterConfigs
staticprivate

Definition at line 39 of file PerfCount.h.

Referenced by Open(), and Report().

◆ PCT

int PerformanceCounter::PCT

Definition at line 134 of file PerfCount.h.

Referenced by Open(), PerformanceCounter(), and Report().

◆ count

long long PerformanceCounter::count

Definition at line 136 of file PerfCount.h.

Referenced by PerformanceCounter(), Report(), and Stop().

◆ cycles

long long PerformanceCounter::cycles

Definition at line 137 of file PerfCount.h.

Referenced by PerformanceCounter(), Report(), and Stop().

◆ fd

int PerformanceCounter::fd

Definition at line 138 of file PerfCount.h.

Referenced by Open(), PerformanceCounter(), Start(), Stop(), and ~PerformanceCounter().

◆ cyclefd

int PerformanceCounter::cyclefd

Definition at line 139 of file PerfCount.h.

Referenced by Open(), PerformanceCounter(), Start(), Stop(), and ~PerformanceCounter().

◆ elapsed

unsigned long long PerformanceCounter::elapsed

Definition at line 140 of file PerfCount.h.

Referenced by Report(), and Stop().

◆ begin

uint64_t PerformanceCounter::begin

Definition at line 141 of file PerfCount.h.

Referenced by Start(), and Stop().


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