Introduce a new envvar (GALLIUM_HUD_DUMP_DIR) to write the displayed hud values into files. For example: GALLIUM_HUD_DUMP_DIR="/tmp/" GALLIUM_HUD="fps,cpu+GPU-load" glxgears In the /tmp directory it will create 3 files (fps, cpu and GPU-load) with all the values inside.