MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / EndCPUProfile

Method EndCPUProfile

SampleFramework12/v1.00/Graphics/Profiler.cpp:171–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void 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
186static void UpdateProfile(ProfileData& profile, uint64 profileIdx, bool drawText, uint64 gpuFrequency, const uint64* frameQueryData)
187{

Callers 1

~CPUProfileBlockMethod · 0.80

Calls 2

ElapsedMicrosecondsMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected