A FIFO list of profiling snapshots.
More...
#include <CalcServer.hpp>
|
static cl_long | delta (const cl_ulong &t, const cl_ulong &t0) |
| Get the delta time.
|
|
void | newStep () |
| Let the profiler know that a new step of tools execution is about to start.
|
A FIFO list of profiling snapshots.
◆ ProfilingInfo()
Constructor.
- Parameters
-
n | Number of snapshots to keep |
◆ ~ProfilingInfo()
Aqua::CalcServer::ProfilingInfo::~ProfilingInfo |
( |
| ) |
|
|
inline |
◆ delta()
cl_long Aqua::CalcServer::ProfilingInfo::delta |
( |
const cl_ulong & | t, |
|
|
const cl_ulong & | t0 ) |
|
inlinestatic |
Get the delta time.
Whereas the timers are big unsigned integers, the delta is conversely a relatively small signed integer, although we keep the original 64 bits size
- Parameters
-
t | Timer |
t0 | Timer reference to subtract |
- Returns
- Time delta
◆ get()
Get the stored snapshots.
- Returns
- The list of stored snapshots
◆ newStep()
void Aqua::CalcServer::ProfilingInfo::newStep |
( |
| ) |
|
|
protected |
Let the profiler know that a new step of tools execution is about to start.
◆ sample() [1/2]
void Aqua::CalcServer::ProfilingInfo::sample |
( |
cl_ulong | step, |
|
|
Tool * | tool, |
|
|
Profile * | substage, |
|
|
cl_ulong | start, |
|
|
cl_ulong | end ) |
|
inline |
Add a new sample to an specific step.
- Parameters
-
step | The profiling step |
tool | Triggering tool |
substage | Tool computation substage |
start | Starting timer |
end | Ending timer |
◆ sample() [2/2]
void Aqua::CalcServer::ProfilingInfo::sample |
( |
cl_ulong | step, |
|
|
Tool * | tool, |
|
|
std::string | name, |
|
|
cl_ulong | start, |
|
|
cl_ulong | end ) |
Add a new sample to an specific step.
- Parameters
-
step | The profiling step |
tool | Triggering tool |
name | Sample name |
start | Starting timer |
end | Ending timer |
Traverse the snapshots looking for the step one
◆ step()
cl_ulong Aqua::CalcServer::ProfilingInfo::step |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: