[gimp] app: add assigned-threads variable to the dashboard



commit e92732f7cffbfd5a449f578d8e20c4022752f22e
Author: Ell <ell_se yahoo com>
Date:   Tue Jul 23 17:12:04 2019 +0300

    app: add assigned-threads variable to the dashboard
    
    Add an assigned-threads variable to the dashboard's misc group,
    showing the number of worker threads which currently have work
    assigned.  See commit
    gegl@fc532f06773bd292c86abee31ac18f62e26d39df.

 app/widgets/gimpdashboard.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 96bdd0a541..3bd874f437 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -138,6 +138,7 @@ typedef enum
 
   /* misc */
   VARIABLE_MIPMAPED,
+  VARIABLE_ASSIGNED_THREADS,
   VARIABLE_ACTIVE_THREADS,
   VARIABLE_ASYNC_RUNNING,
   VARIABLE_TILE_ALLOC_TOTAL,
@@ -685,9 +686,18 @@ static const VariableInfo variables[] =
     .data             = "zoom-total"
   },
 
+  [VARIABLE_ASSIGNED_THREADS] =
+  { .name             = "assigned-threads",
+    .title            = NC_("dashboard-variable", "Assigned"),
+    .description      = N_("Number of assigned worker threads"),
+    .type             = VARIABLE_TYPE_INTEGER,
+    .sample_func      = gimp_dashboard_sample_gegl_stats,
+    .data             = "assigned-threads"
+  },
+
   [VARIABLE_ACTIVE_THREADS] =
   { .name             = "active-threads",
-    .title            = NC_("dashboard-variable", "Threads"),
+    .title            = NC_("dashboard-variable", "Active"),
     .description      = N_("Number of active worker threads"),
     .type             = VARIABLE_TYPE_INTEGER,
     .sample_func      = gimp_dashboard_sample_gegl_stats,
@@ -931,6 +941,9 @@ static const GroupInfo groups[] =
                           { .variable       = VARIABLE_MIPMAPED,
                             .default_active = TRUE
                           },
+                          { .variable       = VARIABLE_ASSIGNED_THREADS,
+                            .default_active = TRUE
+                          },
                           { .variable       = VARIABLE_ACTIVE_THREADS,
                             .default_active = TRUE
                           },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]