#include <metrics.hpp>
Public Member Functions | |
| metrics (std::string _name="", std::string _id="") | |
| void | clear () |
| std::string | iterkey (std::string key, int iter) |
| void | add (std::string key, double value, metrictype type=REAL) |
| void | add_to_vector (std::string key, double value) |
| void | add_vector_entry (std::string key, size_t idx, double value) |
| void | set (std::string key, size_t value) |
| void | set (std::string key, int value) |
| void | set (std::string key, double value, metrictype type=REAL) |
| void | set_integer (std::string key, size_t value) |
| void | set (std::string key, std::string s) |
| void | set_vector_entry_integer (std::string key, size_t idx, size_t value) |
| void | set_vector_entry (std::string key, size_t idx, double value) |
| void | start_time (std::string key) |
| metrics_entry | start_time () |
| void | stop_time (metrics_entry me, std::string key, bool show=false) |
| void | stop_time (metrics_entry me, std::string key, int iternum, bool show=false) |
| void | stop_time (std::string key, bool show=false) |
| metrics_entry | get (std::string key) |
| void | report (imetrics_reporter &reporter) |
Metrics instance for logging metrics of a single object type. Name of the metrics instance is set on construction.
|
inline |
Add to an existing value or create new.
1.8.1.1