CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
perf::Counter Class Reference

#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_
 

Detailed Description

A wrapper around an atomic 64bit signed integer.

Definition at line 27 of file statistics.h.

Constructor & Destructor Documentation

perf::Counter::Counter ( )
inline

Definition at line 29 of file statistics.h.

Member Function Documentation

void perf::Counter::Dec ( )
inline

Definition at line 31 of file statistics.h.

Referenced by perf::Dec().

Here is the caller graph for this function:

int64_t perf::Counter::Get ( )
inline

Definition at line 32 of file statistics.h.

Referenced by HitrateMagicXattr::GetValue(), RxMagicXattr::GetValue(), SpeedMagicXattr::GetValue(), and PrintRatio().

Here is the caller graph for this function:

void perf::Counter::Inc ( )
inline

Definition at line 30 of file statistics.h.

Referenced by shrinkwrap::getNext(), shrinkwrap::handle_file(), perf::Inc(), shrinkwrap::MainWorker(), and shrinkwrap::Sync().

Here is the caller graph for this function:

std::string perf::Counter::Print ( )

Definition at line 25 of file statistics.cc.

Referenced by NDownloadMagicXattr::GetValue().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string perf::Counter::PrintK ( )

Definition at line 26 of file statistics.cc.

Here is the call graph for this function:

std::string perf::Counter::PrintKi ( )

Definition at line 27 of file statistics.cc.

Here is the call graph for this function:

std::string perf::Counter::PrintM ( )

Definition at line 28 of file statistics.cc.

Here is the call graph for this function:

std::string perf::Counter::PrintMi ( )

Definition at line 29 of file statistics.cc.

Here is the call graph for this function:

std::string perf::Counter::PrintRatio ( Counter  divider)

Definition at line 30 of file statistics.cc.

Here is the call graph for this function:

std::string perf::Counter::ToString ( )
int64_t perf::Counter::Xadd ( const int64_t  delta)
inline

Definition at line 34 of file statistics.h.

Referenced by shrinkwrap::copyFile(), shrinkwrap::getNext(), shrinkwrap::handle_file(), PosixGcMainWorker(), and perf::Xadd().

Here is the caller graph for this function:

Member Data Documentation

atomic_int64 perf::Counter::counter_
private

Definition at line 45 of file statistics.h.


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