Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::runtime::StatManager Class Reference

#include <Statistics.h>

Inheritance diagram for galois::runtime::StatManager:
galois::runtime::DistStatManager

Public Types

using Str = galois::gstl::Str
 

Public Member Functions

 StatManager (const std::string &outfile="")
 
virtual ~StatManager ()
 
void setStatFile (const std::string &outfile)
 
template<typename S1 , typename S2 , typename T , typename = std::enable_if_t<std::is_integral<T>::value || std::is_floating_point<T>::value>>
void addToStat (const S1 &region, const S2 &category, const T &val, const StatTotal::Type &type)
 
template<typename S1 , typename S2 , typename V >
void addToParam (const S1 &region, const S2 &category, const V &val)
 
void print (void)
 

Static Public Member Functions

static bool printingThreadVals (void)
 
template<typename T >
static constexpr const char * statKind (void)
 

Static Public Attributes

static constexpr const char *const SEP = ", "
 
static constexpr const char *const TSTAT_SEP = "; "
 
static constexpr const char *const TSTAT_NAME = "ThreadValues"
 
static constexpr const char *const TSTAT_ENV_VAR = "PRINT_PER_THREAD_STATS"
 

Protected Member Functions

void mergeStats (void)
 
int_iterator intBegin (void) const
 
int_iterator intEnd (void) const
 
fp_iterator fpBegin (void) const
 
fp_iterator fpEnd (void) const
 
str_iterator paramBegin (void) const
 
str_iterator paramEnd (void) const
 
template<typename S , typename V >
void readIntStat (const int_iterator &i, S &region, S &category, int64_t &total, StatTotal::Type &type, V &vec) const
 
template<typename S , typename V >
void readFPstat (const fp_iterator &i, S &region, S &category, double &total, StatTotal::Type &type, V &vec) const
 
template<typename S , typename V >
void readParam (const str_iterator &i, S &region, S &category, Str &total, StatTotal::Type &type, V &vec) const
 
virtual void printStats (std::ostream &out)
 
void printHeader (std::ostream &out) const
 

Member Typedef Documentation

Constructor & Destructor Documentation

StatManager::StatManager ( const std::string &  outfile = "")
explicit
StatManager::~StatManager ( void  )
virtual

Member Function Documentation

template<typename S1 , typename S2 , typename V >
void galois::runtime::StatManager::addToParam ( const S1 &  region,
const S2 &  category,
const V &  val 
)
inline
template<typename S1 , typename S2 , typename T , typename = std::enable_if_t<std::is_integral<T>::value || std::is_floating_point<T>::value>>
void galois::runtime::StatManager::addToStat ( const S1 &  region,
const S2 &  category,
const T &  val,
const StatTotal::Type type 
)
inline
StatManager::fp_iterator StatManager::fpBegin ( void  ) const
protected
StatManager::fp_iterator StatManager::fpEnd ( void  ) const
protected
StatManager::int_iterator StatManager::intBegin ( void  ) const
protected
StatManager::int_iterator StatManager::intEnd ( void  ) const
protected
void galois::runtime::StatManager::mergeStats ( void  )
inlineprotected
StatManager::str_iterator StatManager::paramBegin ( void  ) const
protected
StatManager::str_iterator StatManager::paramEnd ( void  ) const
protected
void StatManager::print ( void  )
void StatManager::printHeader ( std::ostream &  out) const
protected
bool StatManager::printingThreadVals ( void  )
static
void StatManager::printStats ( std::ostream &  out)
protectedvirtual
template<typename S , typename V >
void galois::runtime::StatManager::readFPstat ( const fp_iterator &  i,
S &  region,
S &  category,
double &  total,
StatTotal::Type type,
V &  vec 
) const
inlineprotected
template<typename S , typename V >
void galois::runtime::StatManager::readIntStat ( const int_iterator &  i,
S &  region,
S &  category,
int64_t &  total,
StatTotal::Type type,
V &  vec 
) const
inlineprotected
template<typename S , typename V >
void galois::runtime::StatManager::readParam ( const str_iterator &  i,
S &  region,
S &  category,
Str total,
StatTotal::Type type,
V &  vec 
) const
inlineprotected
void StatManager::setStatFile ( const std::string &  outfile)
template<typename T >
static constexpr const char* galois::runtime::StatManager::statKind ( void  )
inlinestatic

Member Data Documentation

constexpr const char* const galois::runtime::StatManager::SEP = ", "
static
constexpr const char* const galois::runtime::StatManager::TSTAT_ENV_VAR = "PRINT_PER_THREAD_STATS"
static
constexpr const char* const galois::runtime::StatManager::TSTAT_NAME = "ThreadValues"
static
constexpr const char* const galois::runtime::StatManager::TSTAT_SEP = "; "
static

The documentation for this class was generated from the following files: