summaryrefslogtreecommitdiff
path: root/src/callgraph-ring.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-11-29 10:43:10 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2007-11-29 10:43:10 +0000
commit67c836acd57d363183537dae1f22bf2e49ae520d (patch)
tree7f61a54287f78d7702f805943f9becdd6440865b /src/callgraph-ring.c
parent42798f3dd5fab7d7f366a0693655b1d8b0980919 (diff)
Use the largest allocator as the iter for the ringview.
Diffstat (limited to 'src/callgraph-ring.c')
-rw-r--r--src/callgraph-ring.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/callgraph-ring.c b/src/callgraph-ring.c
index cda7a26..14589e2 100644
--- a/src/callgraph-ring.c
+++ b/src/callgraph-ring.c
@@ -123,6 +123,9 @@ _call_graph_ring_get_parents (CallGraphRing *self,
(gpointer) frame->function, accum);
}
+ if (frame->allocs > accum->frame->allocs)
+ accum->frame = frame;
+
accum->allocs += frame->allocs;
accum->bytes += frame->bytes;
sum_allocs += frame->allocs;