Placeholder for global profiler. More...
#include <kanzi/core/profiling/default_profiler.hpp>
Public Types | |
typedef unique_ptr< Profiler > | DefaultProfilerPtr |
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... | |
Profiler & | getProfiler () |
Returns current global logger reference. More... | |
Static Public Member Functions | |
static DefaultProfiler & | get () |
Static method used to get reference to singleton instance of this class. More... | |
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.
typedef unique_ptr<Profiler> kanzi::DefaultProfiler::DefaultProfilerPtr |
Default logger placeholder type.
|
inline |
Updates global profiler with passed profiler object.
|
inline |
Sets global logger to default value.
|
inline |
Returns current global logger reference.
|
static |
Static method used to get reference to singleton instance of this class.