Building DispPerf.exe (Windows CE 5.0)
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
Create an empty workspace project for a Windows CE console application project named DispPerf. For more information, see Creating a New Project.
From the File menu, choose New Project or File.
The New Project or File dialog box appears.
Choose the Files tab and add a new C++ source file named DispPerf.cpp to the DispPerf project.
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.
Add the following code below gpe.h in the group of
#includestatements at the top of DispPerf.cpp:
From the File menu, choose Close and then choose Yes when prompted to save the changes.
Verify that DispPerf is the active project in the FileView tab of the Workspace window. It should appear in highlighted text.
From the Project menu, choose Settings.
The Editing dialog box appears.
Choose the C/C++ tab.
In the Executable Entry Point box, type main.
This is a case-sensitive value.
In the Include Directories box, enter the full physical path for %_WINCEROOT%\PUBLIC\COMMON\OAK\INC; for example, C:\WINCE500\PUBLIC\COMMON\OAK\INC.
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.
Send Feedback on this topic to the authors