Controlling Profiling Using the Device Keyboard when Running the Profile-Enabled OS Image

For a CEPC, the keyboard drivers implement various types of profiling control for the following device shortcut keys.

Windows CE .NET 4.1 and earlier

To Do this
Run object call profiling. Press the F8 shortcut key.
Run buffered Monte Carlo profiling. Press the F9 shortcut key.
Run kernel call profiling. Press the F10 shortcut key.
Run unbuffered Monte Carlo profiling. Press the F11 shortcut key.
Quit profiling. Press the F12 shortcut key.

Windows CE .NET 4.2

To Do this
Toggle between buffered, unbuffered, and CELog storage modes. Press the F8 shortcut key.
Run Monte Carlo profiling. Press the F9 shortcut key.
Run kernel call profiling. Press the F10 shortcut key.
Run object call profiling. Press the F11 shortcut key.
Quit profiling. Press the F12 shortcut key.

The following code example shows two sample outputs that were generated while running a profile-enabled kernel on a CEPC.

Capture to buffer (using F8 key)
ProfileReport: Looking up symbols for 619840 hits.
..............................................................
Total samples=619840
Module        Hits        Percent
------------  ----------  -------
nk.exe            618929     99.8
coredll.dll          314      0.0
ndis.dll              42      0.0
kbdmouse.dll          35      0.0
ceddk.dll              7      0.0
UNKNOWN              513      0.0
Hits       Percent Address  Module       Routine
---------- ------- -------- ------------:---------------------
  618231  99 8020eaf6 nk.exe      :_KCall
  189    0 80218891 nk.exe      :_ObjectCall
  134    0 8020ea0b nk.exe      :_Int20SyscallHandler
  73    0 80218c7b nk.exe      :_ServerCallReturn
  65    0 8020f9a2 nk.exe      :_SC_VirtualQuery
  51    0 01ad9cd5 coredll.dll    :_EnterCriticalSection
  45    0 802183d4 nk.exe      :_GetObjectPtrByType
  45    0 01ad824c coredll.dll    :_xxx_WaitForSingleObject
  42    0 01ad9c93 coredll.dll    :_UserBlockingEnd
  33    0 01ad8ddd coredll.dll    :_xxx_GetMessageW
  32    0 80205aec nk.exe      :_SC_GetTickCount
  28    0 802112c0 nk.exe      :_SC_EventModify
  27    0 01ad9d27 coredll.dll    :_LeaveCriticalSection
  25    0 8021498b nk.exe      :_SC_ThreadSetPrio
  23    0 017f5884 ndis.dll      :_INdisTimerThread
  20    0 01adab27 coredll.dll    :_waveInReset
  15    0 802135a0 nk.exe      :_RequeuePrioThread
  ... ...

KCALL Profiling using (F9 key)
Resolution: 1.000 usec per tick
NextThread: Calls=391 Min=25 Max=88 Ave=30
Other Kernel calls: Max=72 Avg=4

See Also

CEPC How-to Topics | Event Tracking | Process Profiling | Controlling Profiling when Running the Profile-Enabled OS Image from an Application | Target Control Debugging Commands

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.