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