ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("clava.stats.OpsCounter");

(.lara)
import clava.stats.OpsCounter;

OpsCounter

Constructor

OpsCounter

new OpsCounter([filterFunction = undefined])

Instruments an application so that it counts total operations in a region of code.

Parameters

filterFunction: function - Function that receives an $op. If returns false, $op will not be counted. (optional)

Instance Members

instrument

instrument($region)

Parameters

$region: any

log

log($insertionPoint)

Adds code that prints the operation counting report.

Parameters

$insertionPoint: any