The Windows version of CodeAnalyst has an API. You could use the counting functions (fnSetCountingEvent, fnGetEventCount, fnSetCountingConfiguration, fnGetCountingEventCount, and fnGetAllEventCounts) in a loop to get the number of events in each iteration.
The events that would be of interest sound like 0x0c3 (retired mispredicted branch instructions), 0x040 (data cache accesses), and 0x041 (data cache misses). If you also get the count of event 0x076 (unhalted clock cycles), you can determine how many cycles pass for each iteration.
I hope this helps.
ok thanks I will try