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

Method EndProfile

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

Source from the content-addressed store, hash-verified

61}
62
63void Profiler::EndProfile(const wstring& name)
64{
65 ProfileData& profileData = profiles[name];
66 Assert_(profileData.QueryStarted == true);
67 Assert_(profileData.QueryFinished == false);
68
69 // Insert the end timestamp
70 context->End(profileData.TimestampEndQuery[currFrame]);
71
72 // End the disjoint query
73 context->End(profileData.DisjointQuery[currFrame]);
74
75 profileData.QueryStarted = false;
76 profileData.QueryFinished = true;
77}
78
79void Profiler::StartCPUProfile(const wstring& name)
80{

Callers 1

~ProfileBlockMethod · 0.80

Calls 1

EndMethod · 0.80

Tested by

no test coverage detected