| 169 | } |
| 170 | |
| 171 | void Profiler::EndCPUProfile(uint64 idx) |
| 172 | { |
| 173 | Assert_(idx < numCPUProfiles); |
| 174 | |
| 175 | ProfileData& profileData = cpuProfiles[idx]; |
| 176 | Assert_(profileData.QueryStarted == true); |
| 177 | Assert_(profileData.QueryFinished == false); |
| 178 | |
| 179 | timer.Update(); |
| 180 | profileData.EndTime = timer.ElapsedMicroseconds(); |
| 181 | |
| 182 | profileData.QueryStarted = false; |
| 183 | profileData.QueryFinished = true; |
| 184 | } |
| 185 | |
| 186 | static void UpdateProfile(ProfileData& profile, uint64 profileIdx, bool drawText, uint64 gpuFrequency, const uint64* frameQueryData) |
| 187 | { |
no test coverage detected