Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Implementing Profiling Support in the OAL (Windows Embedded CE 6.0)

1/5/2010

In Windows Embedded CE 6.0, it is no longer necessary to build a profiling OAL over a non-profiling OAL. If your OAL supports profiling, you should always include it in the final or shipping image. Profiling is a very useful tool for debugging devices in the field.

Ee478981.note(en-US,WinEmbedded.60).gifNote:
Do not add the profiler to shipping devices. The goal is to avoid performance and memory loss due to the profiler.

To switch between a non-profiling run-time image and profiling run-time image, simply set IMGPROFILER=1 and remake the image. KernProf.dll will detect OAL profiling support and use it if it is available.

This means that the build target KernKitlProf.exe has no equivalent in Windows Embedded CE 6.0. OEMs only need to build Oal.exe, or OalKitl.exe if KITL is statically-linked. If your OAL supports profiling, you can simply initialize the following function pointers in OEMInit:

g_pOemGlob->pfnProfileTimerEnable = OEMProfileTimerEnable;

g_pOemGlob->pfnProfileTimerDisable = OEMProfileTimerDisable;

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.