Building DispPerf.exe

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 setup and build DispPerf.exe in your platform.

Setting up to build DispPerf.exe

  1. Create a new empty console application project for 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 platform's DispPerf application project.

  5. Add the following code to 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 bold text.

  8. From the Project menu, choose Settings. The Project Settings dialog box appears.

  9. Verify that the release configuration is chosen in the Settings For drop-down list and that the DispPerf project node is highlighted in the tree below.

  10. On the Link tab, in the Category drop-down list, choose Output.

  11. In the Entry-point symbol box, type main. This is a case-sensitive value.

  12. Choose OK to close the Project Settings 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 automatically builds the application when you build your platform. However, if you have not yet built your platform, then you do not yet have the header files that you need to build the application.

See Also

How to Profile and Optimize a Display Driver

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.