20 #ifndef RIPPLE_OVERLAY_TXMETRICS_H_INCLUDED
21 #define RIPPLE_OVERLAY_TXMETRICS_H_INCLUDED
23 #include "ripple/json/json_value.h"
24 #include "ripple/protocol/messages.h"
26 #include <boost/circular_buffer.hpp>
MultipleMetrics transactions
MultipleMetrics getLedger
MultipleMetrics ledgerData
Json::Value json() const
Get json representation of the metrics.
Run transaction reduce-relay feature related metrics.
SingleMetrics selectedPeers
SingleMetrics suppressedPeers
void addMetrics(std::uint32_t val)
Add metrics value.
Run single metrics rolling average.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void addMetrics(protocol::MessageType type, std::uint32_t val)
Add protocol message metrics.
clock_type::time_point intervalStart
boost::circular_buffer< std::uint64_t > rollingAvgAggreg
SingleMetrics(bool ptu=true)
Class constructor.
void addMetrics(std::uint32_t val2)
Add metrics to m2.
MultipleMetrics(bool ptu1=true, bool ptu2=true)