16#define THRESHOLD 10000
17#define ERROR_RETURN(retval) { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); }
23 float real_time, proc_time,ipc;
35 printf(
"Real_time: %f Proc_time: %f Instructions: %lld IPC: %f\n",
36 real_time, proc_time,ins,ipc);
56 printf(
"Real_time: %f Proc_time: %f Instructions: %lld IPC: %f\n",
57 real_time, proc_time,ins,ipc);
#define ERROR_RETURN(retval)
Read performance events at the beginning of a region.
Read performance events at the end of a region and store the difference to the corresponding beginnin...
Simplified call to get instructions per cycle, real and processor time.
Stop a running event set of a rate function.
Return codes and api definitions.