TopicStatistics.hh
Go to the documentation of this file.
Computes the rolling average, min, max, and standard deviation for a set of samples.
Definition: TopicStatistics.hh:41
Encapsulates statistics for a single topic. The set of statistics include:
Definition: TopicStatistics.hh:102
Statistics AgeStatistics() const
Get the message age statistics.
uint64_t DroppedMsgCount() const
Get the number of dropped messages.
Statistics PublicationStatistics() const
Get statistics about publication of messages.
void Update(const std::string &_sender, uint64_t _stamp, uint64_t _seq)
Update the topic statistics.
void FillMessage(msgs::Metric &_msg) const
Populate an ignition::msgs::Metric message with topic statistics.
TopicStatistics(const TopicStatistics &_stats)
Copy constructor.
Statistics ReceptionStatistics() const
Get the statistics about reception of messages.
T max(T... args)
T min(T... args)
Definition: AdvertiseOptions.hh:29