mirror of https://github.com/GNOME/gimp.git
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@137e66e45138e8316f6403e53e8aa9a02ad523e7.)
This commit is contained in:
parent
8434ae42a3
commit
cf54f790fd
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue