![]() |
fpmas 1.6
|
#include <perf.h>

Public Member Functions | |
| virtual void | commit (Probe &probe)=0 |
| virtual std::size_t | callCount (std::string probe_label) const =0 |
| virtual Duration | totalDuration (std::string probe_label) const =0 |
| virtual void | clear ()=0 |
|
pure virtual |
Commits measures performed by probe to this monitor.
probe.durations() are added to the value returned by totalDuration(probe.label()).probe.durations() is added to the value returned by callCount(probe.label())probe.durations() buffer is cleared.| probe | probe to commit |
Implemented in fpmas::utils::perf::Monitor.
|
pure virtual |
Returns the total number of calls that has been performed (and committed) with Probes associated to probe_label.
A "call" is defined as a duration measurement, i.e. a pair of probe.start() / probe.stop() call.
If no probe with probe_label has been committed, 0 is returned.
| probe_label | a Probe label |
probe_label Implemented in fpmas::utils::perf::Monitor.
|
pure virtual |
Returns the total duration of measurements performed (and committed) with Probes associated to probe_label.
If no probe with probe_label has been committed, a null duration is returned.
This methods returns an instance of fpmas::api::utils::perf::Duration, that is the default duration type associated to fpmas::api::utils::perf::Clock. However, this duration can be easily converted using the C++ standard library.
| probe_label | a Probe label |
probe_label Implemented in fpmas::utils::perf::Monitor.
|
pure virtual |
Clears the monitor content.
Implemented in fpmas::utils::perf::Monitor.