carb::profiler::registerProfilerForClient

Defined in carb/profiler/Profile.h

inline void carb::profiler::registerProfilerForClient()

Acquires the default IProfiler interface and assigns it to the g_carbProfiler global variable.

If a profiler is not yet loaded, a load hook is registered with the Framework and when the profiler is loaded, g_carbProfiler will be automatically set for this module. If the profiler is unloaded, g_carbProfiler will be automatically set to nullptr.