rippled
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ripple::path::detail::FlowDebugInfo Struct Reference
Collaboration diagram for ripple::path::detail::FlowDebugInfo:
Collaboration graph
[legend]

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 to_string (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 38 of file FlowDebugInfo.h.

Member Typedef Documentation

◆ clock

Definition at line 40 of file FlowDebugInfo.h.

◆ time_point

Definition at line 41 of file FlowDebugInfo.h.

Constructor & Destructor Documentation

◆ FlowDebugInfo() [1/2]

ripple::path::detail::FlowDebugInfo::FlowDebugInfo ( )
delete

◆ FlowDebugInfo() [2/2]

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

Definition at line 112 of file FlowDebugInfo.h.

Member Function Documentation

◆ duration()

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

Definition at line 120 of file FlowDebugInfo.h.

◆ count()

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

Definition at line 134 of file FlowDebugInfo.h.

◆ timeBlock()

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

Definition at line 144 of file FlowDebugInfo.h.

◆ inc()

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

Definition at line 167 of file FlowDebugInfo.h.

◆ setCount()

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

Definition at line 178 of file FlowDebugInfo.h.

◆ passCount()

std::size_t ripple::path::detail::FlowDebugInfo::passCount ( ) const

Definition at line 184 of file FlowDebugInfo.h.

◆ pushPass()

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

Definition at line 190 of file FlowDebugInfo.h.

◆ pushLiquiditySrc()

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

Definition at line 199 of file FlowDebugInfo.h.

◆ newLiquidityPass()

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

Definition at line 205 of file FlowDebugInfo.h.

◆ to_string()

std::string ripple::path::detail::FlowDebugInfo::to_string ( bool  writePassInfo) const

Definition at line 211 of file FlowDebugInfo.h.

Member Data Documentation

◆ timePoints

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

Definition at line 43 of file FlowDebugInfo.h.

◆ counts

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

Definition at line 44 of file FlowDebugInfo.h.

◆ passInfo

PassInfo ripple::path::detail::FlowDebugInfo::passInfo

Definition at line 109 of file FlowDebugInfo.h.