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

#include <swcdb/fs/Statistics.h>

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

Classes

struct  Metric
 

Public Types

enum  Command : uint8_t {
  OPEN_SYNC,
  OPEN_ASYNC,
  CREATE_SYNC,
  CREATE_ASYNC,
  CLOSE_SYNC,
  CLOSE_ASYNC,
  READ_SYNC,
  READ_ASYNC,
  APPEND_SYNC,
  APPEND_ASYNC,
  SEEK_SYNC,
  SEEK_ASYNC,
  REMOVE_SYNC,
  REMOVE_ASYNC,
  LENGTH_SYNC,
  LENGTH_ASYNC,
  PREAD_SYNC,
  PREAD_ASYNC,
  MKDIRS_SYNC,
  MKDIRS_ASYNC,
  FLUSH_SYNC,
  FLUSH_ASYNC,
  RMDIR_SYNC,
  RMDIR_ASYNC,
  READDIR_SYNC,
  READDIR_ASYNC,
  EXISTS_SYNC,
  EXISTS_ASYNC,
  RENAME_SYNC,
  RENAME_ASYNC,
  SYNC_SYNC,
  SYNC_ASYNC,
  WRITE_SYNC,
  WRITE_ASYNC,
  READ_ALL_SYNC,
  READ_ALL_ASYNC,
  COMBI_PREAD_SYNC,
  COMBI_PREAD_ASYNC,
  MAX
}
 

Public Member Functions

constexpr Statistics (bool a_enabled) noexcept
 
 Statistics (const Statistics &)=delete
 
 Statistics (Statistics &&)=delete
 
Statisticsoperator= (const Statistics &)=delete
 
Statisticsoperator= (Statistics &&)=delete
 
SWC_CAN_INLINE Metric::Tracker tracker (Command cmd) noexcept
 
void gather (Statistics &stats) noexcept
 
void reset () noexcept
 

Static Public Member Functions

static const char *SWC_CONST_FUNC to_string (Command cmd) noexcept
 

Public Attributes

const bool enabled
 
Metric metrics [Command::MAX]
 
Core::Atomic< uint64_t > fds_count
 

Detailed Description

Definition at line 18 of file Statistics.h.

Member Enumeration Documentation

◆ Command

Enumerator
OPEN_SYNC 
OPEN_ASYNC 
CREATE_SYNC 
CREATE_ASYNC 
CLOSE_SYNC 
CLOSE_ASYNC 
READ_SYNC 
READ_ASYNC 
APPEND_SYNC 
APPEND_ASYNC 
SEEK_SYNC 
SEEK_ASYNC 
REMOVE_SYNC 
REMOVE_ASYNC 
LENGTH_SYNC 
LENGTH_ASYNC 
PREAD_SYNC 
PREAD_ASYNC 
MKDIRS_SYNC 
MKDIRS_ASYNC 
FLUSH_SYNC 
FLUSH_ASYNC 
RMDIR_SYNC 
RMDIR_ASYNC 
READDIR_SYNC 
READDIR_ASYNC 
EXISTS_SYNC 
EXISTS_ASYNC 
RENAME_SYNC 
RENAME_ASYNC 
SYNC_SYNC 
SYNC_ASYNC 
WRITE_SYNC 
WRITE_ASYNC 
READ_ALL_SYNC 
READ_ALL_ASYNC 
COMBI_PREAD_SYNC 
COMBI_PREAD_ASYNC 
MAX 

Definition at line 21 of file Statistics.h.

Constructor & Destructor Documentation

◆ Statistics() [1/3]

constexpr SWC::FS::Statistics::Statistics ( bool  a_enabled)
inlineconstexprnoexcept

Definition at line 112 of file Statistics.h.

◆ Statistics() [2/3]

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

◆ Statistics() [3/3]

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

Member Function Documentation

◆ gather()

SWC_SHOULD_NOT_INLINE void SWC::FS::Statistics::gather ( Statistics stats)
noexcept

Definition at line 52 of file Statistics.cc.

References SWC::FS::Statistics::Metric::gather(), SWC::client::Query::Update::Handlers::Metric::MAX, and metrics.

+ Here is the call graph for this function:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ reset()

