From 14676a44329a5db4dbca74e2d3b120d8dfd8db8e Mon Sep 17 00:00:00 2001 From: Massimiliano Mantione Date: Fri, 12 Jun 2009 10:54:21 +0000 Subject: [PATCH] Get the root frames from the event handler now. svn path=/trunk/mono-tools/; revision=135984 --- Mono.Profiler/Mono.Profiler.Widgets/CallsStore.cs | 2 +- Mono.Profiler/Mono.Profiler.Widgets/ChangeLog | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Mono.Profiler/Mono.Profiler.Widgets/CallsStore.cs b/Mono.Profiler/Mono.Profiler.Widgets/CallsStore.cs index dde3fee94..624824589 100644 --- a/Mono.Profiler/Mono.Profiler.Widgets/CallsStore.cs +++ b/Mono.Profiler/Mono.Profiler.Widgets/CallsStore.cs @@ -105,7 +105,7 @@ public CallsStore (ProfilerEventHandler data) return; nodes = new List (); - foreach (StackTrace frame in StackTrace.RootFrames) { + foreach (StackTrace frame in data.RootFrames) { total_clicks += frame.TopMethod.Clicks; nodes.Add (new Node (null, frame)); } diff --git a/Mono.Profiler/Mono.Profiler.Widgets/ChangeLog b/Mono.Profiler/Mono.Profiler.Widgets/ChangeLog index f70c1590e..03c175953 100644 --- a/Mono.Profiler/Mono.Profiler.Widgets/ChangeLog +++ b/Mono.Profiler/Mono.Profiler.Widgets/ChangeLog @@ -1,3 +1,6 @@ +2009-06-12 Massimiliano Mantione + * CallsStore.cs: Get the root frames from the event handler now. + 2009-06-11 Mike Kestner * CallsStore.cs: add license.