![]() |
fpmas 1.6
|
#include <perf.h>
Public Member Functions | |
virtual std::string | label () const =0 |
virtual std::vector< Duration > & | durations ()=0 |
virtual const std::vector< Duration > & | durations () const =0 |
virtual void | start ()=0 |
virtual void | stop ()=0 |
Probe API.
A Probe can be used to perform duration measurements.
The probe measures data associated to a given label(). Time measurements are performed between consecutive start() and end() calls, and added to the durations() list, so that they can be committed later to a Monitor.
|
pure virtual |
Label associated to measured data.
Notice that it is allowed to have several Probes associated to the same label.
Implemented in fpmas::utils::perf::Probe.
|
pure virtual |
Returns a reference to durations currently buffered within this probe.
Since a reference is returned, the buffer can eventually be cleared by an external process.
Implemented in fpmas::utils::perf::Probe.
|
pure virtual |
Returns a reference to durations currently buffered within this probe.
Implemented in fpmas::utils::perf::Probe.
|
pure virtual |
Starts a duration measurement with this probe.
Implemented in fpmas::utils::perf::Probe.
|
pure virtual |
Stops a duration measurement, previously started with start().
The duration between start() and end() calls is added to durations().
Implemented in fpmas::utils::perf::Probe.