SPeCS Packages Documentation
    Preparing search index...

    Instance of a Clava benchmark.

    Implements _compilePrivate and .getKernel().

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cmaker: CMaker | undefined
    cmakerProvider: () => CMaker
    CACHE_ENABLE: boolean

    Methods

    • Restores the AST previous to load().

      Returns void

    • Compiles the current version of the benchmark that is in the AST. Requires calling .load() first.

      Returns File | undefined

    • Executes the current version of the benchmark. Requires calling .compile() first.

      Returns ProcessExecutor

      the ProcessExecutor used to execute this instance

    • Returns void

    • Returns File

      The base folder for all benchmark instances. Currently is a folder 'laraBenchmarks' inside the working directory.

    • Returns string

      The name of this BenchmarkInstance.

    • Returns boolean

    • Saves the current AST and loads this benchmark into the AST.

      Returns void

    • Parameters

      Returns void

    • Test the current instance.

      Parameters

      • Optionalworker: (instance: BenchmarkInstance) => boolean

        Function with no parameters that will be called after loading the benchmark code as AST.

      • OptionalexecuteCode: boolean

        If true, executes the code after worker is applied.

      • OptionaloutputProcessor: (executor: ProcessExecutor) => void

        If execution is enabled, will be called after execution with the corresponding ProcessExecutor.

      Returns boolean

      True, if finished without problems

    • Clears compilation cache of all BenchmarkInstances.

      Returns void

    • Parameters

      • enable: boolean

        If true, enables caching of parsed files. By default, caching is enabled.

      Returns void