void SWC::FS::Statistics::reset ( )
noexcept

Definition at line 58 of file Statistics.cc.

References metrics.

◆ to_string()

const char * SWC::FS::Statistics::to_string ( Command  cmd)
staticnoexcept

◆ tracker()

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

Definition at line 119 of file Statistics.h.

References enabled, metrics, and SWC::FS::Statistics::Metric::tracker().

Referenced by SWC::FS::FileSystemCeph::append(), SWC::FS::FileSystemHadoop::append(), SWC::FS::FileSystemHadoopJVM::append(), SWC::FS::FileSystemLocal::append(), SWC::FS::FileSystemCeph::close(), SWC::FS::FileSystemHadoop::close(), SWC::FS::FileSystemHadoopJVM::close(), SWC::FS::FileSystemLocal::close(), SWC::FS::FileSystemCeph::create(), SWC::FS::FileSystemHadoop::create(), SWC::FS::FileSystemHadoopJVM::create(), SWC::FS::FileSystemLocal::create(), SWC::FS::FileSystemCeph::exists(), SWC::FS::FileSystemHadoop::exists(), SWC::FS::FileSystemHadoopJVM::exists(), SWC::FS::FileSystemLocal::exists(), SWC::FS::FileSystemCeph::flush(), SWC::FS::FileSystemHadoop::flush(), SWC::FS::FileSystemHadoopJVM::flush(), SWC::FS::FileSystemCeph::length(), SWC::FS::FileSystemHadoop::length(), SWC::FS::FileSystemHadoopJVM::length(), SWC::FS::FileSystemLocal::length(), SWC::FS::FileSystemCeph::mkdirs(), SWC::FS::FileSystemHadoop::mkdirs(), SWC::FS::FileSystemHadoopJVM::mkdirs(), SWC::FS::FileSystemLocal::mkdirs(), SWC::FS::FileSystemCeph::open(), SWC::FS::FileSystemHadoop::open(), SWC::FS::FileSystemHadoopJVM::open(), SWC::FS::FileSystemLocal::open(), SWC::FS::FileSystemCeph::pread(), SWC::FS::FileSystemHadoop::pread(), SWC::FS::FileSystemHadoopJVM::pread(), SWC::FS::FileSystemLocal::pread(), SWC::FS::FileSystemCeph::read(), SWC::FS::FileSystemHadoop::read(), SWC::FS::FileSystemHadoopJVM::read(), SWC::FS::FileSystemLocal::read(), SWC::FS::FileSystemCeph::readdir(), SWC::FS::FileSystemHadoop::readdir(), SWC::FS::FileSystemHadoopJVM::readdir(), SWC::FS::FileSystemLocal::readdir(), SWC::FS::FileSystemCeph::remove(), SWC::FS::FileSystemHadoop::remove(), SWC::FS::FileSystemHadoopJVM::remove(), SWC::FS::FileSystemLocal::remove(), SWC::FS::FileSystemCeph::rename(), SWC::FS::FileSystemHadoop::rename(), SWC::FS::FileSystemHadoopJVM::rename(), SWC::FS::FileSystemLocal::rename(), SWC::FS::FileSystemCeph::rmdir(), SWC::FS::FileSystemHadoop::rmdir(), SWC::FS::FileSystemHadoopJVM::rmdir(), SWC::FS::FileSystemLocal::rmdir(), SWC::FS::FileSystemCeph::seek(), SWC::FS::FileSystemHadoop::seek(), SWC::FS::FileSystemHadoopJVM::seek(), SWC::FS::FileSystemLocal::seek(), SWC::FS::FileSystemCeph::sync(), SWC::FS::FileSystemHadoop::sync(), SWC::FS::FileSystemHadoopJVM::sync(), and SWC::FS::FileSystemLocal::sync().

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

Member Data Documentation

◆ enabled

const bool SWC::FS::Statistics::enabled

Definition at line 127 of file Statistics.h.

Referenced by tracker().

◆ fds_count

Core::Atomic<uint64_t> SWC::FS::Statistics::fds_count

Definition at line 129 of file Statistics.h.

◆ metrics

Metric SWC::FS::Statistics::metrics[Command::MAX]

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