SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::FS::Statistics::Metric Struct Reference

#include <swcdb/fs/Statistics.h>

+ Inheritance diagram for SWC::FS::Statistics::Metric:
+ Collaboration diagram for SWC::FS::Statistics::Metric:

Classes

struct  Tracker
 

Public Member Functions

constexpr Metric () noexcept
 
 Metric (const Metric &)=delete
 
 Metric (Metric &&)=delete
 
Metricoperator= (const Metric &)=delete
 
Metricoperator= (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
 
MutexAtomicoperator= (const MutexAtomic &)=delete
 
MutexAtomicoperator= (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
 

Detailed Description

Definition at line 67 of file Statistics.h.

Constructor & Destructor Documentation

◆ Metric() [1/3]

constexpr SWC::FS::Statistics::Metric::Metric ( )
inlineconstexprnoexcept

Definition at line 84 of file Statistics.h.

◆ Metric() [2/3]

SWC::FS::Statistics::Metric::Metric ( const Metric )
delete

◆ Metric() [3/3]

SWC::FS::Statistics::Metric::Metric ( Metric &&  )
delete

Member Function Documentation

◆ add()

void SWC::FS::Statistics::Metric::add ( bool  err,
uint64_t  ns 
)
noexcept

Definition at line 13 of file Statistics.cc.

Referenced by SWC::FS::Statistics::Metric::Tracker::stop().

+ Here is the caller graph for this function:

◆ gather()

void SWC::FS::Statistics::Metric::gather ( Metric m)
noexcept

Definition at line 28 of file Statistics.cc.

Referenced by SWC::FS::Statistics::gather().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

Metric& SWC::FS::Statistics::Metric::operator= ( const Metric )
delete

◆ operator=() [2/2]

Metric& SWC::FS::Statistics::Metric::operator= ( Metric &&  )
delete

◆ reset()

void SWC::FS::Statistics::Metric::reset ( )
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().

+ Here is the call graph for this function:

◆ tracker()

SWC_CAN_INLINE Tracker SWC::FS::Statistics::Metric::tracker ( )
inlinenoexcept

Definition at line 94 of file Statistics.h.

Referenced by SWC::FS::Statistics::tracker().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_count

uint32_t SWC::FS::Statistics::Metric::m_count

Definition at line 105 of file Statistics.h.

Referenced by reset().

◆ m_error

uint24_t SWC::FS::Statistics::Metric::m_error

Definition at line 104 of file Statistics.h.

Referenced by reset().

◆ m_max

uint64_t SWC::FS::Statistics::Metric::m_max

Definition at line 107 of file Statistics.h.

Referenced by reset().

◆ m_min

uint64_t SWC::FS::Statistics::Metric::m_min

Definition at line 106 of file Statistics.h.

Referenced by reset().

◆ m_total

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().


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