Re: [perfmon2] pfm_start/pfm_stop needed for thread-based self-monitoring?

2008-12-22 Thread stephane eranian
Hello, On Mon, Dec 22, 2008 at 5:50 AM, Andrej van der Zee wrote: > Hi, > > I am using perfmon2 for thread-based self-monitoring. The thread > executes many requests and I want to monitor each request separately. > To make it little intrusive as possible, I am trying to minimize code > for re-in

Re: [perfmon2] pfm_start/pfm_stop needed for thread-based self-monitoring?

2008-12-22 Thread Andrej van der Zee
Hi, Thanks for your reply. >> > You don't really need to reset for each request. You can just read at the > beginning and end of each request and compute delta. Is there any difference in performance between a pfm_read_pmds and pfm_write_pmds? Resetting the counters with pfm_write_pmds takes car