diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-26 16:04:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-26 16:04:47 +0000 |
commit | 69e80b5a5a76becb109c7807be50d90a24769be6 (patch) | |
tree | 2c6add89f576f63bd6368951c0cb5788fbfb7aaa | |
parent | 4f5deccb8e68e99d7a7ce65354653a7ec098e166 (diff) |
[summary] Add column titles to output
Add the column titles to the output so that it is easier to read and
digest.
-rw-r--r-- | src/summary.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/summary.c b/src/summary.c index b098149..b92064d 100644 --- a/src/summary.c +++ b/src/summary.c @@ -139,10 +139,15 @@ do_save_allocators (GtkWidget *widget, Summary *self) GPtrArray *allocators; guint n; + fprintf (file, "%40s\t%9s\t%12s\n", + "Allocator", + "Block count", + "Total bytes"); + allocators = allocators_store_get_array (self->store); for (n = 0; n < allocators->len; n++) { struct _sum_allocator *sum = g_ptr_array_index (allocators, n); - fprintf (file, "%s\t%d\t%"G_GUINT64_FORMAT"\n", + fprintf (file, "%40s\t%9d\t%12"G_GUINT64_FORMAT"\n", sum->frame, sum->count, sum->size); } |