Fix wrong timestamps in C# profiler events

This commit is contained in:
2022-06-05 18:37:32 +03:00
parent 778e4e0ea7
commit bbbfa4d5fe

View File

@@ -126,7 +126,7 @@ void ProfilerCPU::Thread::EndEvent()
{ {
const double time = Platform::GetTimeSeconds() * 1000.0; const double time = Platform::GetTimeSeconds() * 1000.0;
_depth--; _depth--;
Event& e = Buffer.Get(Buffer.GetCount() - 1); Event& e = (Buffer.Last()--).Event();
e.End = time; e.End = time;
} }