MGIS
Loading...
Searching...
No Matches
Profiling.hxx File Reference
#include <chrono>
#include <string>
#include "MGIS/Config.hxx"

Classes

struct  mgis::ProfilingSection
 

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Macros

#define MGIS_CONCAT(a, b)   MGIS_CONCAT_INNER(a, b)
 
#define MGIS_CONCAT_INNER(a, b)   a##b
 
#define MGIS_VARNAME()   MGIS_CONCAT(mgis_timer_, __COUNTER__)
 
#define CatchTimeSection(CTX, NAME)    mgis::ProfilingSection MGIS_VARNAME()(CTX, NAME, (CTX).isProfilingEnabled())
 
#define CatchLocalTimeSection(CTX, NAME, IS_ENABLED)    mgis::ProfilingSection MGIS_VARNAME()(CTX, NAME, IS_ENABLED)
 

Detailed Description

Author
Julien Rigal, Raphaƫl Prat
Date
01/08/2026