gpufilter
GPU-Efficient Recursive Filtering and Summed-Area Tables
|
Pool of timers. More...
#include <timer.h>
Classes | |
struct | timer_data |
Each timer data in the pool of timers. More... | |
Public Member Functions | |
~timer_pool () | |
gpu_timer & | gpu_add (const std::string &label, size_t data_size=0, const std::string &unit="") |
Add a GPU timer to this pool. | |
cpu_timer & | cpu_add (const std::string &label, size_t data_size=0, const std::string &unit="") |
Add a CPU timer to this pool. | |
void | flush () |
Flush to standard output all timers and their relative percentages. | |
Private Types | |
typedef std::list< timer_data > | timer_list |
timer list definition | |
Private Attributes | |
timer_list | m_timers |
Pool of timers. |
Pool of timers.
Pool of timers allows a number of timers to be composed and flushed to the standard output showing relative timing percentages for comparison.
gpufilter::timer_pool::~timer_pool | ( | ) | [inline] |
Destructor
cpu_timer& gpufilter::timer_pool::cpu_add | ( | const std::string & | label, |
size_t | data_size = 0 , |
||
const std::string & | unit = "" |
||
) |
Add a CPU timer to this pool.
[in] | label | The label string for this timer |
[in] | data_size | Data size associated with this timer |
[in] | unit | The unit of the associated data |
gpu_timer& gpufilter::timer_pool::gpu_add | ( | const std::string & | label, |
size_t | data_size = 0 , |
||
const std::string & | unit = "" |
||
) |
Add a GPU timer to this pool.
[in] | label | The label string for this timer |
[in] | data_size | Data size associated with this timer |
[in] | unit | The unit of the associated data |