Example of using CPU counters: implements a performance counter monitoring utility for Intel Transactional Synchronization Extensions.
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>
|
#define | HACK_TO_REMOVE_DUPLICATE_ERROR |
|
#define | PCM_DELAY_DEFAULT 1.0 |
|
#define | PCM_DELAY_MIN 0.015 |
|
#define | PCM_CALIBRATION_INTERVAL 50 |
|
|
void | print_usage (const string progname) |
|
template<class StateType > |
void | print_basic_stats (const StateType &BeforeState, const StateType &AfterState, bool csv) |
|
template<class StateType > |
void | print_custom_stats (const StateType &BeforeState, const StateType &AfterState, bool csv) |
|
int | findEvent (const char *name) |
|
int | main (int argc, char *argv[]) |
|
Example of using CPU counters: implements a performance counter monitoring utility for Intel Transactional Synchronization Extensions.