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

#include <statistics.h>

Collaboration diagram for perf::StatisticsTemplate:

Public Member Functions

 StatisticsTemplate (const std::string &name_major, Statistics *statistics)
 
 StatisticsTemplate (const std::string &name_sub, const StatisticsTemplate &statistics)
 
CounterRegisterTemplated (const std::string &name_minor, const std::string &desc)
 
CounterRegisterOrLookupTemplated (const std::string &name_minor, const std::string &desc)
 
Statisticsstatistics ()
 

Private Attributes

std::string name_major_
 
Statisticsstatistics_
 

Detailed Description

Allows multiple instance of the same class to use the same Statistics instance. The "name_major" part is used to construct counter names in the form name_major.<provided name>="">

Definition at line 100 of file statistics.h.

Constructor & Destructor Documentation

perf::StatisticsTemplate::StatisticsTemplate ( const std::string &  name_major,
Statistics statistics 
)
inline

Definition at line 102 of file statistics.h.

perf::StatisticsTemplate::StatisticsTemplate ( const std::string &  name_sub,
const StatisticsTemplate statistics 
)
inline

Definition at line 105 of file statistics.h.

Member Function Documentation

Counter* perf::StatisticsTemplate::RegisterOrLookupTemplated ( const std::string &  name_minor,
const std::string &  desc 
)
inline

Definition at line 117 of file statistics.h.

Referenced by upload::UploadCounters::UploadCounters().

Here is the call graph for this function:

Here is the caller graph for this function:

Counter* perf::StatisticsTemplate::RegisterTemplated ( const std::string &  name_minor,
const std::string &  desc 
)
inline

Definition at line 111 of file statistics.h.

Referenced by download::Counters::Counters(), RamCacheManager::Counters::Counters(), lru::Counters::Counters(), MemoryKvStore::Counters::Counters(), cvmfs::Fetcher::Fetcher(), and perf::FsCounters::FsCounters().

Here is the call graph for this function:

Here is the caller graph for this function:

Statistics* perf::StatisticsTemplate::statistics ( )
inline

Definition at line 127 of file statistics.h.

Member Data Documentation

std::string perf::StatisticsTemplate::name_major_
private

Definition at line 130 of file statistics.h.

Statistics* perf::StatisticsTemplate::statistics_
private

Definition at line 131 of file statistics.h.


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