webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
webrtc::StatsCounter Class Referenceabstract

#include <stats_counter.h>

Inheritance diagram for webrtc::StatsCounter:
webrtc::AvgCounter webrtc::AvgCounter webrtc::MaxCounter webrtc::MaxCounter webrtc::PercentCounter webrtc::PercentCounter webrtc::PermilleCounter webrtc::PermilleCounter webrtc::RateAccCounter webrtc::RateAccCounter webrtc::RateCounter webrtc::RateCounter

Public Member Functions

virtual ~StatsCounter ()
 
virtual bool GetMetric (int *metric) const =0
 
virtual int GetValueForEmptyInterval () const =0
 
AggregatedStats GetStats ()
 
AggregatedStats ProcessAndGetStats ()
 
void ProcessAndPause ()
 
void ProcessAndPauseForDuration (int64_t min_pause_time_ms)
 
void ProcessAndStopPause ()
 
bool HasSample () const
 
virtual ~StatsCounter ()
 
virtual bool GetMetric (int *metric) const =0
 
virtual int GetValueForEmptyInterval () const =0
 
AggregatedStats GetStats ()
 
AggregatedStats ProcessAndGetStats ()
 
void ProcessAndPause ()
 
void ProcessAndPauseForDuration (int64_t min_pause_time_ms)
 
void ProcessAndStopPause ()
 
bool HasSample () const
 

Protected Member Functions

 StatsCounter (Clock *clock, int64_t process_intervals_ms, bool include_empty_intervals, StatsCounterObserver *observer)
 
void Add (int sample)
 
void Set (int64_t sample, uint32_t stream_id)
 
void SetLast (int64_t sample, uint32_t stream_id)
 
 StatsCounter (Clock *clock, int64_t process_intervals_ms, bool include_empty_intervals, StatsCounterObserver *observer)
 
void Add (int sample)
 
void Set (int64_t sample, uint32_t stream_id)
 
void SetLast (int64_t sample, uint32_t stream_id)
 

Protected Attributes

const bool include_empty_intervals_
 
const int64_t process_intervals_ms_
 
const std::unique_ptr< AggregatedCounteraggregated_counter_
 
const std::unique_ptr< Samplessamples_
 

Constructor & Destructor Documentation

◆ ~StatsCounter() [1/2]

webrtc::StatsCounter::~StatsCounter ( )
virtual

◆ StatsCounter() [1/2]

webrtc::StatsCounter::StatsCounter ( Clock clock,
int64_t  process_intervals_ms,
bool  include_empty_intervals,
StatsCounterObserver observer 
)
protected

◆ ~StatsCounter() [2/2]

virtual webrtc::StatsCounter::~StatsCounter ( )
virtual

◆ StatsCounter() [2/2]

webrtc::StatsCounter::StatsCounter ( Clock clock,
int64_t  process_intervals_ms,
bool  include_empty_intervals,
StatsCounterObserver observer 
)
protected

Member Function Documentation

◆ Add() [1/2]

void webrtc::StatsCounter::Add ( int  sample)
protected

◆ Add() [2/2]

void webrtc::StatsCounter::Add ( int  sample)
protected

◆ GetMetric() [1/2]

virtual bool webrtc::StatsCounter::GetMetric ( int *  metric) const
pure virtual

◆ GetMetric() [2/2]

virtual bool webrtc::StatsCounter::GetMetric ( int *  metric) const
pure virtual

◆ GetStats() [1/2]

AggregatedStats webrtc::StatsCounter::GetStats ( )

◆ GetStats() [2/2]

AggregatedStats webrtc::StatsCounter::GetStats ( )

◆ GetValueForEmptyInterval() [1/2]

virtual int webrtc::StatsCounter::GetValueForEmptyInterval ( ) const
pure virtual

◆ GetValueForEmptyInterval() [2/2]

virtual int webrtc::StatsCounter::GetValueForEmptyInterval ( ) const
pure virtual

◆ HasSample() [1/2]

bool webrtc::StatsCounter::HasSample ( ) const

◆ HasSample() [2/2]

bool webrtc::StatsCounter::HasSample ( ) const

◆ ProcessAndGetStats() [1/2]

AggregatedStats webrtc::StatsCounter::ProcessAndGetStats ( )

◆ ProcessAndGetStats() [2/2]

AggregatedStats webrtc::StatsCounter::ProcessAndGetStats ( )

◆ ProcessAndPause() [1/2]

void webrtc::StatsCounter::ProcessAndPause ( )

◆ ProcessAndPause() [2/2]

void webrtc::StatsCounter::ProcessAndPause ( )

◆ ProcessAndPauseForDuration() [1/2]

void webrtc::StatsCounter::ProcessAndPauseForDuration ( int64_t  min_pause_time_ms)

◆ ProcessAndPauseForDuration() [2/2]

void webrtc::StatsCounter::ProcessAndPauseForDuration ( int64_t  min_pause_time_ms)

◆ ProcessAndStopPause() [1/2]

void webrtc::StatsCounter::ProcessAndStopPause ( )

◆ ProcessAndStopPause() [2/2]

void webrtc::StatsCounter::ProcessAndStopPause ( )

◆ Set() [1/2]

void webrtc::StatsCounter::Set ( int64_t  sample,
uint32_t  stream_id 
)
protected

◆ Set() [2/2]

void webrtc::StatsCounter::Set ( int64_t  sample,
uint32_t  stream_id 
)
protected

◆ SetLast() [1/2]

void webrtc::StatsCounter::SetLast ( int64_t  sample,
uint32_t  stream_id 
)
protected

◆ SetLast() [2/2]

void webrtc::StatsCounter::SetLast ( int64_t  sample,
uint32_t  stream_id 
)
protected

Member Data Documentation

◆ aggregated_counter_

const std::unique_ptr< AggregatedCounter > webrtc::StatsCounter::aggregated_counter_
protected

◆ include_empty_intervals_

const bool webrtc::StatsCounter::include_empty_intervals_
protected

◆ process_intervals_ms_

const int64_t webrtc::StatsCounter::process_intervals_ms_
protected

◆ samples_

const std::unique_ptr< Samples > webrtc::StatsCounter::samples_
protected

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