Intel(r) Performance Counter Monitor
Macros | Functions
pcm-numa.cpp File Reference

Example of using CPU counters: implements a performance counter monitoring utility for NUMA (remote and local memory accesses counting). Example for programming offcore response events. More...

#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <sys/time.h>
#include <math.h>
#include <iomanip>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include <assert.h>
#include "cpucounters.h"
#include "utils.h"
#include <vector>

Macros

#define HACK_TO_REMOVE_DUPLICATE_ERROR
 
#define PCM_DELAY_DEFAULT   1.0
 
#define PCM_DELAY_MIN   0.015
 
#define PCM_CALIBRATION_INTERVAL   50
 

Functions

void print_usage (const string progname)
 
template<class StateType >
void print_stats (const StateType &BeforeState, const StateType &AfterState, bool csv)
 
int main (int argc, char *argv[])
 

Detailed Description

Example of using CPU counters: implements a performance counter monitoring utility for NUMA (remote and local memory accesses counting). Example for programming offcore response events.