Kagome
Polkadot Runtime Engine in C++17
|
#include <metrics_impl.hpp>
Public Member Functions | |
PrometheusCounter (prometheus::Counter &m) | |
void | inc () override |
Increment the counter by 1. More... | |
void | inc (double val) override |
Public Member Functions inherited from kagome::metrics::Counter | |
virtual | ~Counter ()=default |
Private Attributes | |
prometheus::Counter & | m_ |
Friends | |
class | PrometheusRegistry |
Definition at line 19 of file metrics_impl.hpp.
kagome::metrics::PrometheusCounter::PrometheusCounter | ( | prometheus::Counter & | m | ) |
Definition at line 14 of file metrics_impl.cpp.
|
overridevirtual |
Increment the counter by 1.
Implements kagome::metrics::Counter.
Definition at line 16 of file metrics_impl.cpp.
|
overridevirtual |
The counter will not change if the given amount is negative.
Implements kagome::metrics::Counter.
Definition at line 20 of file metrics_impl.cpp.
|
friend |
Definition at line 20 of file metrics_impl.hpp.
|
private |
Definition at line 21 of file metrics_impl.hpp.