From bbbfa4d5fee86e85f01a09702f5bb5024ea03314 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 5 Jun 2022 18:37:32 +0300 Subject: [PATCH] Fix wrong timestamps in C# profiler events --- Source/Engine/Profiler/ProfilerCPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Profiler/ProfilerCPU.cpp b/Source/Engine/Profiler/ProfilerCPU.cpp index 0e1a06c79..acc662917 100644 --- a/Source/Engine/Profiler/ProfilerCPU.cpp +++ b/Source/Engine/Profiler/ProfilerCPU.cpp @@ -126,7 +126,7 @@ void ProfilerCPU::Thread::EndEvent() { const double time = Platform::GetTimeSeconds() * 1000.0; _depth--; - Event& e = Buffer.Get(Buffer.GetCount() - 1); + Event& e = (Buffer.Last()--).Event(); e.End = time; }