|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
A nesting inclusive-timer. More...
#include <timer_map.hpp>
Public Member Functions | |
| TimerMap (std::string const &key) | |
| std::string const & | key () const noexcept |
| AccumulatingTimer & | timer () noexcept |
| AccumulatingTimer const & | timer () const noexcept |
| TimerMap & | scope (std::string const &key) |
| TimerMap const & | scope (std::string const &key) const |
| void | print (std::ostream &os) const |
Private Member Functions | |
| void | print_impl (std::ostream &os, unsigned width, unsigned indent) const |
Private Attributes | |
| std::string | m_key |
| AccumulatingTimer | m_timer |
| std::list< TimerMap > | m_subscopes |
A nesting inclusive-timer.
This is useful for timing subsections of an algorithm, for example. The timing information can be summarized in a visually structured format. The inclusive time is explicit, and the exclusive time is easily inferred by subtracting sub-timers' inclusive time from this inclusive time.
More documentation goes here.
Definition at line 51 of file timer_map.hpp.
|
inline |
Definition at line 93 of file timer_map.hpp.
|
inlinenoexcept |
| void lbann::TimerMap::print | ( | std::ostream & | os | ) | const |
|
private |
|
inline |
Definition at line 102 of file timer_map.hpp.
| TimerMap const& lbann::TimerMap::scope | ( | std::string const & | key | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 97 of file timer_map.hpp.
|
private |
Definition at line 69 of file timer_map.hpp.
|
private |
Definition at line 71 of file timer_map.hpp.
|
private |
Definition at line 70 of file timer_map.hpp.