Kanzi  3.9.9
Kanzi Engine C++ API
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:
[legend]

Public Member Functions

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

Protected Attributes

TimePoint m_endTimePoint
 The point in time when interval measurement finished. More...
 
TimePoint m_startTimePoint
 The point in time when interval measurement started. 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

TimePoint kanzi::IntervalProfilingSampler::m_startTimePoint
protected

The point in time when interval measurement started.

TimePoint kanzi::IntervalProfilingSampler::m_endTimePoint
protected

The point in time when interval measurement finished.


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