Class OINOBenchmarkAbstract

Static class for benchmarking functions.

Hierarchy (view full)

Constructors

Methods

  • Complete benchmark timing

    Parameters

    • module: string

      of the benchmark

    • method: string

      of the benchmark

    • category: string = "OK"

      optional subcategory of the benchmark

    Returns void

  • Get given benchmark data.

    Parameters

    • module: string

      of the benchmark

    • method: string

      of the benchmark

    Returns number

  • Set benchmark names that are enabled.

    Parameters

    • modules: string[]

      array of those benchmarks that are enabled

    Returns void

  • Start benchmark timing.

    Parameters

    • module: string

      of the benchmark

    • method: string

      of the benchmark

    Returns void

  • Track an exception

    Parameters

    • module: string

      of the benchmark

    • method: string

      of the benchmark

    • category: string

      optional subcategory of the benchmark

    • name: string

      of the exception

    • message: string

      of the exception

    • stack: string

      trace of the exception

    Returns void

  • Track a metric value

    Parameters

    • module: string

      of the metric

    • method: string

      of the metric

    • category: string

      optional subcategory of the metric

    • value: number

      of the metric

    Returns void