mirror of https://github.com/GNOME/gimp.git
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:
parent
79e40b1945
commit
e92732f7cf
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue