[gimp] app: add active-thread variable to the dashboard



commit 2cc77e692723190ff8d3377de69f060a66fbbe79
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.

 app/widgets/gimpdashboard.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 026a68194b..96bdd0a541 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -138,6 +138,7 @@ typedef enum
 
   /* misc */
   VARIABLE_MIPMAPED,
+  VARIABLE_ACTIVE_THREADS,
   VARIABLE_ASYNC_RUNNING,
   VARIABLE_TILE_ALLOC_TOTAL,
   VARIABLE_SCRATCH_TOTAL,
@@ -684,6 +685,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"),
@@ -921,6 +931,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]