Autonomic Performance Environment for eXascale (APEX)
2.3.1
|
A convenience class for using APEX in C++ applications. More...
#include <apex_api.hpp>
Public Member Functions | |
scoped_timer (uint64_t func) | |
Construct and start an APEX timer. More... | |
scoped_timer (std::string func) | |
Construct and start an APEX timer. More... | |
scoped_timer (uint64_t func, std::shared_ptr< apex::task_wrapper > parent) | |
Register a new thread with APEX, then construct and start an APEX timer. More... | |
scoped_timer (std::string func, std::shared_ptr< apex::task_wrapper > parent) | |
Register a new thread with APEX, then construct and start an APEX timer. More... | |
void | start (void) |
Start the APEX timer. More... | |
void | stop (void) |
Stop the APEX timer. More... | |
void | yield (void) |
Yield the APEX timer. More... | |
void | resume (void) |
Resume the APEX timer. More... | |
~scoped_timer () | |
Destructor. | |
std::shared_ptr< apex::task_wrapper > | get_task_wrapper (void) |
Get the internal task wrapper object. | |
A convenience class for using APEX in C++ applications.
This class will automatically start an APEX timer when the object is constructed, and automatically stop the timer when the object goes out of scope. There are options for registering a thread when creating a timer for the first time on a thread.
|
inline |
Construct and start an APEX timer.
func | The address of a function used to identify the timer type |
|
inline |
Construct and start an APEX timer.
func | The name of a function used to identify the timer type |
|
inline |
Register a new thread with APEX, then construct and start an APEX timer.
func | The address of a function used to identify the timer type |
parent | The parent task wrapper (if available) of this new scoped_timer |
|
inline |
Register a new thread with APEX, then construct and start an APEX timer.
func | The name of a function used to identify the timer type |
parent | The parent task wrapper (if available) of this new scoped_timer |
|
inline |
Resume the APEX timer.
|
inline |
Start the APEX timer.
|
inline |
Stop the APEX timer.
|
inline |
Yield the APEX timer.