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:33

Here is the caller graph for this function:

void C4AulProfiler::StartProfiling ( C4ScriptHost pScript)
static

Definition at line 969 of file C4AulExec.cpp.

References C4ScriptHost::GetPropList().

970 {
971  AulExec.StartProfiling(pScript);
972  if(pScript)
973  ResetTimes(pScript->GetPropList());
974  else
975  ResetTimes();
976 }
C4AulExec AulExec
Definition: C4AulExec.cpp:33
virtual C4PropListStatic * GetPropList()
Definition: C4ScriptHost.h:50

Here is the call graph for this function:

void C4AulProfiler::StopProfiling ( )
static

Definition at line 978 of file C4AulExec.cpp.

References C4ScriptHost::GetPropList().

979 {
980  if (!AulExec.IsProfiling()) return;
981  AulExec.StopProfiling();
982  // collect profiler times
983  C4AulProfiler Profiler;
984  Profiler.CollectEntry(nullptr, AulExec.tDirectExecTotal);
985  if(AulExec.pProfiledScript)
986  Profiler.CollectTimes(AulExec.pProfiledScript->GetPropList());
987  else
988  Profiler.CollectTimes();
989  Profiler.Show();
990 }
C4AulExec AulExec
Definition: C4AulExec.cpp:33
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: