Marking up Your Application for Viewing in the Intel® GPA Platform Analyzer
Intel® Graphics Performance Analyzers SDK includes several samples demonstrating how to use the capabilities of Intel® ITT in order to mark up your application for viewing in the Intel® GPA Platform Analyzer. The following sections explain how to build and run the samples.
Building the Samples
- Go to the SDK Samples directory <INSTALL_DIR>sdk. By default, it is C:Program FilesIntelGPA2012 R1sdksamples.
- Open the solution file for the version of the Microsoft* Visual Studio* you have installed.
You will need Administrator permission to open the file in the default location. You can copy the samples directory to any other directory on your machine. If you do so, make sure you update the Include and Lib paths to point to the Intel GPA SDK include and libs directories.
- In Visual Studio, select Build >Build Solution. You should see executables for each of the samples in the
Setting the Intel® GPA Monitor to Auto-detect
- Make sure that the Intel® GPA Monitor is launched.
- Click the Intel GPA Monitor icon in the taskbar and select Preferences….
- In the Preferences dialog box select the Auto-detect launched application check box.
- In the Preferences dialog box make sure the Disable tracing check box is not selected.
Running the Simple Sample
- From the Microsoft* Visual Studio* debugger, run simple.exe.
- Note that the Intel® GPA Monitor has detected the application. It will be listed in the Analyze Application dialog box.
Setting up a Profile
- Select a desired profile from the Active Profile context-menu drop-down list.
- Click the Manage Profiles… button. Make sure your desired profile is selected in the list of available profiles on the left.
- Go to the Tracing tab and make sure gpa_simple_sample is checked.
When you mark-up your code and add domains, they will show up here, so you will be able to enable specific domains in which you are interested, while profiling your code.
- Click OK.
Creating a Trace Capture File
- Bring the application simple.exe to the foreground. Use the keyboard shortcut to capture traces. By default, the capture keyboard-shortcut combination is Ctrl-Shift-T.
- The Intel® GPA Monitor will pop up a message that says Captured Trace <tracename> to indicate that a trace was successfully captured.
- Close simple.exe.
- From the Start menu, run the Intel® GPA Platform Analyzer.
- In the Open Trace Capture File dialog box Connection field, select <This Machine> and click Connect if it is not already connected.
- In the Trace Capture Files field select the simple.exe trace file and click Open. Your trace will be displayed.
- Use the mouse wheel to zoom in and examine the results. Compare the results to the sample.cpp code, to see how the traces you add show up on the Intel GPA Platform Analyzer.