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::client::Query::Profiling::Component Struct Reference

#include <swcdb/db/client/Query/Profiling.h>

+ Collaboration diagram for SWC::client::Query::Profiling::Component:

Classes

struct  Start
 

Public Member Functions

 Component () noexcept
 
Componentoperator+= (const Component &other) noexcept
 
SWC_CAN_INLINE Start start () noexcept
 
SWC_CAN_INLINE void add (uint64_t ts, bool err) noexcept
 
SWC_CAN_INLINE void add_cached (uint64_t ts, bool err) noexcept
 
void reset () noexcept
 
void print (std::ostream &out) const
 
void display (std::ostream &out) const
 

Public Attributes

Core::Atomic< uint64_t > time
 
Core::Atomic< uint64_t > count
 
Core::Atomic< uint64_t > cache
 
Core::Atomic< uint64_t > error
 

Detailed Description

Definition at line 39 of file Profiling.h.

Constructor & Destructor Documentation

◆ Component()

SWC::client::Query::Profiling::Component::Component ( )
inlinenoexcept

Definition at line 46 of file Profiling.h.

Member Function Documentation

◆ add()

SWC_CAN_INLINE void SWC::client::Query::Profiling::Component::add ( uint64_t  ts,
bool  err 
)
inlinenoexcept

Definition at line 82 of file Profiling.h.

References count, error, SWC::Core::Atomic< T, OrderT >::fetch_add(), SWC::Time::now_ns(), and time.

Referenced by SWC::client::Query::Profiling::Component::Start::add(), and add_cached().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_cached()

SWC_CAN_INLINE void SWC::client::Query::Profiling::Component::add_cached ( uint64_t  ts,
bool  err 
)
inlinenoexcept

Definition at line 90 of file Profiling.h.

References add(), cache, and SWC::Core::Atomic< T, OrderT >::fetch_add().

Referenced by SWC::client::Query::Profiling::Component::Start::add_cached().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ display()

void SWC::client::Query::Profiling::Component::display ( std::ostream &  out) const
inline

Definition at line 110 of file Profiling.h.

References cache, count, error, SWC::Core::AtomicBase< T, OrderT >::load(), and time.

Referenced by SWC::client::Query::Profiling::display().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator+=()

Component& SWC::client::Query::Profiling::Component::operator+= ( const Component other)
inlinenoexcept

Definition at line 48 of file Profiling.h.

References cache, count, error, SWC::Core::Atomic< T, OrderT >::fetch_add(), and time.

+ Here is the call graph for this function:

◆ print()

void SWC::client::Query::Profiling::Component::print ( std::ostream &  out) const
inline

Definition at line 102 of file Profiling.h.

References cache, count, error, SWC::Core::AtomicBase< T, OrderT >::load(), and time.

Referenced by SWC::client::Query::Profiling::print().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset()

void SWC::client::Query::Profiling::Component::reset ( )
inlinenoexcept

Definition at line 95 of file Profiling.h.

References cache, count, error, SWC::Core::AtomicBase< T, OrderT >::store(), and time.

Referenced by SWC::client::Query::Profiling::reset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

SWC_CAN_INLINE Start SWC::client::Query::Profiling::Component::start ( )
inlinenoexcept

Definition at line 77 of file Profiling.h.

Member Data Documentation

◆ cache

Core::Atomic<uint64_t> SWC::client::Query::Profiling::Component::cache

Definition at line 43 of file Profiling.h.

Referenced by add_cached(), display(), operator+=(), print(), and reset().

◆ count

Core::Atomic<uint64_t> SWC::client::Query::Profiling::Component::count

Definition at line 42 of file Profiling.h.

Referenced by add(), display(), operator+=(), print(), and reset().

◆ error

Core::Atomic<uint64_t> SWC::client::Query::Profiling::Component::error

Definition at line 44 of file Profiling.h.

Referenced by add(), display(), operator+=(), print(), and reset().

◆ time

Core::Atomic<uint64_t> SWC::client::Query::Profiling::Component::time

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