#include <swcdb/fs/Statistics.h>
Classes | |
struct | Metric |
Public Member Functions | |
constexpr | Statistics (bool a_enabled) noexcept |
Statistics (const Statistics &)=delete | |
Statistics (Statistics &&)=delete | |
Statistics & | operator= (const Statistics &)=delete |
Statistics & | operator= (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 |
Definition at line 18 of file Statistics.h.
enum SWC::FS::Statistics::Command : uint8_t |
Definition at line 21 of file Statistics.h.
|
inlineconstexprnoexcept |
Definition at line 112 of file Statistics.h.
|
delete |
|
delete |
|
noexcept |
Definition at line 52 of file Statistics.cc.
References SWC::FS::Statistics::Metric::gather(), SWC::client::Query::Update::Handlers::Metric::MAX, and metrics.
|
delete |
|
delete |
|
noexcept |
Definition at line 58 of file Statistics.cc.
References metrics.
|
staticnoexcept |
Definition at line 64 of file Statistics.cc.
References APPEND_ASYNC, APPEND_SYNC, CLOSE_ASYNC, CLOSE_SYNC, COMBI_PREAD_ASYNC, COMBI_PREAD_SYNC, CREATE_ASYNC, CREATE_SYNC, EXISTS_ASYNC, EXISTS_SYNC, FLUSH_ASYNC, FLUSH_SYNC, LENGTH_ASYNC, LENGTH_SYNC, MKDIRS_ASYNC, MKDIRS_SYNC, OPEN_ASYNC, OPEN_SYNC, PREAD_ASYNC, PREAD_SYNC, READ_ALL_ASYNC, READ_ALL_SYNC, READ_ASYNC, READ_SYNC, READDIR_ASYNC, READDIR_SYNC, REMOVE_ASYNC, REMOVE_SYNC, RENAME_ASYNC, RENAME_SYNC, RMDIR_ASYNC, RMDIR_SYNC, SEEK_ASYNC, SEEK_SYNC, SYNC_ASYNC, SYNC_SYNC, WRITE_ASYNC, and WRITE_SYNC.
Referenced by SWC::Common::Query::Update::Metric::Item_FS::definitions().
|
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().
const bool SWC::FS::Statistics::enabled |
Definition at line 127 of file Statistics.h.
Referenced by tracker().
Core::Atomic<uint64_t> SWC::FS::Statistics::fds_count |
Definition at line 129 of file Statistics.h.
Metric SWC::FS::Statistics::metrics[Command::MAX] |
Definition at line 128 of file Statistics.h.
Referenced by gather(), SWC::Common::Query::Update::Metric::Item_FS::report(), reset(), and tracker().