Constructors
constructor
- new opsCounter(filterFunction?): opsCounter
Parameters
- filterFunction: ((op: Op) => boolean) = ...
- (op): boolean
Returns boolean
Methods
instrument
- instrument($region): void
Returns void
log
- log($insertionPoint): void
Returns void
Instruments an application so that it counts total operations in a region of code.
Param: filterFunction
Function that receives an $op. If returns false, $op will not be counted.