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 Struct Reference

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

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

Classes

struct  Component
 

Public Member Functions

 Profiling () noexcept
 
SWC_CAN_INLINE void finished () noexcept
 
SWC_CAN_INLINE Component::Start mngr_locate () noexcept
 
SWC_CAN_INLINE Component::Start mngr_res () noexcept
 
SWC_CAN_INLINE Component::Start rgr_locate (DB::Types::Range type) noexcept
 
SWC_CAN_INLINE Component::Start rgr_data () noexcept
 
SWC_CAN_INLINE Component::Start bkr () noexcept
 
Profilingoperator+= (const Profiling &other) noexcept
 
void reset () noexcept
 
void display (std::ostream &out) const
 
void print (std::ostream &out) const
 
SWC_CAN_INLINE std::string to_string () const
 

Public Attributes

Core::Atomic< int64_t > ts_start
 
Core::Atomic< int64_t > ts_finish
 
Component _mngr_locate
 
Component _mngr_res
 
Component _rgr_locate_master
 
Component _rgr_locate_meta
 
Component _rgr_data
 
Component _bkr
 

Detailed Description

Definition at line 24 of file Profiling.h.

Constructor & Destructor Documentation

◆ Profiling()

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

Definition at line 28 of file Profiling.h.

Member Function Documentation

◆ bkr()

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

Definition at line 157 of file Profiling.h.

References _bkr.

◆ display()

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

Definition at line 182 of file Profiling.h.

References _bkr, _mngr_locate, _mngr_res, _rgr_data, _rgr_locate_master, _rgr_locate_meta, SWC::client::Query::Profiling::Component::display(), SWC::Comm::Protocol::FsBroker::Handler::flush(), and SWC::client::Query::Profiling::Component::time.

Referenced by SWC::Utils::LoadGenerator::select_data().

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

◆ finished()

SWC_CAN_INLINE void SWC::client::Query::Profiling::finished ( )
inlinenoexcept

◆ mngr_locate()

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

Definition at line 132 of file Profiling.h.

References _mngr_locate.

◆ mngr_res()

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

Definition at line 137 of file Profiling.h.

References _mngr_res.

◆ operator+=()

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

Definition at line 161 of file Profiling.h.

References _bkr, _mngr_locate, _mngr_res, _rgr_data, _rgr_locate_master, and _rgr_locate_meta.

◆ print()

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

Definition at line 204 of file Profiling.h.

References _bkr, _mngr_locate, _mngr_res, _rgr_data, _rgr_locate_master, _rgr_locate_meta, SWC::client::Query::Profiling::Component::print(), SWC::client::Query::Profiling::Component::time, ts_finish, and ts_start.

Referenced by SWC::Comm::Protocol::Bkr::Handler::Selector::response(), SWC::Comm::Protocol::Bkr::Handler::Updater::response(), and to_string().

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

◆ reset()

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

Definition at line 171 of file Profiling.h.

References _bkr, _mngr_locate, _mngr_res, _rgr_data, _rgr_locate_master, _rgr_locate_meta, SWC::Time::now_ns(), SWC::client::Query::Profiling::Component::reset(), SWC::Core::AtomicBase< T, OrderT >::store(), ts_finish, and ts_start.

Referenced by SWC::client::Query::Update::Handlers::Metric::Reporting::report().

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

◆ rgr_data()

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

Definition at line 152 of file Profiling.h.

References _rgr_data.

◆ rgr_locate()

SWC_CAN_INLINE Component::Start SWC::client::Query::Profiling::rgr_locate ( DB::Types::Range  type)
inlinenoexcept

Definition at line 142 of file Profiling.h.

References _rgr_locate_master, and _rgr_locate_meta.

◆ to_string()

SWC_CAN_INLINE std::string SWC::client::Query::Profiling::to_string ( ) const
inline

Definition at line 230 of file Profiling.h.

References print().

+ Here is the call graph for this function:

Member Data Documentation

◆ _bkr

Component SWC::client::Query::Profiling::_bkr

Definition at line 124 of file Profiling.h.

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

◆ _mngr_locate

Component SWC::client::Query::Profiling::_mngr_locate

Definition at line 119 of file Profiling.h.

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

◆ _mngr_res

Component SWC::client::Query::Profiling::_mngr_res

Definition at line 120 of file Profiling.h.

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

◆ _rgr_data

Component SWC::client::Query::Profiling::_rgr_data

Definition at line 123 of file Profiling.h.

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

◆ _rgr_locate_master

Component SWC::client::Query::Profiling::_rgr_locate_master

Definition at line 121 of file Profiling.h.

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

◆ _rgr_locate_meta

Component SWC::client::Query::Profiling::_rgr_locate_meta

Definition at line 122 of file Profiling.h.

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

◆ ts_finish

Core::Atomic<int64_t> SWC::client::Query::Profiling::ts_finish

Definition at line 26 of file Profiling.h.

Referenced by finished(), print(), and reset().

◆ ts_start

Core::Atomic<int64_t> SWC::client::Query::Profiling::ts_start

Definition at line 25 of file Profiling.h.

Referenced by print(), and reset().


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