kanzi::IntervalProfilingSampler Class Reference

The main loop task profiling sampler collects interval measurement to produce IntervalProfilerSampleData sample. More...

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

Inheritance diagram for kanzi::IntervalProfilingSampler:
kanzi::MainLoopTaskProfilingSampler

Public Member Functions

void start ()
 Starts measuring time interval duration. More...
 
void stop ()
 Finishes measuring time interval duration. More...
 
IntervalProfilerSampleData getSampleData ()
 Returns IntervalProfilerSampleData sample including interval measurement data. More...
 

Protected Attributes

chrono::high_resolution_clock::time_point m_startTimePoint
 The point in time when interval measurement started. More...
 
chrono::high_resolution_clock::time_point m_endTimePoint
 The point in time when interval measurement finished. More...
 

Detailed Description

The main loop task profiling sampler collects interval measurement to produce IntervalProfilerSampleData 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.

Member Function Documentation

void kanzi::IntervalProfilingSampler::start ( )
inline

Starts measuring time interval duration.

void kanzi::IntervalProfilingSampler::stop ( )
inline

Finishes measuring time interval duration.

IntervalProfilerSampleData kanzi::IntervalProfilingSampler::getSampleData ( )
inline

Returns IntervalProfilerSampleData sample including interval measurement data.

Returns
The interval measurement sample.

Member Data Documentation

chrono::high_resolution_clock::time_point kanzi::IntervalProfilingSampler::m_startTimePoint
protected

The point in time when interval measurement started.

chrono::high_resolution_clock::time_point kanzi::IntervalProfilingSampler::m_endTimePoint
protected

The point in time when interval measurement finished.


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