This class provides both a timing mechanism and a mechanism for reporting the resource usage of a process. More...
#include <Profile_Timer.h>

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 (void) | |
| Default constructor. Clears all time values to 0. | |
| ~ACE_Profile_Timer (void) | |
| Shutdown the timer. | |
| int | start (void) |
| Activate the timer. | |
| int | stop (void) |
| 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 (void) 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. | |
| void | subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1) |
| Substract two timestructs and store their difference. | |
| void | subtract (timeval &tdiff, timeval &t0, timeval &t1) |
| Substract two timestructs and store their difference. | |
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_HANDLE | proc_handle_ |
| I/O handle for /proc file system. | |
| timeval | begin_time_ |
| Keep track of the beginning time. | |
| timeval | end_time_ |
| Keep track of the ending time. | |
| timeval | last_time_ |
| Keep track of the last time for incremental timing. | |
| ACE_High_Res_Timer | timer_ |
| The high resolution timer. | |
This class provides both a timing mechanism and a mechanism for reporting the resource usage of a process.
| typedef ACE_Rusage ACE_Profile_Timer::Rusage |
| ACE_Profile_Timer::ACE_Profile_Timer | ( | void | ) |
Default constructor. Clears all time values to 0.
| ACE_Profile_Timer::~ACE_Profile_Timer | ( | void | ) |
Shutdown the timer.
| void ACE_Profile_Timer::compute_times | ( | ACE_Elapsed_Time & | et | ) | [private] |
Compute how much time has elapsed.
| void ACE_Profile_Timer::dump | ( | void | ) | const |
Dump the state of an object.
| void ACE_Profile_Timer::elapsed_rusage | ( | ACE_Profile_Timer::Rusage & | rusage | ) |
| int ACE_Profile_Timer::elapsed_time | ( | ACE_Elapsed_Time & | et | ) |
| void ACE_Profile_Timer::get_rusage | ( | ACE_Profile_Timer::Rusage & | rusage | ) |
Return the resource utilization (don't recompute it).
| int ACE_Profile_Timer::start | ( | void | ) |
Activate the timer.
| int ACE_Profile_Timer::stop | ( | void | ) |
Stop the timer.
| void ACE_Profile_Timer::subtract | ( | timeval & | tdiff, | |
| timeval & | t0, | |||
| timeval & | t1 | |||
| ) | [private] |
Substract two timestructs and store their difference.
| void ACE_Profile_Timer::subtract | ( | timespec_t & | tdiff, | |
| timespec_t & | t0, | |||
| timespec_t & | t1 | |||
| ) | [private] |
Substract two timestructs and store their difference.
Declare the dynamic allocation hooks.
timeval ACE_Profile_Timer::begin_time_ [private] |
Keep track of the beginning time.
Keep track of the starting resource utilization.
timeval ACE_Profile_Timer::end_time_ [private] |
Keep track of the ending time.
Keep track of the ending resource utilization.
timeval ACE_Profile_Timer::last_time_ [private] |
Keep track of the last time for incremental timing.
Keep track of the last rusage for incremental timing.
ACE_HANDLE ACE_Profile_Timer::proc_handle_ [private] |
I/O handle for /proc file system.
ACE_High_Res_Timer ACE_Profile_Timer::timer_ [private] |
The high resolution timer.
1.6.1