|
Sierra Toolkit
Version of the Day
|
Class Timer implements a diagnostic timer and timer container for the collection and display of execution times. More...
#include <Timer.hpp>
Classes | |
| struct | Metric |
Public Member Functions | |
| Timer (const std::string &name, const Timer parent) | |
| Timer (const std::string &name, const Timer parent, const TimerSet &timer_set) | |
| Timer (const std::string &name, TimerMask timer_mask, const Timer parent) | |
| Timer (const std::string &name, TimerMask timer_mask, const Timer parent, const TimerSet &timer_set) | |
| Timer (TimerImpl &timer_impl) | |
| Timer (TimerImpl *timer_impl) | |
| Timer (const Timer &timer) | |
| Timer & | operator= (const Timer &timer) |
| const TimerList & | getTimerList () const |
| TimerList::iterator | begin () |
| TimerList::const_iterator | begin () const |
| TimerList::iterator | end () |
| TimerList::const_iterator | end () const |
| const std::string & | getName () const |
| const TimerSet & | getTimerSet () const |
| TimerMask | getTimerMask () const |
| bool | shouldRecord () const |
| double | getSubtimerLapCount () const |
| template<class T > | |
| const Metric< T > & | getMetric () const |
| double | accumulateSubtimerLapCounts () const |
| Timer & | start () |
| Timer & | lap () |
| Timer & | stop () |
| void | checkpoint () const |
| Writer & | dump (Writer &dout) const |
Friends | |
| class | TimerImpl |
| class | TimeBlock |
| class | TimeBlockSynchronized |
| void | updateRootTimer (Timer) |
| Timer | createRootTimer (const std::string &, const TimerSet &) |
| void | deleteRootTimer (Timer) |
| std::vector< Timer > & | findTimers (Timer, const std::string &, std::vector< Timer > &) |
Member function findTimer return a vector of timers whose tail of the dot separated name from root_time to leaf matches the specified path_tail. | |
Class Timer implements a diagnostic timer and timer container for the collection and display of execution times.
| stk_classic::diag::Timer::Timer | ( | const std::string & | name, |
| const Timer | parent | ||
| ) |
| stk_classic::diag::Timer::Timer | ( | const std::string & | name, |
| const Timer | parent, | ||
| const TimerSet & | timer_set | ||
| ) |
| stk_classic::diag::Timer::Timer | ( | const std::string & | name, |
| TimerMask | timer_mask, | ||
| const Timer | parent | ||
| ) |
| stk_classic::diag::Timer::Timer | ( | const std::string & | name, |
| TimerMask | timer_mask, | ||
| const Timer | parent, | ||
| const TimerSet & | timer_set | ||
| ) |
Creates a new Timer instance.
| stk_classic::diag::Timer::Timer | ( | TimerImpl & | timer_impl | ) | [inline, explicit] |
| const std::string & stk_classic::diag::Timer::getName | ( | ) | const |
| const TimerSet & stk_classic::diag::Timer::getTimerSet | ( | ) | const |
| TimerMask stk_classic::diag::Timer::getTimerMask | ( | ) | const |
| double stk_classic::diag::Timer::getSubtimerLapCount | ( | ) | const |
| template const Timer::Metric< HeapAlloc > & stk_classic::diag::Timer::getMetric< HeapAlloc > | ( | ) | const |
| double stk_classic::diag::Timer::accumulateSubtimerLapCounts | ( | ) | const |
| void stk_classic::diag::Timer::checkpoint | ( | ) | const |
| Writer & stk_classic::diag::Timer::dump | ( | Writer & | dout | ) | const |
| void updateRootTimer | ( | Timer | ) | [friend] |
| Timer createRootTimer | ( | const std::string & | , |
| const TimerSet & | |||
| ) | [friend] |
Function createRootTimer creates a root timer. Root timers are the root of a timer hierarchy. The timer_set specifies the timer groupings for this root timer. The percentage of a child timer is the ratio of that timer the its root.
| name | a std::string const reference to the name of the new root timer. |
| timer_set | a TimerSet const reference of the timer set of the new root timer. |
| void deleteRootTimer | ( | Timer | ) | [friend] |
| std::vector<Timer>& findTimers | ( | Timer | , |
| const std::string & | , | ||
| std::vector< Timer > & | |||
| ) | [friend] |
Member function findTimer return a vector of timers whose tail of the dot separated name from root_time to leaf matches the specified path_tail.
| root_timer | a Timer value of the root to begin search. |
| path_tail | a std::string const reference to the dot separated tail to match. |
| found_timer | a std::vector<Timer> reference to the vector to store matching timers. |
std::vector<Timer> reference to found_timer.