I think that the example program task in libpfm4 does pretty much what I want it to, except I wanted to have a finer sampling period than 1 sec. I added an option to specify a number of microseconds and use usleep(sleeptime) instead of sleep(1). When I set sleeptime below 1mil microsec, print_counts tells me that it's scaled from, say, 95.28% of time. I can't quite figure that part out - what's going on with the ratios and scaling in print_counts, and why do we need them?
Thanks, -dan
------------------------------------------------------------------------------
_______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel