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

Method EndCPUProfile

SHTest/SampleFramework12/v1.04/Graphics/Profiler.cpp:177–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void 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
192static void UpdateProfile(ProfileData& profile, uint64 profileIdx, bool drawText, uint64 gpuFrequency, const uint64* frameQueryData)
193{

Callers 1

~CPUProfileBlockMethod · 0.80

Calls 2

ElapsedMicrosecondsMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected