Fix wrong timestamps in C# profiler events
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user