Поделиться через


Running the Kernel Profiler in Monte Carlo Mode (Windows Embedded CE 6.0)

1/5/2010

Using the Kernel Profiler should be one of your first steps in a performance investigation, but you should always consider that it cannot tell you everything. If you need more information, use one of the other performance tools.

The Kernel Profiler report shows which code is running for the most time, on a per-function and on a per-module basis. That information might help find performance bottlenecks in the system.

To run the Kernel Profiler in Monte Carlo mode

  1. Add all modules of interest into the MODULES section of ROM.

    Your application does not have to be built in any special way, but the profiler can only look up symbols for modules that are in the MODULES section of ROM. For more information about ROM sections, see Run-Time Image Configuration Files.

  2. Build a profiling-enabled OS image.

    For information about how to build a profiling image, see Building a Run-Time Image That Supports the Kernel Profiler.

    No other specific components or build are required. Multi-XIP images should work well.

    If you created your BSP by copying a sample BSP, then profiling should work. If you created your BSP from scratch, then you might have to add some code to implement the profiler interrupt. See Setting Up Monte Carlo Profiling.

  3. Boot the target device.

  4. Start the application to be profiled.

    Proceed to the next step as quickly as possible, or else you will miss profiling the start of your test.

  5. Start the profiler.

  6. Stop the profiler when your test is finished.

    Try to minimize the time between the end of your test and the end of profiling.

    If you are using buffered or unbuffered profiling, the results will be printed to debug output. If you are using KITL, the debug output will appear in the output window; if you are not using KITL, the debug output is probably written to your device’s debug serial port.

See Also

Concepts

Setting Up the Kernel Profiler
Understanding Kernel Profiler Output

Other Resources

Kernel Profiler
Controlling the Kernel Profiler