[PATCH] Tidy CPU time reporting, add DPC and interrupt

Ray Hinchliffe (RH) ray at rh-software.com
Wed Apr 20 01:02:12 CDT 2011


Dear Sirs,

Please find attached my patch to tidy up CPU time reporting. The primary
change is to remove unnecessary use of RtlAllocateHeap(). I also adds DPC
and Interrupt time reporting and corrects return values to be 100ns units.

I realise it's unusual to make multiple changes in one patch but as
http://source.winehq.org/git/wine.git/commit/cc01c46f415821ec458845f678287a2
419a11a7d did this I hope this is OK. That patch actually made 3 changes as
it also removed the following which is not mentioned at all.

-    /* Add 1% from idle time to kernel time, to make .NET happy */
-    steal = sppi->IdleTime.QuadPart / 100;
-    sppi->IdleTime.QuadPart -= steal;
-    sppi->KernelTime.QuadPart += steal;

Regards,
Ray




More information about the wine-patches mailing list