alma::acs::time::Profiler Class Reference

Inheritance diagram for alma::acs::time::Profiler:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::time::Profiler:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Class that facilitates runtime profiling.

Author:
dfugate September 29, 2004

Constructor & Destructor Documentation

alma::acs::time::Profiler::Profiler (  )  [inline]

Standard constructor.

References reset().

Referenced by main().


Member Function Documentation

void alma::acs::time::Profiler::addData ( String  key,
String  value 
) [inline]

Adds data to description output

References m_extraDescrip.

Referenced by main().

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.

Parameters:
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().


Member Data Documentation

Referenced by addData(), fullDescription(), and reset().

Referenced by fullDescription(), reset(), and stop().

Referenced by fullDescription(), reset(), and stop().

Referenced by fullDescription(), reset(), and stop().

Referenced by fullDescription(), reset(), and stop().


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

Generated by  doxygen 1.6.2