![]() |
fpmas 1.6
|
#include <perf.h>
Public Member Functions | |
void | commit (api::utils::perf::Probe &probe) override |
std::size_t | callCount (std::string probe_label) const override |
Duration | totalDuration (std::string probe_label) const override |
void | clear () override |
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 |
fpmas::api::utils::perf::Monitor implementation.
|
overridevirtual |
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 |
Implements fpmas::api::utils::perf::Monitor.
|
overridevirtual |
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
Implements fpmas::api::utils::perf::Monitor.
|
overridevirtual |
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
Implements fpmas::api::utils::perf::Monitor.
|
overridevirtual |
Clears the monitor content.
Implements fpmas::api::utils::perf::Monitor.