| 77 | } |
| 78 | |
| 79 | void Profiler::StartCPUProfile(const wstring& name) |
| 80 | { |
| 81 | ProfileData& profileData = profiles[name]; |
| 82 | Assert_(profileData.QueryStarted == false); |
| 83 | Assert_(profileData.QueryFinished == false); |
| 84 | profileData.CPUProfile = true; |
| 85 | profileData.Active = true; |
| 86 | |
| 87 | timer.Update(); |
| 88 | profileData.StartTime = timer.ElapsedMicroseconds(); |
| 89 | |
| 90 | profileData.QueryStarted = true; |
| 91 | } |
| 92 | |
| 93 | void Profiler::EndCPUProfile(const wstring& name) |
| 94 | { |
no test coverage detected