MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / FrameProfiler

Method FrameProfiler

CrySystem/ScriptObjectSystem.cpp:297–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297int CScriptObjectSystem::FrameProfiler(IFunctionHandler *pH)
298{
299 bool on = false;
300 bool display = true;
301 char *prefix = "";
302 if(pH->GetParamCount()>0)
303 {
304 pH->GetParam(1, on);
305 if(pH->GetParamCount()>1)
306 {
307 pH->GetParam(2, display);
308 if(pH->GetParamCount()>2)
309 {
310 pH->GetParam(3, prefix);
311 };
312 };
313 };
314 m_pSystem->SetFrameProfiler(on, display, prefix);
315 return pH->EndFunction();
316};
317
318int CScriptObjectSystem::DumpMemStats (IFunctionHandler *pH)
319{

Callers

nothing calls this directly

Calls 4

SetFrameProfilerMethod · 0.80
EndFunctionMethod · 0.80
GetParamCountMethod · 0.45
GetParamMethod · 0.45

Tested by

no test coverage detected