Intel(r) Performance Counter Monitor
Classes | Macros | Functions | Variables
realtime.cpp File Reference

Two use-cases: realtime data structure performance analysis and memory-bandwidth aware scheduling. More...

#include "cpucounters.h"
#include "cpuasynchcounter.h"
#include <iostream>
#include <list>
#include <vector>
#include <algorithm>
#include <sys/time.h>

Classes

struct  T
 

Functions

double my_timestamp ()
 
long long int fib (long long int num)
 
void CPU_intensive_task ()
 
template<class DS >
void Memory_intensive_task (DS &ds)
 
double currentMemoryBandwidth ()
 
template<class DS >
void measure (DS &ds, size_t repeat, size_t nelements)
 
int main (int argc, char *argv[])
 

Variables

SystemCounterState before_sstate
 
SystemCounterState after_sstate
 
double before_time
 
double after_time
 
AsynchronCounterState counters
 
long long int all_fib = 0
 

Detailed Description

Two use-cases: realtime data structure performance analysis and memory-bandwidth aware scheduling.