diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-04-28 22:54:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-04-28 22:54:06 +0100 |
commit | 5d6514214e9e51b9ac0a34ebb91692ef35559280 (patch) | |
tree | 77c63db8e7b578ac162bf24410a7bcd7c6091f38 /src/callgraph.c | |
parent | 648a14ae1b2e830c6cd588224abed08b32407e8d (diff) |
Restore column title and set autoexpand threshold to 95%.
Diffstat (limited to 'src/callgraph.c')
-rw-r--r-- | src/callgraph.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/callgraph.c b/src/callgraph.c index bfa1e02..6084c76 100644 --- a/src/callgraph.c +++ b/src/callgraph.c @@ -732,7 +732,8 @@ static void autoexpand_children (CallGraph *self, GtkTreeIter *iter, GtkTreePath *path) { CallGraphFrame *frame = iter->user_data; - if (frame->n_filter == 1) { + if (frame->n_filter == 1 || + (frame->n_filter > 1 && frame->filter[0]->allocs * 100 > frame->allocs * 95)) { GtkTreeIter child; child.stamp = self->model->stamp; @@ -764,6 +765,7 @@ call_graph_init (CallGraph *self) gtk_tree_view_column_pack_start (column, renderer, TRUE); gtk_tree_view_column_add_attribute (column, renderer, "text", CG_FRAME); + gtk_tree_view_column_set_title (column, "Frame"); gtk_tree_view_column_set_widget (column, custom_header (self, column)); gtk_tree_view_column_set_expand (column, TRUE); gtk_tree_view_append_column (&self->tv, column); |