CE 5.0 includes developer tools that perform this same task. See the Kernel Tracker topic for further details.
Microsoft OSBench.exe
This tool included in Platform Builder enables you to collect timing samples to measure the performance of the kernel by conducting scheduler performance-timing tests. A scheduler performance- timing test measures how much time is required for a basic kernel operation, such as a synchronization action. An example of a synchronization action is scheduling a thread that is waiting on an event that has just been set by another thread. Wherever appropriate, the test runs two sets of metrics: thread-to-thread within a process and thread-to-thread across processes. If appropriate, a stress suite can be applied while running the test.
The OSBench.exe tool enables you to determine how long it takes to perform the following tasks:
Acquire or release a critical section
Wait or signal an event
Create a semaphore or mutex
Yield a thread
System API call
For more information on OSBench, including the command-line parameters, visit Microsoft's Web Site.
Note: This tool is distributed with Platform Builder and was written by Microsoft. ADS does not support the application, we simply provide it as an informational analysis tool.
Edited by 27-Mar-2007 by akidder: Add note and link about Kernel Tracker. Remove links to OSBench.