OpenGL Trace


OpenGL and OpenGL ES APIs can be traced to assist in the analysis of CPU and GPU interactions.

A few usage examples are:

  1. Visualize how long eglSwapBuffers (or similar) is taking.

  2. API trace can easily show correlations between thread state and graphics drivers behavior, uncovering where the CPU may be waiting on the GPU.

  3. Spot bubbles of opportunity on the GPU, where more GPU workload could be created.

  4. Use KHR_debug extension to trace GL events on both the CPU and GPU.

OpenGL trace feature in Tegra System Profiler consists of two different activities:

To collect GPU trace, the glQueryCounter() function is used to measure how much time batches of GPU workload take to complete.

Configure OpenGL trace

Configure OpenGL functions


NVIDIA® GameWorks™ Documentation Rev. 1.0.180104 ©2014-2018. NVIDIA Corporation. All Rights Reserved.