Frame Analysis: Analyze Frames for Performance Bottlenecks
- Run Graphics Monitor by double-clicking the Graphics Monitor icon in the taskbar notification area or on the desktop.
- Specify the application for analysis by clicking theBrowsebutton on the lower right and browsing to your application ().On Windows, you can use the sample applicationgpasample.exe.
- Select theStreamstartup mode from the drop-down menu on the lower right ().
- Run the application by clicking theStartbutton ().The application launches in a separate window. By default, stream capture starts immediately when the application is started.
- Complete stream capture by pressingL().
- Open the trace using theOpen Fileribbon of the Graphics Monitor window ().Multiframe Viewof Frame Analyzer opens.
- For detailed analysis, open a frame that appears to perform poorly. For example, identify the longest frame by analyzing theGPU Time Elapsedmetric, which shows the amount of time spent on frame rendering:
Profiling Viewwindow of Frame Analyzer opens.
- On theGPU Time Elapsedtrack, click the longest frame ().
- Click theOpenbutton on the lower left ().
- Start analysis with theAdvanced Profiling Mode,which allows you to identify potential bottlenecks. Click theAdvanced Profiling Modebutton on the top left.The API calls are grouped by bottlenecks on theVisualization() andAPI Log() panes. The first group of draw calls is the most impactful and time-consuming.
- Start resolving issues with the most impactful bottleneck. Click the first group of draw calls either in theVisualizationorAPI Logpane.The resources associated with this group of calls appear in theResourcespane. TheBottleneckstab presents the graphics pipeline color-coded by bottleneck distribution. Red portions of the pipeline indicate main bottlenecks, and orange indicate secondary bottlenecks.
- In theBottleneckstab, click the red bottleneck, for example,Local/Host Memory: Graphics-to-Memory Interface.The bottleneck cause, hints, and related metrics appear.
- Once step 10 is done, close Graphics Frame Analyzer window.