Profiler registry. More...
#include <kanzi/core/profiling/profiler_registry.hpp>
Public Types | |
typedef unordered_set< ProfilerSharedPtr > | ProfilerContainer |
The profiler container type. | |
typedef shared_ptr< TProfiler > | ProfilerSharedPtr |
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. | |
Profiler registry.
Use the profiler registry to store profilers. To get begin/end iterators to the profiler container, use beginProfilers()/endProfilers().
typedef shared_ptr<TProfiler> kanzi::ProfilerRegistry< TProfiler >::ProfilerSharedPtr |
The profiler shared point type.
typedef unordered_set<ProfilerSharedPtr> kanzi::ProfilerRegistry< TProfiler >::ProfilerContainer |
The profiler container type.
|
inline |
Adds a new profiler to the registry.
profiler | The ProfilerSharedPtr pointing to the profiler being added. |
|
inline |
Removes a profiler from the registry.
profiler | The ProfilerSharedPtr pointing to the profiler being removed. |
|
inline |
Gets iterator to the begging of the profiler container.
|
inline |
Gets iterator to the end of the profiler container.
|
protected |
The registered profilers.