KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("lara.metrics.EnergyMetric");

(.lara)
import lara.metrics.EnergyMetric;

EnergyMetric

Constructor

EnergyMetric

new EnergyMetric(prefix)

(Extends Metric)
Measures energy consumed during an application.

Parameters

prefix: any

Instance Members

getImport

getImport()

getUnit

getUnit()

instrument

instrument($start, $end)

Parameters

$start: any
$end: any

report

report(processExecutor)

Parameters

processExecutor: any