 |
SWC-DB
v0.5.11 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_db_client_Query_Profiling_h
7 #define swcdb_db_client_Query_Profiling_h
14 namespace SWC {
namespace client {
60 void add(
bool err)
const noexcept {
76 void add(uint64_t ts,
bool err) noexcept {
96 void print(std::ostream& out)
const {
97 out <<
"(time=" <<
time.
load() <<
"ns"
138 case DB::Types::Range::MASTER:
179 out <<
" Mngr Locate: ");
182 out <<
" Mngr Resolve: ");
185 out <<
" Rgr Locate Master: ");
188 out <<
" Rgr Locate Meta: ");
191 out <<
" Rgr Data: ");
198 void print(std::ostream& out)
const {
227 std::stringstream ss;
239 #endif // swcdb_db_client_Query_Profiling_h
SWC_CAN_INLINE void add(uint64_t ts, bool err) noexcept
SWC_CAN_INLINE int64_t now_ns() noexcept
void load(int &err, const std::string &filepath, DB::Schema::Ptr &schema)
void display(std::ostream &out) const
SWC_CAN_INLINE Start(Component &m) noexcept
Component & operator+=(const Component &other) noexcept
Core::Atomic< int64_t > ts_finish
constexpr SWC_CAN_INLINE void store(T v) noexcept
SWC_CAN_INLINE Component::Start rgr_locate(DB::Types::Range type) noexcept
void display(std::ostream &out) const
The SWC-DB C++ namespace 'SWC'.
void print(std::ostream &out) const
Core::Atomic< int64_t > ts_start
Profiling & operator+=(const Profiling &other) noexcept
SWC_CAN_INLINE void finished() noexcept
Core::Atomic< uint64_t > count
Component _rgr_locate_master
SWC_CAN_INLINE Component::Start bkr() noexcept
constexpr SWC_CAN_INLINE T load() const noexcept
SWC_CAN_INLINE Start start() noexcept
SWC_CAN_INLINE void add_cached(uint64_t ts, bool err) noexcept
Core::Atomic< uint64_t > error
SWC_CAN_INLINE std::string to_string() const
void flush(const ConnHandlerPtr &conn, const Event::Ptr &ev)
SWC_CAN_INLINE Component::Start mngr_res() noexcept
SWC_CAN_INLINE Component::Start rgr_data() noexcept
Component _rgr_locate_meta
Core::Atomic< uint64_t > cache
SWC_CAN_INLINE void add_cached(bool err) const noexcept
constexpr SWC_CAN_INLINE T fetch_add(T v) noexcept
SWC_CAN_INLINE Component::Start mngr_locate() noexcept
void print(std::ostream &out) const
SWC_CAN_INLINE void add(bool err) const noexcept
Core::Atomic< uint64_t > time