

Public Member Functions | |
| Profiler () | |
| void | reset () |
| void | start () |
| void | stop () |
| void | fullDescription (String msg) |
| void | addData (String key, String value) |
Static Public Member Functions | |
| static void | main (String[] args) |
Private Attributes | |
| long | m_totalTime |
| long | m_minDuration |
| long | m_maxDuration |
| long | m_totalNumStarts |
| String | m_extraDescrip |
Class that facilitates runtime profiling.
| alma::acs::time::Profiler::Profiler | ( | ) | [inline] |
| void alma::acs::time::Profiler::addData | ( | String | key, | |
| String | value | |||
| ) | [inline] |
| void alma::acs::time::Profiler::fullDescription | ( | String | msg | ) | [inline] |
Prints out a full description of all times that were saved along with other relevant statistical data.
| msg | A message to be printed out with the data. |
References m_extraDescrip, m_maxDuration, m_minDuration, m_totalNumStarts, and m_totalTime.
Referenced by main().
| static void alma::acs::time::Profiler::main | ( | String[] | args | ) | [inline, static] |
For testing purposes only!
References addData(), fullDescription(), Profiler(), reset(), start(), and stop().
| void alma::acs::time::Profiler::reset | ( | ) | [inline] |
Resets this objects values.
Reimplemented from alma::acs::util::StopWatch.
References m_extraDescrip, m_maxDuration, m_minDuration, m_totalNumStarts, and m_totalTime.
Referenced by main(), and Profiler().
| void alma::acs::time::Profiler::start | ( | ) | [inline] |
Starts a timing operation.
Referenced by main().
| void alma::acs::time::Profiler::stop | ( | ) | [inline] |
Stops a timing operation. Should only be called after a start invocation.
References m_maxDuration, m_minDuration, m_totalNumStarts, and m_totalTime.
Referenced by main().
String alma::acs::time::Profiler::m_extraDescrip [private] |
Referenced by addData(), fullDescription(), and reset().
long alma::acs::time::Profiler::m_maxDuration [private] |
Referenced by fullDescription(), reset(), and stop().
long alma::acs::time::Profiler::m_minDuration [private] |
Referenced by fullDescription(), reset(), and stop().
long alma::acs::time::Profiler::m_totalNumStarts [private] |
Referenced by fullDescription(), reset(), and stop().
long alma::acs::time::Profiler::m_totalTime [private] |
Referenced by fullDescription(), reset(), and stop().
1.6.2