Itoyori  v0.0.1
ityr::common::profiler Namespace Reference

Classes

struct  mode_disabled
 
struct  mode_stats
 
struct  mode_trace
 
struct  profiler_state
 
class  event
 
class  profiler
 
class  event_initializer
 
class  interval_scope
 

Typedefs

using mlog_data_t = void *
 
using mode = ITYR_CONCAT(mode_, ITYR_PROFILER_MODE)
 
using instance = singleton< profiler< mode > >
 
using interval_begin_data = mode::interval_begin_data
 

Functions

void mlog_die ()
 
void mlog_init (void **, int, size_t)
 
void mlog_flush_all (void **, FILE *)
 
void mlog_clear_all (void **)
 
template<typename Event , typename... Args>
interval_begin_data interval_begin (Args &&... args)
 
template<typename Event , typename... Args>
void interval_end (interval_begin_data ibd, Args &&... args)
 
template<typename PhaseFrom , typename PhaseTo >
void switch_phase ()
 
void begin ()
 
void end ()
 
void flush ()
 

Typedef Documentation

◆ instance

◆ interval_begin_data

using ityr::common::profiler::interval_begin_data = typedef mode::interval_begin_data

◆ mlog_data_t

using ityr::common::profiler::mlog_data_t = typedef void*

◆ mode

Function Documentation

◆ begin()

void ityr::common::profiler::begin ( )
inline

◆ end()

void ityr::common::profiler::end ( )
inline

◆ flush()

void ityr::common::profiler::flush ( )
inline

◆ interval_begin()

template<typename Event , typename... Args>
interval_begin_data ityr::common::profiler::interval_begin ( Args &&...  args)
inline

◆ interval_end()

template<typename Event , typename... Args>
void ityr::common::profiler::interval_end ( interval_begin_data  ibd,
Args &&...  args 
)
inline

◆ mlog_clear_all()

void ityr::common::profiler::mlog_clear_all ( void **  )
inline

◆ mlog_die()

void ityr::common::profiler::mlog_die ( )
inline

◆ mlog_flush_all()

void ityr::common::profiler::mlog_flush_all ( void **  ,
FILE *   
)
inline

◆ mlog_init()

void ityr::common::profiler::mlog_init ( void **  ,
int  ,
size_t   
)
inline

◆ switch_phase()

template<typename PhaseFrom , typename PhaseTo >
void ityr::common::profiler::switch_phase ( )
inline