gpufilter
GPU-Efficient Recursive Filtering and Summed-Area Tables
gpufilter::timer_pool Class Reference

Pool of timers. More...

#include <timer.h>

List of all members.

Classes

struct  timer_data
 Each timer data in the pool of timers. More...

Public Member Functions

 ~timer_pool ()
gpu_timergpu_add (const std::string &label, size_t data_size=0, const std::string &unit="")
 Add a GPU timer to this pool.
cpu_timercpu_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_datatimer_list
 timer list definition

Private Attributes

timer_list m_timers
 Pool of timers.

Detailed Description

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.


Constructor & Destructor Documentation

gpufilter::timer_pool::~timer_pool ( ) [inline]

Destructor


Member Function Documentation

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.

Parameters:
[in]labelThe label string for this timer
[in]data_sizeData size associated with this timer
[in]unitThe unit of the associated data
Returns:
The added CPU timer
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.

Parameters:
[in]labelThe label string for this timer
[in]data_sizeData size associated with this timer
[in]unitThe unit of the associated data
Returns:
The added GPU timer

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