ReXGlue SDK
Loading...
Searching...
No Matches
rex::platform::Profiler Class Reference

#include <rex/platform/perf.h>

Static Public Member Functions

static void Startup ()
static void OnThreadEnter (const char *name=nullptr)
static void OnThreadExit ()
static void EndFrame ()
static void Flush ()
static void Shutdown ()
static bool IsEnabled ()

Detailed Description

Static hooks for Tracy frame marks and the per frame counter snapshot.

Member Function Documentation

◆ EndFrame()

void rex::platform::Profiler::EndFrame ( )
inlinestatic

Ends a frame with a Tracy frame mark, a counter snapshot and a CSV row when compiled in.

◆ IsEnabled()

bool rex::platform::Profiler::IsEnabled ( )
inlinestatic

Reports whether the Tracy profiler is running.

◆ OnThreadEnter()

void rex::platform::Profiler::OnThreadEnter ( const char * name = nullptr)
inlinestatic

Names the calling thread in Tracy when the profiler is running.

Parameters
nameThe thread name. Null leaves the name unchanged.

◆ Shutdown()

void rex::platform::Profiler::Shutdown ( )
inlinestatic

Stops the Tracy profiler and closes the CSV log when compiled in.

◆ Startup()

void rex::platform::Profiler::Startup ( )
inlinestatic

Starts the Tracy profiler when compiled in and not running.


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