[gimp/gimp-2-10] app: include variable descriptions in performance logs
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: include variable descriptions in performance logs
- Date: Sat, 3 Nov 2018 08:18:45 +0000 (UTC)
commit b8862acee938c911ecb13e13999e9463e192ad9c
Author: Ell <ell_se yahoo com>
Date: Sat Nov 3 04:12:41 2018 -0400
app: include variable descriptions in performance logs
Include instrumentation-variable descriptions in the var-defs
section of performance logs, so that they can be displayed
alongside their names when viewing the log.
(cherry picked from commit 646208eff045326dc6ab8d8651fc9d446cca2bdd)
app/widgets/gimpdashboard.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 94e71d4cd9..031adce063 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -4346,9 +4346,14 @@ gimp_dashboard_log_start_recording (GimpDashboard *dashboard,
}
gimp_dashboard_log_printf (dashboard,
- "<var name=\"%s\" type=\"%s\" />\n",
+ "<var name=\"%s\" type=\"%s\" desc=\"",
variable_info->name,
type);
+ gimp_dashboard_log_print_escaped (dashboard,
+ /* intentionally untranslated */
+ variable_info->description);
+ gimp_dashboard_log_printf (dashboard,
+ "\" />");
}
gimp_dashboard_log_printf (dashboard,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]