Question about simple profiling implementation

Andrew de Quincey adq_dvb at lidskialf.net
Mon Dec 1 16:35:07 CST 2003


On Monday 01 December 2003 20:16, Mike Hearn wrote:
> On Mon, 2003-12-01 at 12:49, Andrew de Quincey wrote:
> > Hi, the last thing I have to do with the profiling stuff is the
> > trickiest: To decide what is the best way to determine the times.
>
> It might be worth using oprofile, apparently in 2.6 at any rate it works
> well with Wine.

Thats a good point... the thing I liked about wine's profiling was the neat 
module/API based relay call filtering ability. 

I'll have a check into oprofile though; I'd completely forgotten about it!

> > The problem is.. not all i386-derived CPUs support this feature. As far
> > as I can see there are three ways of determining this. Which would people
> > prefer?
>
> IIRC there is an API call you can use, see dlls/kernel/cpu.c (i think,
> might be ntdll)

Yeah, I think thats QueryPerformanceCounter()/NtQueryPerformanceCounter().



More information about the wine-devel mailing list