From 1616de091b806f822f52d70222fa431724f87846 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 8 Sep 2017 12:36:58 +0200 Subject: [PATCH] [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. --- mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs | 4 ++-- 1 file 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: -- 2.25.1