Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo.moya@xamarin.com>2017-09-08 13:36:58 +0300
committerRodrigo Moya <rodrigo@gnome.org>2017-09-14 13:49:22 +0300
commit1616de091b806f822f52d70222fa431724f87846 (patch)
tree929d421eefa1d7d8b6052ebfad9bac0961f064e7 /mcs/class/Mono.Profiler.Log
parent05bd5d300445adabcbc56cc81de383590db37285 (diff)
[Mono.Profiler.Log] Reverse managed backtrace in SampleHitEvent's
This comes in reverse order, compared to other backtraces in the MLPD, so reverse it before sending it to visitors, so that it comes in the same format as the rest of backtraces.
Diffstat (limited to 'mcs/class/Mono.Profiler.Log')
-rw-r--r--mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs
index 5da4229538f..71bdca3f0dc 100644
--- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs
+++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs
@@ -429,8 +429,8 @@ namespace Mono.Profiler.Log {
}
ev = new SampleHitEvent {
ThreadId = ReadPointer (),
- UnmanagedBacktrace = ReadBacktrace (true, false), // FIXME: isn't this reversed?
- ManagedBacktrace = ReadBacktrace (true),
+ UnmanagedBacktrace = ReadBacktrace (true, false),
+ ManagedBacktrace = ReadBacktrace (true).Reverse ().ToArray (),
};
break;
case LogEventType.SampleUnmanagedSymbol: