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.
This commit is contained in:
Ell 2019-07-23 17:12:04 +03:00
parent 79e40b1945
commit e92732f7cf
1 changed files with 14 additions and 1 deletions

View File

@ -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
},