| 70 | } |
| 71 | |
| 72 | void Profiler::EndProfile(const string& name) |
| 73 | { |
| 74 | ProfileData& profileData = profiles[name]; |
| 75 | _ASSERT(profileData.QueryStarted == TRUE); |
| 76 | _ASSERT(profileData.QueryFinished == FALSE); |
| 77 | |
| 78 | // Insert the end timestamp |
| 79 | context->End(profileData.TimestampEndQuery[currFrame]); |
| 80 | |
| 81 | // End the disjoint query |
| 82 | context->End(profileData.DisjointQuery[currFrame]); |
| 83 | |
| 84 | profileData.QueryStarted = FALSE; |
| 85 | profileData.QueryFinished = TRUE; |
| 86 | } |
| 87 | |
| 88 | void Profiler::EndFrame() |
| 89 | { |