Kanzi 3.9.10
kanzi::ProfilerRegistry< TProfiler > Class Template Reference

Profiler registry. More...

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

Public Types

typedef unordered_set< ProfilerSharedPtrProfilerContainer
 The profiler container type.
 
typedef shared_ptr< TProfilerProfilerSharedPtr
 The profiler shared point type.
 

Public Member Functions

ProfilerContainer::const_iterator beginProfilers () const
 Gets iterator to the begging of the profiler container.
 
ProfilerContainer::const_iterator endProfilers () const
 Gets iterator to the end of the profiler container.
 
void registerProfiler (ProfilerSharedPtr profiler)
 Adds a new profiler to the registry.
 
void unregisterProfiler (ProfilerSharedPtr profiler)
 Removes a profiler from the registry.
 

Protected Attributes

ProfilerContainer m_registeredProfilers
 The registered profilers.
 

Detailed Description

template<typename TProfiler>
class kanzi::ProfilerRegistry< TProfiler >

Profiler registry.

Use the profiler registry to store profilers. To get begin/end iterators to the profiler container, use beginProfilers()/endProfilers().

Member Typedef Documentation

◆ ProfilerSharedPtr

template<typename TProfiler >
typedef shared_ptr<TProfiler> kanzi::ProfilerRegistry< TProfiler >::ProfilerSharedPtr

The profiler shared point type.

◆ ProfilerContainer

template<typename TProfiler >
typedef unordered_set<ProfilerSharedPtr> kanzi::ProfilerRegistry< TProfiler >::ProfilerContainer

The profiler container type.

Member Function Documentation

◆ registerProfiler()

template<typename TProfiler >
void kanzi::ProfilerRegistry< TProfiler >::registerProfiler ( ProfilerSharedPtr profiler)
inline

Adds a new profiler to the registry.

Parameters
profilerThe ProfilerSharedPtr pointing to the profiler being added.

◆ unregisterProfiler()

template<typename TProfiler >
void kanzi::ProfilerRegistry< TProfiler >::unregisterProfiler ( ProfilerSharedPtr profiler)
inline

Removes a profiler from the registry.

Parameters
profilerThe ProfilerSharedPtr pointing to the profiler being removed.

◆ beginProfilers()

template<typename TProfiler >
ProfilerContainer::const_iterator kanzi::ProfilerRegistry< TProfiler >::beginProfilers ( ) const
inline

Gets iterator to the begging of the profiler container.

Returns
The iterator to the begging of the profiler container.

◆ endProfilers()

template<typename TProfiler >
ProfilerContainer::const_iterator kanzi::ProfilerRegistry< TProfiler >::endProfilers ( ) const
inline

Gets iterator to the end of the profiler container.

Returns
The iterator to the end of the profiler container.

Member Data Documentation

◆ m_registeredProfilers

template<typename TProfiler >
ProfilerContainer kanzi::ProfilerRegistry< TProfiler >::m_registeredProfilers
protected

The registered profilers.


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