Partager via


Building DispPerf.exe (Windows CE 5.0)

Send Feedback

DispPerf.exe is an application that gathers profiling data specifically for display drivers. The output from DispPerf.exe shows you which raster operations (ROPs) are being processed by your display driver and how much time it spends for these ROPs. For more information, see Display Driver Performance Profiling.

The following steps show how to use the Platform Builder IDE to set up and build DispPerf.exe in your run-time image.

Setting up to build DispPerf.exe

  1. Create an empty workspace project for a Windows CE console application project named DispPerf. For more information, see Creating a New Project.

  2. From the File menu, choose New Project or File.

    The New Project or File dialog box appears.

  3. Choose the Files tab and add a new C++ source file named DispPerf.cpp to the DispPerf project.

  4. Copy the contents of the file %_WINCEROOT%\Public\Common\OAK\Drivers\Display\DispPerf\DispPerf.cpp into the DispPerf.cpp file in your OS design's DispPerf application project.

  5. Add the following code below gpe.h in the group of #include statements at the top of DispPerf.cpp:

    #include <pwingdi.h>
    
  6. From the File menu, choose Close and then choose Yes when prompted to save the changes.

  7. Verify that DispPerf is the active project in the FileView tab of the Workspace window. It should appear in highlighted text.

  8. From the Project menu, choose Settings.

    The Editing dialog box appears.

  9. Choose the C/C++ tab.

  10. In the Executable Entry Point box, type main.

    This is a case-sensitive value.

  11. In the Include Directories box, enter the full physical path for %_WINCEROOT%\PUBLIC\COMMON\OAK\INC; for example, C:\WINCE500\PUBLIC\COMMON\OAK\INC.

  12. Choose OK to close the dialog box.

    After completing these steps, you have set up the necessary files and parameters to build DispPerf.exe, but have not yet built the application.

    By default, Platform Builder builds the application when you build your run-time image. However, if you have not yet built your run-time image, you do not yet have the header files you need to build the application.

See Also

How to Profile and Optimize a Display Driver

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.