다음을 통해 공유


Configuring the Config.bib and Common.bib Files for IMGPROFILER (Windows CE 5.0)

Send Feedback

To support the kernel profiler when the IMGPROFILER environment variable is set, verify that the Config.bib and Common.bib files must contain appropriate conditional logic to respond to the value of this environment variable.

To configure the Config.bib and Common.bib files for IMGPROFILER

  1. In the Config.bib file, if IMGPROFILER is set, set PROFILE=ON.

    Verify that the Config.bib file contains the following code.

    IF IMGPROFILER
       PROFILE=ON
    ELSE
       PROFILE=OFF
    ENDIF
    

    When you set this PROFILE=ON, Makeimage is instructed to add information required for profiling into the run-time image. For more information about the PROFILE flag, see PROFILE.

  2. To choose a version of the kernel that supports the kernel profiler and also includes KITL, in the Common.bib file, if IMGPROFILER is set, use the Kernkitlprof.exe version of the kernel.

    Verify that the Common.bib file contains the following code.

    IF IMGPROFILER
       nk.exe     $(_FLATRELEASEDIR)\kernkitlprof.exe     NK  SHXL
    ENDIF
    
  3. If you use a custom BSP, there may not be a Kernkitlprof version of the kernel available, particularly if you migrated the BSP from a previous version of Windows CE. For information about building a Kernkitlprof version of the kernel, see Creating a Kernkitlprof Version of the Kernel.

    - or -

    To choose a version of the kernel that supports the kernel profiler and does not include KITL, in the Common.bib file, if IMGPROFILER is set, use the Kernprof.exe version of the kernel.

    The following code example shows the section of the Common.bib file that you should modify.

    IF IMGPROFILER
       nk.exe     $(_FLATRELEASEDIR)\kernkitlprof.exe     NK  SHXL
    ENDIF
    

    The following code example shows the same section of the Common.bib file after you modify the section.

    IF IMGPROFILER
    IF IMGNOKITL
       nk.exe     $(_FLATRELEASEDIR)\kernprof.exe         NK  SHXL
    ENDIF
    IF IMGNOKITL !
       nk.exe     $(_FLATRELEASEDIR)\kernkitlprof.exe     NK  SHXL
    ENDIF
    ENDIF
    

    For information about creating a Kernprof version of the kernel, see Creating a Kernprof Version of the Kernel.

See Also

Setting Up the Kernel Profiler | Building a Run-Time Image That Supports the Kernel Profiler | Kernel Profiler Modes

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.