|
libmoost
|
#include <benchmark.hpp>
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 |
Definition at line 85 of file benchmark.hpp.
typedef std::map< std::string, std::vector<float> > moost::utils::benchmark::timings_type [private] |
Definition at line 88 of file benchmark.hpp.
| moost::utils::benchmark::benchmark | ( | const std::string & | name, |
| size_t | num_threads = 1 |
||
| ) | [inline] |
Definition at line 136 of file benchmark.hpp.
| void moost::utils::benchmark::add_timing | ( | const std::string & | timing, |
| float | time | ||
| ) | [inline] |
| 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] |
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.
const size_t moost::utils::benchmark::m_num_threads [private] |
Definition at line 180 of file benchmark.hpp.
Definition at line 178 of file benchmark.hpp.