ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("antarex.margot.config.monitor.MargotMonitor");

(.lara)
import antarex.margot.config.monitor.MargotMonitor;

MargotMonitor

Constructor

MargotMonitor

new MargotMonitor(name)

This class represents the base monitor that is 'extended' by all monitors.


Each class that extends this needs to define a field _margotMetric with the metric that it intends to measure. This base class already defines the get logic in the function {@link MargotMonitor.getMargotMetric}.

Parameters

name: string - the name of this monitor

Instance Members

expose

expose(varName, what)

Add a variable to expose in the monitor.

Parameters

varName: string - the name of the variable
what: MargotExpose - what is being exposed

getMargotMetric

getMargotMetric()

Returns the metric associated with this monitor.

Returns

MargotMetric

getName

getName()