MxEngine
Public Member Functions | List of all members
MxEngine::ScopeProfiler Class Reference

#include <Profiler.h>

Public Member Functions

 ScopeProfiler (ProfileSession &profiler, const char *function)
 
 ~ScopeProfiler ()
 

Detailed Description

scope profiler is a class which measures how much time take the function execution it saves timestep om its creation, and writes json entry to ProfileSession on its destruction

Constructor & Destructor Documentation

§ ScopeProfiler()

MxEngine::ScopeProfiler::ScopeProfiler ( ProfileSession profiler,
const char *  function 
)
inline

creates scope profiler and fixes timepoint as start of function call

Parameters
profilerreference to json profile logger
functionfunction name which is measured

§ ~ScopeProfiler()

MxEngine::ScopeProfiler::~ScopeProfiler ( )
inline

destroyed scope profiler, forcing it to write json entry to profiler


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