apitrace consists of a set of tools to:
trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs calls to a file;
replay OpenGL and OpenGL ES calls from a file;
inspect OpenGL state at any call while retracing;
visualize and edit trace files.
Optional dependencies:
qt5 - Builds the qapitrace gui.
snappy - Will use a bundled version if missing.