#include <swcdb/common/Stats/Stat.h>
Public Member Functions | |
SWC_CAN_INLINE | MinMaxAvgCount_Safe () noexcept |
virtual SWC_CAN_INLINE | ~MinMaxAvgCount_Safe () noexcept |
SWC_CAN_INLINE void | add (ValueT v) noexcept |
SWC_CAN_INLINE ValueT | count () const noexcept |
SWC_CAN_INLINE ValueT | total () const noexcept |
SWC_CAN_INLINE ValueT | avg () const noexcept |
SWC_CAN_INLINE ValueT | max () const noexcept |
SWC_CAN_INLINE ValueT | min () const noexcept |
SWC_CAN_INLINE void | gather (MinMaxAvgCount< ValueT > &to) noexcept |
SWC_CAN_INLINE void | reset () noexcept |
void | print (std::ostream &out) const |
Private Attributes | |
Core::MutexAtomic | m_mutex |
MinMaxAvgCount< ValueT > | m_value |
|
inlinenoexcept |
|
inlinevirtualnoexcept |
|
inlinenoexcept |
Definition at line 72 of file Stat.h.
Referenced by SWC::Common::Query::Update::Metric::Reporting::System::cpu_sys(), SWC::Common::Query::Update::Metric::Reporting::System::cpu_threads(), SWC::Common::Query::Update::Metric::Reporting::System::cpu_user(), SWC::Common::Query::Update::Metric::Reporting::System::rss_free(), SWC::Common::Query::Update::Metric::Reporting::System::rss_used(), and SWC::Common::Query::Update::Metric::Reporting::System::rss_used_reg().
|
inlinenoexcept |
Definition at line 90 of file Stat.h.
Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 108 of file Stat.h.
Referenced by SWC::Common::Query::Update::Metric::Item_Mem::report(), and SWC::Common::Query::Update::Metric::Item_CPU::report().
|
inlinenoexcept |
Definition at line 96 of file Stat.h.
Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print().
|
inlinenoexcept |
Definition at line 102 of file Stat.h.
Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print().
|
inline |
|
inlinenoexcept |
Definition at line 114 of file Stat.h.
Referenced by SWC::Common::Query::Update::Metric::Item_Mem::reset(), SWC::Common::Query::Update::Metric::Item_CPU::reset(), and SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::reset().
|
inlinenoexcept |
|
mutableprivate |
Definition at line 131 of file Stat.h.
Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::add(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::avg(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::count(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::gather(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::max(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::min(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::reset(), and SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::total().
|
private |
Definition at line 132 of file Stat.h.
Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::add(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::avg(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::count(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::gather(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::max(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::min(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print(), SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::reset(), and SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::total().