i want to use PAPI to read CORE2 CPU performance counters, when the cpu is runing programs
i want to read the counters one time each second,i write program to read the counters, but i doesn't work
the basic structure of the program is following:
main()
{
...
while(1){
PAPI_start(eventset);//start counters
sleep(1);
PAPI_stop(eventset, values)//read counters
}
}
i find that if the program go to sleep, the value of the counter will not increase. why ?
