gsk: Add GL profiler

Desktop / GNOME / GTK - Emmanuele Bassi [gnome.org] - 18 October 2016 05:49 UTC

We can use the GL_ARB_timer_query extension (available since OpenGL 3.2, and part of the OpenGL specification since version 3.3) to query the time elapsed when drawing each frame. This allows us to gather timing information on our use of the GPU.

30be7bd gsk: Add GL profiler
gsk/Makefile.am | 2 +
gsk/gskglprofiler.c | 108 ++++++++++++++++++++++++++++++++++++++++++++
gsk/gskglprofilerprivate.h | 18 ++++++++
gsk/gskglrenderer.c | 13 +++++-
4 files changed, 139 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share