Fermat
Public Methods | Public Members | List of all members
cugar::TimeSeries Struct Reference

Detailed description

A class used to keep track of several timing statistics for repeating kernel or function calls

#include <timer.h>

Public Methods

 TimeSeries ()
 
void add (const uint32 c, const float t, const float dt=0.0f)
 
float avg_speed () const
 

Public Members

std::string name
 
std::string units
 
uint32 num
 
uint64 calls
 
float time
 
float device_time
 
float max_speed
 
uint32 bin_calls [32]
 
uint64 bin_items [32]
 
float bin_time [32]
 
float bin_speed [32]
 
std::deque< std::pair< uint32, float > > info
 

Constructor & Destructor Documentation

◆ TimeSeries()

cugar::TimeSeries::TimeSeries ( )
inline

constructor

Member Function Documentation

◆ add()

void cugar::TimeSeries::add ( const uint32  c,
const float  t,
const float  dt = 0.0f 
)
inline

add a sample

Parameters
cthe number of calls / items processed
tthe amount of time spent
dtthe amount of device-time spent

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