Struct block_transporter_metrics_data
Defined in File block_transporter_metrics_data.hpp
Inheritance Relationships
Base Type
public rmetrics::base_data
Struct Documentation
-
struct block_transporter_metrics_data : public rmetrics::base_data
Public Functions
-
inline block_transporter_metrics_data &operator+=(const block_transporter_metrics_data &rhs)
Accumulate data. We ignore the “cum” field on
rhs
, and accumulate into our “cum” field using the “interval” field ofrhs
.This is the most meaningful semantics I could come up with; I couldn’t find a way to justify accumulating already cumulative data again (it would have required some additional changes/contortions elsewhere).
Public Members
-
block_transporter_metrics_data_impl cum = {}
-
block_transporter_metrics_data_impl interval = {}
-
inline block_transporter_metrics_data &operator+=(const block_transporter_metrics_data &rhs)