kanzi::DefaultProfiler Class Reference

Placeholder for global profiler. More...

#include <kanzi/core/profiling/default_profiler.hpp>

Public Types

typedef unique_ptr< ProfilerDefaultProfilerPtr
 Default logger placeholder type. More...
 

Public Member Functions

void setProfiler (Profiler *profiler)
 Updates global profiler with passed profiler object. More...
 
void resetToDefaultProfiler ()
 Sets global logger to default value. More...
 
ProfilergetProfiler ()
 Returns current global logger reference. More...
 

Static Public Member Functions

static DefaultProfilerget ()
 Static method used to get reference to singleton instance of this class. More...
 

Detailed Description

Placeholder for global profiler.

This class is a placeholder for global profiler. Global profiler is used for performance profiling except cases when user of profiling system explicitly points out profiler to be used.

Member Typedef Documentation

Default logger placeholder type.

Member Function Documentation

void kanzi::DefaultProfiler::setProfiler ( Profiler profiler)
inline

Updates global profiler with passed profiler object.

void kanzi::DefaultProfiler::resetToDefaultProfiler ( )
inline

Sets global logger to default value.

Profiler& kanzi::DefaultProfiler::getProfiler ( )
inline

Returns current global logger reference.

static DefaultProfiler& kanzi::DefaultProfiler::get ( )
static

Static method used to get reference to singleton instance of this class.


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