(.js)
laraImport("lara.metrics.Metric");
(.lara)
import lara.metrics.Metric;
Classes:
new Metric(name)
Reprents a metric we want to extract.
getImport()
getName()
getUnit()
instrument($start, [$end = $start])
Instruments code so that when executed, it produces information about the metric to measure.
report(processExecutor)
Extract metric.