![]() |
Parasol Planning Library (PPL)
|
#include <MetricUtils.h>
Public Member Functions | |
StatClass () | |
void | ClearStats () |
int | IncNumCollDetCalls (const std::string &_cdName, const std::string &_callName) |
size_t | GetIsCollTotal () |
void | IncCfgIsColl (const std::string &_callName) |
int | IncLPConnections (const std::string &_lpName, int _incr=1) |
int | IncLPAttempts (const std::string &_lpName, int _incr=1) |
int | IncLPCollDetCalls (const std::string &_lpName, int _incr=1) |
void | IncNodesGenerated (const std::string &_samplerName, size_t _incr=1) |
void | IncNodesAttempted (const std::string &_samplerName, size_t _incr=1) |
void | ClearClock (const std::string &_name) |
void | StartClock (const std::string &_name) |
void | StopClock (const std::string &_name) |
void | StopPrintClock (const std::string &_name, std::ostream &_os) |
void | PrintClock (const std::string &_name, std::ostream &_os) |
double | GetSeconds (const std::string &_name) |
int | GetUSeconds (const std::string &_name) |
double | GetStat (const std::string &_s) |
void | SetStat (const std::string &_s, const double _v) |
void | IncStat (const std::string &_s, const double _v=1) |
Average< double > & | GetAverage (const std::string &_s) |
std::vector< double > & | GetHistory (const std::string &_s) |
void | AddToHistory (const std::string &_s, double _v) |
void | WriteHistory (const std::string &_s) |
void | SetAuxDest (const std::string &_s) |
void | PrintAllStats (std::ostream &_os) |
template<typename RoadmapType > | |
void | PrintAllStats (std::ostream &_os, RoadmapType *_rmap=nullptr) |
template<class GraphType > | |
void | DisplayCCStats (std::ostream &_os, GraphType &) |
Data Fields | |
std::map< std::string, std::tuple< size_t, size_t, size_t > > | m_lpInfo |
std::map< std::string, size_t > | m_collDetCountByName |
std::map< std::string, ClockClass > | m_clockMap |
std::map< std::string, size_t > | m_isCollByName |
size_t | m_isCollTotal |
std::map< std::string, std::pair< size_t, size_t > > | m_samplerInfo |
The StatClass is a storage hub of all statistics to be tracked in PMPL, including but not limited to timing, success/fail attempts, collision detection calls.
StatClass::StatClass | ( | ) |
void StatClass::AddToHistory | ( | const std::string & | _s, |
double | _v | ||
) |
void StatClass::ClearClock | ( | const std::string & | _name | ) |
void StatClass::ClearStats | ( | ) |
void StatClass::DisplayCCStats | ( | std::ostream & | _os, |
GraphType & | _g | ||
) |
Average< double > & StatClass::GetAverage | ( | const std::string & | _s | ) |
std::vector< double > & StatClass::GetHistory | ( | const std::string & | _s | ) |
size_t StatClass::GetIsCollTotal | ( | ) |
double StatClass::GetSeconds | ( | const std::string & | _name | ) |
double StatClass::GetStat | ( | const std::string & | _s | ) |
int StatClass::GetUSeconds | ( | const std::string & | _name | ) |
void StatClass::IncCfgIsColl | ( | const std::string & | _callName | ) |
int StatClass::IncLPAttempts | ( | const std::string & | _lpName, |
int | _incr = 1 |
||
) |
int StatClass::IncLPCollDetCalls | ( | const std::string & | _lpName, |
int | _incr = 1 |
||
) |
int StatClass::IncLPConnections | ( | const std::string & | _lpName, |
int | _incr = 1 |
||
) |
void StatClass::IncNodesAttempted | ( | const std::string & | _samplerName, |
size_t | _incr = 1 |
||
) |
void StatClass::IncNodesGenerated | ( | const std::string & | _samplerName, |
size_t | _incr = 1 |
||
) |
int StatClass::IncNumCollDetCalls | ( | const std::string & | _cdName, |
const std::string & | _callName | ||
) |
void StatClass::IncStat | ( | const std::string & | _s, |
const double | _v = 1 |
||
) |
void StatClass::PrintAllStats | ( | std::ostream & | _os | ) |
void StatClass::PrintAllStats | ( | std::ostream & | _os, |
RoadmapType * | _rmap = nullptr |
||
) |
void StatClass::PrintClock | ( | const std::string & | _name, |
std::ostream & | _os | ||
) |
void StatClass::SetAuxDest | ( | const std::string & | _s | ) |
void StatClass::SetStat | ( | const std::string & | _s, |
const double | _v | ||
) |
void StatClass::StartClock | ( | const std::string & | _name | ) |
void StatClass::StopClock | ( | const std::string & | _name | ) |
void StatClass::StopPrintClock | ( | const std::string & | _name, |
std::ostream & | _os | ||
) |
void StatClass::WriteHistory | ( | const std::string & | _s | ) |
std::map<std::string, ClockClass> StatClass::m_clockMap |
std::map<std::string, size_t> StatClass::m_collDetCountByName |
std::map<std::string, size_t> StatClass::m_isCollByName |
IsColl simply counts the number of times a Cfg is tested for Collision.
size_t StatClass::m_isCollTotal |
std::map<std::string, std::tuple<size_t, size_t, size_t> > StatClass::m_lpInfo |
std::map<std::string, std::pair<size_t, size_t> > StatClass::m_samplerInfo |