Commit cf54f790 authored by Ell's avatar Ell

app: add tile-alloc-total variable to the dashboard

Add a tile-alloc-total varaible to the dashboard's memory and misc
groups, showing the total amount of memory used by the tile
allocator (see commit
gegl@137e66e4.)
parent 8434ae42
......@@ -138,6 +138,7 @@ typedef enum
/* misc */
VARIABLE_MIPMAPED,
VARIABLE_ASYNC_RUNNING,
VARIABLE_TILE_ALLOC_TOTAL,
VARIABLE_SCRATCH_TOTAL,
VARIABLE_TEMP_BUF_TOTAL,
......@@ -691,6 +692,16 @@ static const VariableInfo variables[] =
.data = gimp_async_get_n_running
},
[VARIABLE_TILE_ALLOC_TOTAL] =
{ .name = "tile-alloc-total",
.title = NC_("dashboard-variable", "Tile"),
.description = N_("Total size of tile memory"),
.type = VARIABLE_TYPE_SIZE,
.color = {0.3, 0.3, 1.0, 1.0},
.sample_func = gimp_dashboard_sample_gegl_stats,
.data = "tile-alloc-total"
},
[VARIABLE_SCRATCH_TOTAL] =
{ .name = "scratch-total",
.title = NC_("dashboard-variable", "Scratch"),
......@@ -866,6 +877,10 @@ static const GroupInfo groups[] =
{
{ .variable = VARIABLE_CACHE_OCCUPIED,
.title = NC_("dashboard-variable", "Cache"),
.default_active = FALSE,
.meter_value = 4
},
{ .variable = VARIABLE_TILE_ALLOC_TOTAL,
.default_active = FALSE,
.meter_value = 3
},
......@@ -908,6 +923,9 @@ static const GroupInfo groups[] =
{ .variable = VARIABLE_ASYNC_RUNNING,
.default_active = TRUE
},
{ .variable = VARIABLE_TILE_ALLOC_TOTAL,
.default_active = TRUE
},
{ .variable = VARIABLE_SCRATCH_TOTAL,
.default_active = TRUE
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment