|
xrpld
|
Tracks the submission -> accepted -> validated evolution of transactions. More...
#include <collectors.h>

Classes | |
| struct | Tracker |
Public Types | |
| using | Hist = Histogram<SimTime::duration> |
Public Member Functions | |
| template<class E> | |
| void | on (PeerID, SimTime when, E const &e) |
| void | on (PeerID who, SimTime when, SubmitTx const &e) |
| void | on (PeerID who, SimTime when, AcceptLedger const &e) |
| void | on (PeerID who, SimTime when, FullyValidateLedger const &e) |
| std::size_t | orphaned () const |
| std::size_t | unvalidated () const |
| template<class T> | |
| void | report (SimDuration simDuration, T &log, bool printBreakline=false) |
| template<class T, class Tag> | |
| void | csv (SimDuration simDuration, T &log, Tag const &tag, bool printHeaders=false) |
Public Attributes | |
| std::size_t | submitted {0} |
| std::size_t | accepted {0} |
| std::size_t | validated {0} |
| hash_map< Tx::ID, Tracker > | txs |
| Hist | submitToAccept |
| Hist | submitToValidate |
Tracks the submission -> accepted -> validated evolution of transactions.
This collector tracks transactions through the network by monitoring the first time the transaction is seen by any node in the network, or seen by any node's accepted or fully validated ledger.
If transactions submitted to the network do not have unique IDs, this collector will not track subsequent submissions.
Definition at line 170 of file collectors.h.
| using xrpl::test::csf::TxCollector::Hist = Histogram<SimTime::duration> |
Definition at line 191 of file collectors.h.
Definition at line 198 of file collectors.h.
Definition at line 203 of file collectors.h.
| void xrpl::test::csf::TxCollector::on | ( | PeerID | who, |
| SimTime | when, | ||
| AcceptLedger const & | e ) |
Definition at line 213 of file collectors.h.
| void xrpl::test::csf::TxCollector::on | ( | PeerID | who, |
| SimTime | when, | ||
| FullyValidateLedger const & | e ) |
Definition at line 230 of file collectors.h.
|
nodiscard |
Definition at line 250 of file collectors.h.
|
nodiscard |
Definition at line 258 of file collectors.h.
| void xrpl::test::csf::TxCollector::report | ( | SimDuration | simDuration, |
| T & | log, | ||
| bool | printBreakline = false ) |
Definition at line 266 of file collectors.h.
| void xrpl::test::csf::TxCollector::csv | ( | SimDuration | simDuration, |
| T & | log, | ||
| Tag const & | tag, | ||
| bool | printHeaders = false ) |
Definition at line 325 of file collectors.h.
| std::size_t xrpl::test::csf::TxCollector::submitted {0} |
Definition at line 173 of file collectors.h.
| std::size_t xrpl::test::csf::TxCollector::accepted {0} |
Definition at line 174 of file collectors.h.
| std::size_t xrpl::test::csf::TxCollector::validated {0} |
Definition at line 175 of file collectors.h.
Definition at line 189 of file collectors.h.
| Hist xrpl::test::csf::TxCollector::submitToAccept |
Definition at line 192 of file collectors.h.
| Hist xrpl::test::csf::TxCollector::submitToValidate |
Definition at line 193 of file collectors.h.