xrpld
Loading...
Searching...
No Matches
xrpl::path::detail::FlowDebugInfo Struct Reference

#include <FlowDebugInfo.h>

Collaboration diagram for xrpl::path::detail::FlowDebugInfo:

Classes

struct  PassInfo

Public Types

using clock = std::chrono::high_resolution_clock
using time_point = clock::time_point

Public Member Functions

 FlowDebugInfo ()=delete
 FlowDebugInfo (bool nativeIn, bool nativeOut)
auto duration (std::string const &tag) const
std::size_t count (std::string const &tag) const
auto timeBlock (std::string name)
void inc (std::string const &tag)
void setCount (std::string const &tag, std::size_t c)
std::size_t passCount () const
void pushPass (EitherAmount const &in, EitherAmount const &out, std::size_t activeStrands)
void pushLiquiditySrc (EitherAmount const &in, EitherAmount const &out)
void newLiquidityPass ()
std::string toString (bool writePassInfo) const

Public Attributes

boost::container::flat_map< std::string, std::pair< time_point, time_point > > timePoints
boost::container::flat_map< std::string, std::size_tcounts
PassInfo passInfo

Detailed Description

Definition at line 15 of file FlowDebugInfo.h.

Member Typedef Documentation

◆ clock

◆ time_point

Definition at line 18 of file FlowDebugInfo.h.

Constructor & Destructor Documentation

◆ FlowDebugInfo() [1/2]

xrpl::path::detail::FlowDebugInfo::FlowDebugInfo ( )
delete

◆ FlowDebugInfo() [2/2]

xrpl::path::detail::FlowDebugInfo::FlowDebugInfo ( bool nativeIn,
bool nativeOut )

Definition at line 87 of file FlowDebugInfo.h.

Member Function Documentation

◆ duration()

auto xrpl::path::detail::FlowDebugInfo::duration ( std::string const & tag) const
nodiscard

Definition at line 95 of file FlowDebugInfo.h.

◆ count()

std::size_t xrpl::path::detail::FlowDebugInfo::count ( std::string const & tag) const
nodiscard

Definition at line 112 of file FlowDebugInfo.h.

◆ timeBlock()

auto xrpl::path::detail::FlowDebugInfo::timeBlock ( std::string name)

Definition at line 122 of file FlowDebugInfo.h.

◆ inc()

void xrpl::path::detail::FlowDebugInfo::inc ( std::string const & tag)

Definition at line 144 of file FlowDebugInfo.h.

◆ setCount()

void xrpl::path::detail::FlowDebugInfo::setCount ( std::string const & tag,
std::size_t c )

Definition at line 155 of file FlowDebugInfo.h.

◆ passCount()

std::size_t xrpl::path::detail::FlowDebugInfo::passCount ( ) const
nodiscard

Definition at line 161 of file FlowDebugInfo.h.

◆ pushPass()

void xrpl::path::detail::FlowDebugInfo::pushPass ( EitherAmount const & in,
EitherAmount const & out,
std::size_t activeStrands )

Definition at line 167 of file FlowDebugInfo.h.

◆ pushLiquiditySrc()

void xrpl::path::detail::FlowDebugInfo::pushLiquiditySrc ( EitherAmount const & in,
EitherAmount const & out )

Definition at line 173 of file FlowDebugInfo.h.

◆ newLiquidityPass()

void xrpl::path::detail::FlowDebugInfo::newLiquidityPass ( )

Definition at line 179 of file FlowDebugInfo.h.

◆ toString()

std::string xrpl::path::detail::FlowDebugInfo::toString ( bool writePassInfo) const
nodiscard

Definition at line 185 of file FlowDebugInfo.h.

Member Data Documentation

◆ timePoints

boost::container::flat_map<std::string, std::pair<time_point, time_point> > xrpl::path::detail::FlowDebugInfo::timePoints

Definition at line 19 of file FlowDebugInfo.h.

◆ counts

boost::container::flat_map<std::string, std::size_t> xrpl::path::detail::FlowDebugInfo::counts

Definition at line 20 of file FlowDebugInfo.h.

◆ passInfo

PassInfo xrpl::path::detail::FlowDebugInfo::passInfo

Definition at line 84 of file FlowDebugInfo.h.