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

#include <statistics.h>

Public Member Functions

void Tick ()
void TickAt (uint64_t timestamp)
uint64_t GetNoTicks (uint32_t retrospect_s) const
void AddRecorder (uint32_t resolution_s, uint32_t capacity_s)

Private Attributes

std::vector< Recorderrecorders_

Detailed Description

Writes to multiple recorders. Recorders with coarsed-grained resolution and a large capacity are combined with precise recorders with shorter capacity. Preferred recorders should be added first because GetNoTicks will use the first recorder with a capacity >= retrospect_s (or the last recorder).

Definition at line 228 of file statistics.h.

Member Function Documentation

void perf::MultiRecorder::AddRecorder ( uint32_t  resolution_s,
uint32_t  capacity_s 

Definition at line 267 of file

Referenced by PosixQuotaManager::PosixQuotaManager().

Here is the caller graph for this function:

uint64_t perf::MultiRecorder::GetNoTicks ( uint32_t  retrospect_s) const

Definition at line 272 of file

Referenced by PosixQuotaManager::MainCommandServer().

Here is the caller graph for this function:

void perf::MultiRecorder::Tick ( )

Definition at line 285 of file

Here is the call graph for this function:

void perf::MultiRecorder::TickAt ( uint64_t  timestamp)

Definition at line 292 of file

Referenced by Tick().

Here is the caller graph for this function:

Member Data Documentation

std::vector<Recorder> perf::MultiRecorder::recorders_

Definition at line 237 of file statistics.h.

Referenced by AddRecorder(), GetNoTicks(), Tick(), and TickAt().

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