[gimp] app: include variable descriptions in performance logs
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: include variable descriptions in performance logs
- Date: Sat, 3 Nov 2018 08:18:55 +0000 (UTC)
commit 646208eff045326dc6ab8d8651fc9d446cca2bdd
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.
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 c34cdb8ab8..01f0454b1c 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -4321,9 +4321,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]