SPeCS Packages Documentation
    Preparing search index...

    Class that measures the energy spent when executing a section of code.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    filename: string | undefined
    print: boolean = true
    printUnit: boolean = true

    Methods

    • 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'.

      Parameters

      • Optional$start: any
      • Optional$end: any
      • functionJpName: string = "function"

      Returns boolean

      True if $start is a valid join point for the 'measure' function