MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BeginEvent

Method BeginEvent

Source/Engine/Profiler/ProfilerCPU.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int32 ProfilerCPU::Thread::BeginEvent()
109{
110 const double time = Platform::GetTimeSeconds() * 1000.0;
111 const auto index = Buffer.Add();
112 Event& e = Buffer.Get(index);
113 e.Start = time;
114 e.End = 0;
115 e.Depth = _depth++;
116 e.NativeMemoryAllocation = 0;
117 e.ManagedMemoryAllocation = 0;
118 return index;
119}
120
121void ProfilerCPU::Thread::EndEvent(int32 index)
122{

Callers 15

RenderMethod · 0.45
OnDrawMethod · 0.45
OnUpdateMethod · 0.45
UpdateMethod · 0.45
UpdateTextBlocksMethod · 0.45
OnDrawMethod · 0.45
LoadMethod · 0.45
InitMethod · 0.45
EndInitMethod · 0.45
UpdateMethod · 0.45
ExitMethod · 0.45

Calls 4

GetCurrentThreadIDFunction · 0.50
AddMethod · 0.45
GetMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected