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

Method StartCPUProfile

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

Source from the content-addressed store, hash-verified

77}
78
79void Profiler::StartCPUProfile(const wstring& name)
80{
81 ProfileData& profileData = profiles[name];
82 Assert_(profileData.QueryStarted == false);
83 Assert_(profileData.QueryFinished == false);
84 profileData.CPUProfile = true;
85 profileData.Active = true;
86
87 timer.Update();
88 profileData.StartTime = timer.ElapsedMicroseconds();
89
90 profileData.QueryStarted = true;
91}
92
93void Profiler::EndCPUProfile(const wstring& name)
94{

Callers 1

CPUProfileBlockMethod · 0.80

Calls 2

ElapsedMicrosecondsMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected