ACE 8.0.1
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ACE_Profile_Timer Class Reference

This class provides both a timing mechanism and a mechanism for reporting the resource usage of a process. More...

#include <Profile_Timer.h>

Collaboration diagram for ACE_Profile_Timer:
Collaboration graph
[legend]

Classes

class  ACE_Elapsed_Time
 Keeps track of the various user, system, and elapsed (real) times. More...
 

Public Types

typedef ACE_Rusage Rusage
 

Public Member Functions

 ACE_Profile_Timer ()
 Default constructor. Clears all time values to 0.
 
 ~ACE_Profile_Timer ()
 Shutdown the timer.
 
int start ()
 Activate the timer.
 
int stop ()
 Stop the timer.
 
int elapsed_time (ACE_Elapsed_Time &et)
 Compute the time elapsed between calls to start() and stop().
 
void elapsed_rusage (ACE_Profile_Timer::Rusage &rusage)
 
void get_rusage (ACE_Profile_Timer::Rusage &rusage)
 Return the resource utilization (don't recompute it).
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Private Member Functions

void compute_times (ACE_Elapsed_Time &et)
 Compute how much time has elapsed.
 

Private Attributes

ACE_Profile_Timer::Rusage begin_usage_
 Keep track of the starting resource utilization.
 
ACE_Profile_Timer::Rusage end_usage_
 Keep track of the ending resource utilization.
 
ACE_Profile_Timer::Rusage last_usage_
 Keep track of the last rusage for incremental timing.
 
ACE_High_Res_Timer timer_
 The high resolution timer.
 

Detailed Description

This class provides both a timing mechanism and a mechanism for reporting the resource usage of a process.

Member Typedef Documentation

◆ Rusage

Constructor & Destructor Documentation

◆ ACE_Profile_Timer()

ACE_Profile_Timer::ACE_Profile_Timer ( )

Default constructor. Clears all time values to 0.

◆ ~ACE_Profile_Timer()

ACE_Profile_Timer::~ACE_Profile_Timer ( )
inline

Shutdown the timer.

Member Function Documentation

◆ compute_times()

void ACE_Profile_Timer::compute_times ( ACE_Elapsed_Time & et)
private

Compute how much time has elapsed.

◆ dump()

void ACE_Profile_Timer::dump ( ) const

Dump the state of an object.

◆ elapsed_rusage()

void ACE_Profile_Timer::elapsed_rusage ( ACE_Profile_Timer::Rusage & rusage)

Compute the amount of resource utilization between calls to start() and stop().

◆ elapsed_time()

int ACE_Profile_Timer::elapsed_time ( ACE_Elapsed_Time & et)

Compute the time elapsed between calls to start() and stop().

◆ get_rusage()

void ACE_Profile_Timer::get_rusage ( ACE_Profile_Timer::Rusage & rusage)

Return the resource utilization (don't recompute it).

◆ start()

int ACE_Profile_Timer::start ( )
inline

Activate the timer.

◆ stop()

int ACE_Profile_Timer::stop ( )
inline

Stop the timer.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Profile_Timer::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ begin_usage_

ACE_Profile_Timer::Rusage ACE_Profile_Timer::begin_usage_
private

Keep track of the starting resource utilization.

◆ end_usage_

ACE_Profile_Timer::Rusage ACE_Profile_Timer::end_usage_
private

Keep track of the ending resource utilization.

◆ last_usage_

ACE_Profile_Timer::Rusage ACE_Profile_Timer::last_usage_
private

Keep track of the last rusage for incremental timing.

◆ timer_

ACE_High_Res_Timer ACE_Profile_Timer::timer_
private

The high resolution timer.


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