[gimp/gimp-2-10] app: add active-thread variable to the dashboard
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: add active-thread variable to the dashboard
- Date: Sat, 20 Jul 2019 21:01:19 +0000 (UTC)
commit 65fb2859c45fc9ceddb7ea53f8a88b086a28b5dd
Author: Ell <ell_se yahoo com>
Date: Sat Jul 20 23:51:42 2019 +0300
app: add active-thread variable to the dashboard
Add an active-thread variable to the dashboard's misc group,
showing the number of active worker threads. See commit
gegl@6a3a6314d4d4cd668e0f6164afc0fde8b9c7c001.
(cherry picked from commit 2cc77e692723190ff8d3377de69f060a66fbbe79)
app/widgets/gimpdashboard.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index f4347075a5..5741029d21 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -139,6 +139,7 @@ typedef enum
/* misc */
VARIABLE_MIPMAPED,
+ VARIABLE_ACTIVE_THREADS,
VARIABLE_ASYNC_RUNNING,
VARIABLE_TILE_ALLOC_TOTAL,
VARIABLE_SCRATCH_TOTAL,
@@ -691,6 +692,15 @@ static const VariableInfo variables[] =
.data = "zoom-total"
},
+ [VARIABLE_ACTIVE_THREADS] =
+ { .name = "active-threads",
+ .title = NC_("dashboard-variable", "Threads"),
+ .description = N_("Number of active worker threads"),
+ .type = VARIABLE_TYPE_INTEGER,
+ .sample_func = gimp_dashboard_sample_gegl_stats,
+ .data = "active-threads"
+ },
+
[VARIABLE_ASYNC_RUNNING] =
{ .name = "async-running",
.title = NC_("dashboard-variable", "Async"),
@@ -928,6 +938,9 @@ static const GroupInfo groups[] =
{ .variable = VARIABLE_MIPMAPED,
.default_active = TRUE
},
+ { .variable = VARIABLE_ACTIVE_THREADS,
+ .default_active = TRUE
+ },
{ .variable = VARIABLE_ASYNC_RUNNING,
.default_active = TRUE
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]