Kanzi  3.9.6
Kanzi Engine API
kanzi::NamedIntervalProfilerSampleStatistics Struct Reference

Named Interval profiler sample statistics. More...

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

Public Member Functions

chrono::nanoseconds calculateAverage () const
 Calculates the average duration of the interval. More...
 
 NamedIntervalProfilerSampleStatistics ()
 Constructor. More...
 

Public Attributes

chrono::nanoseconds m_longestInterval
 The longest interval. More...
 
uint64_t m_numIntervals
 Total number of intervals measured. More...
 
chrono::nanoseconds m_shortestInterval
 The shortest interval. More...
 
chrono::nanoseconds m_totalDuration
 The total duration of all intervals. More...
 

Detailed Description

Named Interval profiler sample statistics.

Constructor & Destructor Documentation

◆ NamedIntervalProfilerSampleStatistics()

kanzi::NamedIntervalProfilerSampleStatistics::NamedIntervalProfilerSampleStatistics ( )
inlineexplicit

Constructor.

Member Function Documentation

◆ calculateAverage()

chrono::nanoseconds kanzi::NamedIntervalProfilerSampleStatistics::calculateAverage ( ) const
inline

Calculates the average duration of the interval.

Member Data Documentation

◆ m_totalDuration

chrono::nanoseconds kanzi::NamedIntervalProfilerSampleStatistics::m_totalDuration

The total duration of all intervals.

◆ m_longestInterval

chrono::nanoseconds kanzi::NamedIntervalProfilerSampleStatistics::m_longestInterval

The longest interval.

◆ m_shortestInterval

chrono::nanoseconds kanzi::NamedIntervalProfilerSampleStatistics::m_shortestInterval

The shortest interval.

◆ m_numIntervals

uint64_t kanzi::NamedIntervalProfilerSampleStatistics::m_numIntervals

Total number of intervals measured.


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