CE 5.0 includes developer tools that perform this same task. See the Kernel Tracker topic for further details.
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: