|
MetroCollect
2.3.4
|
Class holding various statistics-related types and variables. More...
#include <Statistics.h>

Public Types | |
| enum | Stats : uint64_t { StatsMin = 1 << StatsIndexMin, StatsMax = 1 << StatsIndexMax, StatsAverage = 1 << StatsIndexAverage, StatsStdDev = 1 << StatsIndexStdDev, StatsNone = 0, StatsAll = StatsMin | StatsMax | StatsAverage | StatsStdDev } |
| Bitwise type te select statistics. More... | |
Static Public Member Functions | |
| static Stats | statsFromName (const std::string_view &statName) |
| Convert a stat name to a stat value. More... | |
| static Stats | statsRequiredForStat (Stats stat) |
| Returns the stats which are required to compute this stat. More... | |
Static Public Attributes | |
| static constexpr size_t | count = 4 |
| Number of available statistics. More... | |
| static constexpr std::array< std::string_view, count > | names = {"min"sv, "max"sv, "average"sv, "stdDev"sv} |
| Names of available statistics. More... | |
| static constexpr std::string_view | nameStatsAll = "*"sv |
| static constexpr std::array< Stats, count > | allStats = {StatsMin, StatsMax, StatsAverage, StatsStdDev} |
| Array of all available statistics. More... | |
Protected Types | |
| enum | StatsIndex : uint8_t { StatsIndexMin = 0, StatsIndexMax = 1, StatsIndexAverage = 2, StatsIndexStdDev = 3, StatsIndexIntermediateSum = 4, StatsIndexIntermediateSumSquared = 5 } |
| Associates a unique index to each statistic. More... | |
| enum | StatsDependency : uint64_t { StatsDependencyMin = StatsMin, StatsDependencyMax = StatsMax, StatsDependencyStdDev = StatsStdDev, StatsDependencyAverage = StatsAverage | StatsDependencyStdDev, StatsDependencySum = StatsDependencyAverage, StatsDependencySumSquared = StatsDependencyStdDev } |
| Dependency tree of each statistic. More... | |
Static Protected Attributes | |
| static constexpr size_t | extraCount = count + 2 |
| Number of statistics and intermediate values. More... | |
| static constexpr std::array< StatsDependency, extraCount > | StatsDependencies = {StatsDependencyMin, StatsDependencyMax, StatsDependencyAverage, StatsDependencyStdDev, StatsDependencySum, StatsDependencySumSquared} |
| Array of all statistics dependencies. More... | |
Private Attributes | |
| friend | MetricsController |
| MetricsController can access to protected types and variables. More... | |
Class holding various statistics-related types and variables.
Definition at line 35 of file Statistics.h.
| enum MetroCollect::Statistics::Stats : uint64_t |
Bitwise type te select statistics.
| Enumerator | |
|---|---|
| StatsMin | Minimum. |
| StatsMax | Maximum. |
| StatsAverage | Average. |
| StatsStdDev | Standard deviation. |
| StatsNone | No statistics selected. |
| StatsAll | All statistics selected. |
Definition at line 64 of file Statistics.h.
|
protected |
Dependency tree of each statistic.
| Enumerator | |
|---|---|
| StatsDependencyMin | Statistics which require to compute minimum. |
| StatsDependencyMax | Statistics which require to compute maximum. |
| StatsDependencyStdDev | Statistics which require to compute standard deviation. |
| StatsDependencyAverage | Statistics which require to compute average. |
| StatsDependencySum | Statistics which require to compute sum. |
| StatsDependencySumSquared | Statistics which require to compute sum of squares. |
Definition at line 84 of file Statistics.h.
|
protected |
Associates a unique index to each statistic.
There are two kinds of statistics:
Definition at line 45 of file Statistics.h.
|
static |
Convert a stat name to a stat value.
Definition at line 349 of file MetricsController.cc.

|
static |
Returns the stats which are required to compute this stat.
Definition at line 361 of file MetricsController.cc.

|
static |
Array of all available statistics.
Definition at line 73 of file Statistics.h.
|
static |
Number of available statistics.
Definition at line 57 of file Statistics.h.
|
staticprotected |
Number of statistics and intermediate values.
Definition at line 79 of file Statistics.h.
|
private |
MetricsController can access to protected types and variables.
Definition at line 36 of file Statistics.h.
|
static |
Names of available statistics.
Definition at line 58 of file Statistics.h.
|
static |
Definition at line 59 of file Statistics.h.
|
staticprotected |
Array of all statistics dependencies.
Definition at line 92 of file Statistics.h.