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:
Chris Wilson 2013-08-26 23:32:07 +01:00
parent 02c0d20fa8
commit 6ec1d2c0ae

View File

@ -689,13 +689,13 @@ static void show_gem_objects(struct overlay_context *ctx, struct overlay_gem_obj
cairo_show_text(ctx->cr, buf);
y += 14;
cairo_set_source_rgba(ctx->cr, .8, .8, .8, 1);
for (comm = go->gem_objects.comm; comm; comm = comm->next) {
if ((comm->bytes >> 20) == 0)
break;
sprintf(buf, " %s %ldMB, %ld objects",
sprintf(buf, "%s %ldMB, %ld objects",
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_show_text(ctx->cr, buf);
y += 14;