From: Chris Wilson Date: Mon, 26 Aug 2013 22:32:07 +0000 (+0100) Subject: overlay: Align the process names in the memory table X-Git-Tag: intel-gpu-tools-1.4~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ec1d2c0ae631a3c0af445d4baa53561228be9a5;p=platform%2Fupstream%2Fintel-gpu-tools.git 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 --- diff --git a/overlay/overlay.c b/overlay/overlay.c index f0d8a49..27281fd 100644 --- a/overlay/overlay.c +++ b/overlay/overlay.c @@ -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;