libmoost
moost::utils::benchmark Class Reference

#include <benchmark.hpp>

List of all members.

Classes

class  timer

Public Member Functions

 benchmark (const std::string &name, size_t num_threads=1)
void add_timing (const std::string &timing, float time)
void output (std::ostream &os, size_t bins=120, size_t height=25, float offset=0.0f, float hi_cut=0.02f) const

Private Types

typedef std::map< std::string,
std::vector< float > > 
timings_type

Private Attributes

boost::mutex m_mutex
timings_type m_timings
const std::string m_name
const size_t m_num_threads

Detailed Description

Definition at line 85 of file benchmark.hpp.


Member Typedef Documentation

typedef std::map< std::string, std::vector<float> > moost::utils::benchmark::timings_type [private]

Definition at line 88 of file benchmark.hpp.


Constructor & Destructor Documentation

moost::utils::benchmark::benchmark ( const std::string &  name,
size_t  num_threads = 1 
) [inline]

Definition at line 136 of file benchmark.hpp.


Member Function Documentation

void moost::utils::benchmark::add_timing ( const std::string &  timing,
float  time 
) [inline]

Definition at line 142 of file benchmark.hpp.

Here is the caller graph for this function:

void moost::utils::benchmark::output ( std::ostream &  os,
size_t  bins = 120,
size_t  height = 25,
float  offset = 0.0f,
float  hi_cut = 0.02f 
) const [inline]

Definition at line 148 of file benchmark.hpp.

Here is the call graph for this function:


Member Data Documentation

boost::mutex moost::utils::benchmark::m_mutex [mutable, private]

Definition at line 177 of file benchmark.hpp.

const std::string moost::utils::benchmark::m_name [private]

Definition at line 179 of file benchmark.hpp.

Definition at line 180 of file benchmark.hpp.

Definition at line 178 of file benchmark.hpp.


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