Re: [perfmon2] question about task in perf_examples

2010-06-01 Thread Dan Upton
On Tue, Jun 1, 2010 at 4:35 PM, stephane eranian wrote: > Dan, > > Thanks, I think that does answer it. Follow-up question: is there an > easy > > way to also collect the PC at each sample, using libpfm4? Or would the > best > > way to do it be each time in print_counts to also open and read >

Re: [perfmon2] question about task in perf_examples

2010-06-01 Thread stephane eranian
Dan, On Tue, Jun 1, 2010 at 7:13 PM, Dan Upton wrote: > 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