The interval profiler data sample. More...
#include <kanzi/core/profiling/interval_profiler_sample.hpp>
Public Member Functions | |
IntervalProfilerSampleData (TimePoint startTimePoint, chrono::nanoseconds duration) | |
Constructor. | |
Public Attributes | |
chrono::nanoseconds | m_duration |
The duration of the interval. | |
TimePoint | m_startTimePoint |
The point in time when interval measurement started. | |
The interval profiler data sample.
Use Profiling macros to profile codepath execution time.
This structure keeps interval measurement data. Use this structure together with IntervalProfiler to profile the execution time of arbitrary codepaths. To profile the execution time of a codepath create a sample object of type IntervalProfilerSampleData and call the IntervalProfilingSampler::start() method in the beginning of the codepath. At the end of the codepath call IntervalProfilingSampler::stop() and pass the sample to the IntervalProfiler object.
|
inlineexplicit |
Constructor.
startTimePoint | The point in time when measurement started. |
duration | The interval duration. |
TimePoint kanzi::IntervalProfilerSampleData::m_startTimePoint |
The point in time when interval measurement started.
chrono::nanoseconds kanzi::IntervalProfilerSampleData::m_duration |
The duration of the interval.