#include <PfmCodeAnalyser.h>
|
| static PfmCodeAnalyser & | Instance (const char *event0="UNHALTED_CORE_CYCLES", unsigned int cmask_v0=0, bool inv_v0=false, const char *event1="", unsigned int cmask_v1=0, bool inv_v1=false, const char *event2="", unsigned int cmask_v2=0, bool inv_v2=false, const char *event3="", unsigned int cmask_v3=0, bool inv_v3=false) |
| |
|
| | PfmCodeAnalyser (const char *event0, unsigned int cmask_v0, bool inv_v0, const char *event1, unsigned int cmask_v1, bool inv_v1, const char *event2, unsigned int cmask_v2, bool inv_v2, const char *event3, unsigned int cmask_v3, bool inv_v3) |
| |
| | PfmCodeAnalyser (PfmCodeAnalyser const &) |
| |
| PfmCodeAnalyser & | operator= (PfmCodeAnalyser const &) |
| |
| | ~PfmCodeAnalyser () |
| |
Definition at line 22 of file PfmCodeAnalyser.h.
| PfmCodeAnalyser::PfmCodeAnalyser |
( |
const char * |
event0, |
|
|
unsigned int |
cmask_v0, |
|
|
bool |
inv_v0, |
|
|
const char * |
event1, |
|
|
unsigned int |
cmask_v1, |
|
|
bool |
inv_v1, |
|
|
const char * |
event2, |
|
|
unsigned int |
cmask_v2, |
|
|
bool |
inv_v2, |
|
|
const char * |
event3, |
|
|
unsigned int |
cmask_v3, |
|
|
bool |
inv_v3 |
|
) |
| |
|
private |
Definition at line 64 of file PfmCodeAnalyser.h.
{
int ax,bx,cx,dx;
int sse4_2_mask = 1 << 20;
{
}
{
}
{
printf("Cannot initialize perfmon!!\nExiting...\n");
}
{
}
{
}
{
}
{
}
}
| PfmCodeAnalyser::~PfmCodeAnalyser |
( |
| ) |
|
|
private |
| PfmCodeAnalyser & PfmCodeAnalyser::Instance |
( |
const char * |
event0 = "UNHALTED_CORE_CYCLES", |
|
|
unsigned int |
cmask_v0 = 0, |
|
|
bool |
inv_v0 = false, |
|
|
const char * |
event1 = "", |
|
|
unsigned int |
cmask_v1 = 0, |
|
|
bool |
inv_v1 = false, |
|
|
const char * |
event2 = "", |
|
|
unsigned int |
cmask_v2 = 0, |
|
|
bool |
inv_v2 = false, |
|
|
const char * |
event3 = "", |
|
|
unsigned int |
cmask_v3 = 0, |
|
|
bool |
inv_v3 = false |
|
) |
| |
|
static |
Definition at line 124 of file PfmCodeAnalyser.h.
{
static PfmCodeAnalyser theSingleton(event0, cmask_v0, inv_v0, event1, cmask_v1, inv_v1, event2, cmask_v2, inv_v2, event3, cmask_v3, inv_v3);
return theSingleton;
}
| void PfmCodeAnalyser::start |
( |
| ) |
|
Definition at line 135 of file PfmCodeAnalyser.h.
{
memset(
pd, 0,
sizeof(
pd));
memset(
pc, 0,
sizeof(
pc));
{
{
fprintf(stderr,
"ERROR: cannot find event: %s\naborting...\n",
event_str[
i]);
}
}
{
{
}
{
}
}
{
}
else
{
}
{
fprintf(stderr,
"ERROR: cannot dispatch events: %s\naborting...\n",
pfm_strerror(
ret));
}
{
}
{
}
{
fprintf(stderr, "ERROR: Context not created\naborting...\n");
}
{
fprintf(stderr, "ERROR: Could not write pmcs\naborting...\n");
}
{
fprintf(stderr, "ERROR: Could not write pmds\naborting...\n");
}
{
fprintf(stderr, "ERROR: Could not load context\naborting...\n");
}
}
| void PfmCodeAnalyser::stop |
( |
| ) |
|
Definition at line 221 of file PfmCodeAnalyser.h.
{
{
fprintf(stderr, "ERROR: Could not read pmds\naborting...\n");
}
{
}
}
| void PfmCodeAnalyser::stop_init |
( |
| ) |
|
Definition at line 238 of file PfmCodeAnalyser.h.
{
{
fprintf(stderr, "ERROR: Could not read pmds\naborting...\n");
}
{
}
}
| unsigned PfmCodeAnalyser::count |
|
private |
| unsigned PfmCodeAnalyser::i |
|
private |
| int PfmCodeAnalyser::nehalem |
|
private |
| int PfmCodeAnalyser::used_counters_number |
|
private |
The documentation for this class was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r7/GaudiProfiling/GaudiProfiling/PfmCodeAnalyser.h