What Kind of Support Does Windows CE Provide for Profiling?
There are 3 mechanisms to support profiling under Windows CE version 2.1 – a) Instrumented Kernel Profiling, b) Monte Carlo Profiling, and c) Hardware Assisted Profiling. In version 2.1, we provide a profile-enabled Kernel Library, called NKPROF.LIB, that is used by both Instrumented Kernel Profiler (for KCALL profiling and Object Call profiling) and the Monte Carlo Profiler. Both these profiling methods allow OEMs to profile the performance of the Windows CE Kernel and OS components running on the OEM platform. The OEM implements APIs at the OAL layer that the Kernel calls to perform profiling. These 2 methods also enable profiling from applications by using the ProfileStart and ProfileStop functions. Monte Carlo profiling involves interrupting the system at a high rate and recording the interrupted address. By interrupting at a high rate, the samples will give a good representation of what routines are taking the highest amount of time. Hardware Assisted Profiling – Windows CE versio