From eb764d43f89b685c3f427c2aed719ea41e732a74 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 18 Aug 2024 17:14:28 -0400 Subject: [PATCH] Document new inspector functionality Mention the new shortcuts for recording. --- docs/reference/gtk/running.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/reference/gtk/running.md b/docs/reference/gtk/running.md index bcc69eeeaa..2a689aeec1 100644 --- a/docs/reference/gtk/running.md +++ b/docs/reference/gtk/running.md @@ -576,6 +576,12 @@ To enable the GTK inspector, you can use the Control+Shift Control+Shift+D keyboard shortcuts, or set the `GTK_DEBUG=interactive` environment variable. +After opening the inspector, it listens for a few keyboard shortcuts that +let you use its frame and event recording functionality without moving the +focus away from the application window: Super+R turns +the recording on and off, and Super+C records a single +frame. + There are a few more environment variables that can be set to influence how the inspector renders its UI. `GTK_INSPECTOR_DISPLAY` and `GTK_INSPECTOR_RENDERER` determine the GDK display and the GSK @@ -586,6 +592,7 @@ the GTK inspector. The keyboard shortcuts can be disabled with the `enable-inspector-keybinding` key in the `org.gtk.Settings.Debug` GSettings schema. + ## Profiling GTK supports profiling with sysprof. It exports timing information