|
PAPI
5.0.1.0
|

Go to the source code of this file.
Functions | |
| main () | |
| int | your_slow_code () |
| main | ( | ) |
Definition at line 20 of file PAPI_ipc.c.
{
float real_time, proc_time,ipc;
long long ins;
float real_time_i, proc_time_i, ipc_i;
long long ins_i;
int retval;
if((retval=PAPI_ipc(&real_time_i,&proc_time_i,&ins_i,&ipc_i)) < PAPI_OK)
{
printf("Could not initialise PAPI_ipc \n");
printf("retval: %d\n", retval);
exit(1);
}
your_slow_code();
if((retval=PAPI_ipc( &real_time, &proc_time, &ins, &ipc))<PAPI_OK)
{
printf("retval: %d\n", retval);
exit(1);
}
printf("Real_time: %f Proc_time: %f Total instructions: %lld IPC: %f\n",
real_time, proc_time,ins,ipc);
/* clean up */
PAPI_shutdown();
exit(0);
}

| int your_slow_code | ( | ) |
Definition at line 53 of file PAPI_ipc.c.