Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Data Structures | Typedefs | Enumerations | Functions
measurements Namespace Reference

Data Structures

struct  CounterDataFrame
 
struct  CounterHint
 
class  MeasurementEngine
 
struct  MeasurementFrame
 
struct  MeasurementResults
 
struct  MeasurementXalloc
 
struct  MemoryDataFrame
 
struct  MemoryHint
 
class  stealth_allocator
 
struct  TimeDataFrame
 

Typedefs

using stealth_string = std::basic_string< char, std::char_traits< char >, stealth_allocator< char > >
 
template<typename T >
using stealth_vector = std::vector< T, stealth_allocator< T > >
 
template<class Key , class T , class Compare = std::less < Key >>
using stealth_map = std::map< Key, T, Compare, stealth_allocator< std::pair< const Key, T > > >
 

Enumerations

enum class  MeasurementFormat : long { LIST = 1 , TREE = 2 }
 
enum class  Type : unsigned {
  ROOT = 1 , OVERALL = 2 , INIT = 4 , FINALIZE = 8 ,
  MAIN = 16 , AUXILIARY = 32 , PREPROCESS = 64 , ALGORITHM = 128
}
 

Functions

template<typename T , typename U >
bool operator== (const stealth_allocator< T > &, const stealth_allocator< U > &)
 
template<typename T , typename U >
bool operator!= (const stealth_allocator< T > &, const stealth_allocator< U > &)
 
std::string to_string (const stealth_string &ss)
 
std::string to_string (stealth_string &ss)
 
stealth_string stealthStringFromString (const std::string &str)
 
std::ostream & operator<< (std::ostream &os, const CounterDataFrame &cdf)
 
std::ostream & operator<< (std::ostream &os, const MemoryDataFrame &mdf)
 
std::ostream & operator<< (std::ostream &os, const TimeDataFrame &tdf)
 
std::ostream & operator<< (std::ostream &os, const std::chrono::microseconds &ms)
 
std::ostream & operator<< (std::ostream &os, const MeasurementFrame &frame)
 
std::ostream & operator<< (std::ostream &os, const MeasurementResults &mr)
 
template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &x, MeasurementFormat f)
 
void start (measurements::stealth_string name, measurements::Type type)
 
void end ()
 
void reset ()
 
MeasurementResults results ()
 
template<typename Hint >
void hint (Hint hint)
 
template void hint< MemoryHint > (MemoryHint)
 
template void hint< CounterHint > (CounterHint)
 
void counterInc (const measurements::stealth_string &counterName, CounterHint::value_type val)
 
void counterDec (const measurements::stealth_string &counterName, CounterHint::value_type val)
 
std::string to_string (Type t)
 
Type measurementTypeFromString (const std::string &ts)
 
std::ostream & operator<< (std::ostream &os, Type t)
 

Typedef Documentation

◆ stealth_map

template<class Key , class T , class Compare = std::less < Key >>
using measurements::stealth_map = typedef std::map < Key, T, Compare, stealth_allocator < std::pair < const Key, T > > >

◆ stealth_string

using measurements::stealth_string = typedef std::basic_string < char, std::char_traits < char >, stealth_allocator < char > >

◆ stealth_vector

template<typename T >
using measurements::stealth_vector = typedef std::vector < T, stealth_allocator < T > >

Enumeration Type Documentation

◆ MeasurementFormat

enum class measurements::MeasurementFormat : long
strong
Enumerator
LIST 
TREE 

◆ Type

enum class measurements::Type : unsigned
strong
Enumerator
ROOT 
OVERALL 
INIT 
FINALIZE 
MAIN 
AUXILIARY 
PREPROCESS 
ALGORITHM 

Function Documentation

◆ counterDec()

void measurements::counterDec ( const measurements::stealth_string counterName,
CounterHint::value_type  val 
)
Here is the call graph for this function:

◆ counterInc()

void measurements::counterInc ( const measurements::stealth_string counterName,
CounterHint::value_type  val 
)
Here is the call graph for this function:

◆ end()

void measurements::end ( )
Here is the call graph for this function:

◆ hint()

template<typename Hint >
void measurements::hint ( Hint  hint)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hint< CounterHint >()

template void measurements::hint< CounterHint > ( CounterHint  )

◆ hint< MemoryHint >()

template void measurements::hint< MemoryHint > ( MemoryHint  )

◆ measurementTypeFromString()

Type measurements::measurementTypeFromString ( const std::string &  ts)

◆ operator!=()

template<typename T , typename U >
bool measurements::operator!= ( const stealth_allocator< T > &  ,
const stealth_allocator< U > &   
)

◆ operator<<() [1/8]

template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & measurements::operator<< ( std::basic_ostream< CharT, Traits > &  x,
MeasurementFormat  f 
)
inline

◆ operator<<() [2/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
const CounterDataFrame cdf 
)

◆ operator<<() [3/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
const MeasurementFrame frame 
)

◆ operator<<() [4/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
const MeasurementResults mr 
)
Here is the call graph for this function:

◆ operator<<() [5/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
const MemoryDataFrame mdf 
)

◆ operator<<() [6/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
const std::chrono::microseconds &  ms 
)

◆ operator<<() [7/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
const TimeDataFrame tdf 
)

◆ operator<<() [8/8]

std::ostream & measurements::operator<< ( std::ostream &  os,
Type  t 
)
Here is the call graph for this function:

◆ operator==()

template<typename T , typename U >
bool measurements::operator== ( const stealth_allocator< T > &  ,
const stealth_allocator< U > &   
)

◆ reset()

void measurements::reset ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ results()

MeasurementResults measurements::results ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

void measurements::start ( measurements::stealth_string  name,
measurements::Type  type 
)
Here is the call graph for this function:

◆ stealthStringFromString()

stealth_string measurements::stealthStringFromString ( const std::string &  str)
Here is the caller graph for this function:

◆ to_string() [1/3]

std::string measurements::to_string ( const stealth_string ss)
Here is the caller graph for this function:

◆ to_string() [2/3]

std::string measurements::to_string ( stealth_string ss)

◆ to_string() [3/3]

std::string measurements::to_string ( Type  t)