This sampler collects interval measurement to produce NamedIntervalProfilerSampleData sample.
More...
#include <kanzi/core/profiling/named_interval_profiler.hpp>
This sampler collects interval measurement to produce NamedIntervalProfilerSampleData sample.
The ProfilingScopeHelper uses sampler class to measure time spent executing scope which is profiled.
For information on how the sampler is used in scope profiling, See ProfilingScopeHelper.
kanzi::NamedIntervalProfilerSampler::NamedIntervalProfilerSampler |
( |
string_view |
scopeName, |
|
|
string_view |
objectName |
|
) |
| |
|
inlineexplicit |
Constructs the sampler object.
- Parameters
-
scopeName | The name of the measure scope. |
objectName | The name of the object that the scope is operating on. |
void kanzi::NamedIntervalProfilerSampler::start |
( |
| ) |
|
|
inline |
Starts measuring the time interval.
void kanzi::NamedIntervalProfilerSampler::stop |
( |
| ) |
|
|
inline |
Finishes measuring the time interval.
TimePoint kanzi::NamedIntervalProfilerSampler::m_startTimePoint |
|
protected |
The point in time when interval measurement started.
TimePoint kanzi::NamedIntervalProfilerSampler::m_endTimePoint |
|
protected |
The point in time when interval measurement finished.
string kanzi::NamedIntervalProfilerSampler::m_scopeName |
|
protected |
The name of the measured code block.
string kanzi::NamedIntervalProfilerSampler::m_objectName |
|
protected |
The name of the object that the code block is operating on.
The documentation for this class was generated from the following file: