#include <swcdb/fs/Statistics.h>
Classes | |
struct | Tracker |
Public Member Functions | |
constexpr | Metric () noexcept |
Metric (const Metric &)=delete | |
Metric (Metric &&)=delete | |
Metric & | operator= (const Metric &)=delete |
Metric & | operator= (Metric &&)=delete |
SWC_CAN_INLINE Tracker | tracker () noexcept |
void | add (bool err, uint64_t ns) noexcept |
void | gather (Metric &m) noexcept |
void | reset () noexcept |
Public Member Functions inherited from SWC::Core::MutexAtomic | |
constexpr SWC_CAN_INLINE | MutexAtomic () noexcept |
MutexAtomic (const MutexAtomic &)=delete | |
MutexAtomic (MutexAtomic &&)=delete | |
MutexAtomic & | operator= (const MutexAtomic &)=delete |
MutexAtomic & | operator= (MutexAtomic &&)=delete |
~MutexAtomic () noexcept | |
SWC_CAN_INLINE bool | try_lock () const noexcept |
SWC_CAN_INLINE void | lock () const noexcept |
void | lock (const uint32_t &us_sleep) const noexcept |
SWC_CAN_INLINE void | unlock () const noexcept |
Public Attributes | |
uint24_t | m_error |
uint32_t | m_count |
uint64_t | m_min |
uint64_t | m_max |
uint64_t | m_total |
Definition at line 67 of file Statistics.h.
|
inlineconstexprnoexcept |
Definition at line 84 of file Statistics.h.
|
delete |
|
delete |
|
noexcept |
Definition at line 13 of file Statistics.cc.
Referenced by SWC::FS::Statistics::Metric::Tracker::stop().
|
noexcept |
Definition at line 28 of file Statistics.cc.
Referenced by SWC::FS::Statistics::gather().
|
noexcept |
Definition at line 41 of file Statistics.cc.
References SWC::Core::MutexAtomic::lock(), m_count, m_error, m_max, m_min, m_total, and SWC::Core::MutexAtomic::unlock().
|
inlinenoexcept |
Definition at line 94 of file Statistics.h.
Referenced by SWC::FS::Statistics::tracker().
uint32_t SWC::FS::Statistics::Metric::m_count |
Definition at line 105 of file Statistics.h.
Referenced by reset().
uint24_t SWC::FS::Statistics::Metric::m_error |
Definition at line 104 of file Statistics.h.
Referenced by reset().
uint64_t SWC::FS::Statistics::Metric::m_max |
Definition at line 107 of file Statistics.h.
Referenced by reset().
uint64_t SWC::FS::Statistics::Metric::m_min |
Definition at line 106 of file Statistics.h.
Referenced by reset().
uint64_t SWC::FS::Statistics::Metric::m_total |
Definition at line 108 of file Statistics.h.
Referenced by SWC::Common::Query::Update::Metric::Item_FS::report(), and reset().