#include <Metric.h>

Public Member Functions | |
Constructors & destructor | |
| Metric (ident_t id, const std::string &name, const std::string &description, const std::string &type, const std::string &mode, const std::string &interval) | |
Get metric information | |
| std::string | get_description () const |
| std::string | get_type () const |
| std::string | get_mode () const |
| std::string | get_interval () const |
The numerical identifiers of the individual metrics are globally defined and continuously enumerated, i.e., the ID is element of [0,#metrics-1].
| Metric | ( | ident_t | id, | |
| const std::string & | name, | |||
| const std::string & | description, | |||
| const std::string & | type, | |||
| const std::string & | mode, | |||
| const std::string & | interval | |||
| ) |
Creates a new instance and initializes the data with the given values.
| id | Metric identifier | |
| name | Metric name | |
| description | Description text of the performance metric | |
| type | Metric type, either "INTEGER" or "FLOAT" | |
| mode | Metric mode, either "COUNTER", "RATE", or "SAMPLE" | |
| interval | Measurement interval semantics, either "START", "LAST", "NEXT", or "NONE" |
| FatalError | if one of the parameters type, mode, or interval contains an invalid value |
| string get_description | ( | ) | const |
Returns the description text given for this performance metric.
| string get_interval | ( | ) | const |
Returns the measurement interval semantics, which is either "START", "LAST", "NEXT", or "NONE".
| string get_mode | ( | ) | const |
Returns the metric mode, which is either "COUNTER", "RATE", or "SAMPLE".
| string get_type | ( | ) | const |
Returns the metric type, which is either "INTEGER" or "FLOAT".
![]() |
Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre |