mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
overlay: Align the process names in the memory table
And use a shade of gray to distinguish from the total instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
02c0d20fa8
commit
6ec1d2c0ae
@ -689,13 +689,13 @@ static void show_gem_objects(struct overlay_context *ctx, struct overlay_gem_obj
|
|||||||
cairo_show_text(ctx->cr, buf);
|
cairo_show_text(ctx->cr, buf);
|
||||||
y += 14;
|
y += 14;
|
||||||
|
|
||||||
|
cairo_set_source_rgba(ctx->cr, .8, .8, .8, 1);
|
||||||
for (comm = go->gem_objects.comm; comm; comm = comm->next) {
|
for (comm = go->gem_objects.comm; comm; comm = comm->next) {
|
||||||
if ((comm->bytes >> 20) == 0)
|
if ((comm->bytes >> 20) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
sprintf(buf, " %s %ldMB, %ld objects",
|
sprintf(buf, "%s %ldMB, %ld objects",
|
||||||
comm->name, comm->bytes >> 20, comm->count);
|
comm->name, comm->bytes >> 20, comm->count);
|
||||||
cairo_set_source_rgba(ctx->cr, 1, 1, 1, 1);
|
|
||||||
cairo_move_to(ctx->cr, x, y);
|
cairo_move_to(ctx->cr, x, y);
|
||||||
cairo_show_text(ctx->cr, buf);
|
cairo_show_text(ctx->cr, buf);
|
||||||
y += 14;
|
y += 14;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user