UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

28 lines 989 B
import { LaraJoinPoint } from "../../LaraJoinPoint.js"; /** * Class that measures the energy spent when executing a section of code. */ export default class EnergyBase<T extends LaraJoinPoint> { filename: string | undefined; printUnit: boolean; print: boolean; constructor(filename?: string); /** * If true, suffixes 'J' to the end of the value. * */ setPrintUnit(printUnit: boolean): this; getPrintUnit(): string; setPrint(print: boolean): this; private warn; /** * Verifies that join point start is not undefined, that it is inside a function. * Additionally, if $end is not undefined, checks if it is inside the same function as $start. * * [Requires] global attribute 'ancestor'. * * @returns True if $start is a valid join point for the 'measure' function */ protected measureValidate($start?: any, $end?: any, functionJpName?: string): boolean; } //# sourceMappingURL=EnergyBase.d.ts.map