| 61 | } |
| 62 | |
| 63 | void Profiler::EndProfile(const wstring& name) |
| 64 | { |
| 65 | ProfileData& profileData = profiles[name]; |
| 66 | Assert_(profileData.QueryStarted == true); |
| 67 | Assert_(profileData.QueryFinished == false); |
| 68 | |
| 69 | // Insert the end timestamp |
| 70 | context->End(profileData.TimestampEndQuery[currFrame]); |
| 71 | |
| 72 | // End the disjoint query |
| 73 | context->End(profileData.DisjointQuery[currFrame]); |
| 74 | |
| 75 | profileData.QueryStarted = false; |
| 76 | profileData.QueryFinished = true; |
| 77 | } |
| 78 | |
| 79 | void Profiler::StartCPUProfile(const wstring& name) |
| 80 | { |