OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AulProfiler Class Reference

#include <C4AulExec.h>

Static Public Member Functions

static void Abort ()
 
static void StartProfiling (C4ScriptHost *pScript)
 
static void StopProfiling ()
 

Detailed Description

Definition at line 235 of file C4AulExec.h.

Member Function Documentation

static void C4AulProfiler::Abort ( )
inlinestatic

Definition at line 257 of file C4AulExec.h.

Referenced by C4Game::Clear(), and C4Game::ReloadDef().

257 { AulExec.StopProfiling(); }
C4AulExec AulExec
Definition: C4AulExec.cpp:29

Here is the caller graph for this function:

void C4AulProfiler::StartProfiling ( C4ScriptHost pScript)
static

Definition at line 963 of file C4AulExec.cpp.

References C4ScriptHost::GetPropList().

964 {
965  AulExec.StartProfiling(pScript);
966  if(pScript)
967  ResetTimes(pScript->GetPropList());
968  else
969  ResetTimes();
970 }
C4AulExec AulExec
Definition: C4AulExec.cpp:29
virtual C4PropListStatic * GetPropList()
Definition: C4ScriptHost.h:50

Here is the call graph for this function:

void C4AulProfiler::StopProfiling ( )
static

Definition at line 972 of file C4AulExec.cpp.

References C4ScriptHost::GetPropList().

973 {
974  if (!AulExec.IsProfiling()) return;
975  AulExec.StopProfiling();
976  // collect profiler times
977  C4AulProfiler Profiler;
978  Profiler.CollectEntry(nullptr, AulExec.tDirectExecTotal);
979  if(AulExec.pProfiledScript)
980  Profiler.CollectTimes(AulExec.pProfiledScript->GetPropList());
981  else
982  Profiler.CollectTimes();
983  Profiler.Show();
984 }
C4AulExec AulExec
Definition: C4AulExec.cpp:29
virtual C4PropListStatic * GetPropList()
Definition: C4ScriptHost.h:50

Here is the call graph for this function:


The documentation for this class was generated from the following files: