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