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

Method EndCPUProfile

SampleFramework11/v1.02/Graphics/Profiler.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void Profiler::EndCPUProfile(const wstring& name)
94{
95 ProfileData& profileData = profiles[name];
96 Assert_(profileData.QueryStarted == true);
97 Assert_(profileData.QueryFinished == false);
98
99 timer.Update();
100 profileData.EndTime = timer.ElapsedMicroseconds();
101
102 profileData.QueryStarted = false;
103 profileData.QueryFinished = true;
104}
105
106void Profiler::EndFrame(SpriteRenderer& spriteRenderer, SpriteFont& spriteFont)
107{

Callers 1

~CPUProfileBlockMethod · 0.80

Calls 2

ElapsedMicrosecondsMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected