| 106 | } |
| 107 | |
| 108 | int32 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 | |
| 121 | void ProfilerCPU::Thread::EndEvent(int32 index) |
| 122 | { |
no test coverage detected