CernVM-FS
2.12.0
|
#include <statistics.h>
Public Member Functions | |
Counter () | |
void | Inc () |
void | Dec () |
int64_t | Get () |
void | Set (const int64_t val) |
int64_t | Xadd (const int64_t delta) |
std::string | Print () |
std::string | PrintK () |
std::string | PrintKi () |
std::string | PrintM () |
std::string | PrintMi () |
std::string | PrintRatio (Counter divider) |
std::string | ToString () |
Private Attributes | |
atomic_int64 | counter_ |
A wrapper around an atomic 64bit signed integer.
Definition at line 27 of file statistics.h.
|
inline |
Definition at line 29 of file statistics.h.
|
inline |
Definition at line 31 of file statistics.h.
Referenced by perf::Dec().
|
inline |
Definition at line 32 of file statistics.h.
Referenced by HitrateMagicXattr::FinalizeValue(), RxMagicXattr::FinalizeValue(), SpeedMagicXattr::FinalizeValue(), and PrintRatio().
|
inline |
Definition at line 30 of file statistics.h.
Referenced by shrinkwrap::getNext(), shrinkwrap::handle_file(), perf::Inc(), shrinkwrap::MainWorker(), and shrinkwrap::Sync().
std::string perf::Counter::Print | ( | ) |
Definition at line 25 of file statistics.cc.
Referenced by NDownloadMagicXattr::FinalizeValue().
std::string perf::Counter::PrintK | ( | ) |
std::string perf::Counter::PrintKi | ( | ) |
std::string perf::Counter::PrintM | ( | ) |
std::string perf::Counter::PrintMi | ( | ) |
std::string perf::Counter::PrintRatio | ( | Counter | divider | ) |
|
inline |
Definition at line 33 of file statistics.h.
Referenced by AuthzSessionManager::ClearSessionCache(), MemoryKvStore::DoCommit(), MemoryKvStore::DoDelete(), lru::LruCache< shash::Any, MemoryBuffer >::Drop(), lru::LruCache< shash::Any, MemoryBuffer >::LruCache(), swissknife::Ingest::Main(), swissknife::CommandSync::Main(), TalkManager::MainResponder(), FileSystem::ResetErrorCounters(), RestoreState(), MemoryKvStore::ShrinkTo(), and GarbageCollector< CatalogTraversalT, HashFilterT >::SweepReflog().
std::string perf::Counter::ToString | ( | ) |
Definition at line 24 of file statistics.cc.
Referenced by NOpenMagicXattr::FinalizeValue(), and anonymous_namespace{statistics_database.cc}::GcStats::GcStats().
|
inline |
Definition at line 34 of file statistics.h.
Referenced by shrinkwrap::copyFile(), shrinkwrap::getNext(), shrinkwrap::handle_file(), PosixGcMainWorker(), and perf::Xadd().
|
private |
Definition at line 45 of file statistics.h.