You.i Engine
YiEasyProfiler.h File Reference
#include <easy/profiler.h>

Go to the source code of this file.

Classes

class  CYIEasyProfiler
 A wrapper around easy_profiler's API for starting the profiler server, writing to a file, or starting and stopping capture of data globally. More...
 

Macros

#define YI_START_EASY_PROFILER_CAPTURE_AT_INIT
 

Macro Definition Documentation

◆ YI_START_EASY_PROFILER_CAPTURE_AT_INIT

#define YI_START_EASY_PROFILER_CAPTURE_AT_INIT
Value:
static bool YiStartEasyProfilerCaptureAtInitVariable = \
[]() { CYIEasyProfiler::StartCapture(); return true; }();
static void StartCapture()

A macro used to start capturing profiling data as soon as the application is started. To use, place this macro in a .cpp file, outside of functions.

Example to enable profiling in HelloWorldApp:

HelloWorldApp::HelloWorldApp()
: m_pSpinAnimation(nullptr)
{
}
...