OINO TS
    Preparing search index...

    Class OINOMemoryBenchmark

    OINOMemoryBenchmark is a memory-based benchmark implementation. It stores the benchmark data in memory and allows to reset, start, end and get benchmark data. In case of recursively/iteratively starting a benchmark, it will honor the first start and ignore the rest. *

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Complete benchmark timing

      Parameters

      • module: string

        of the benchmark

      • method: string

        of the benchmark

      • success: boolean = true

        indicates if the benchmark was successful

      Returns void

    • Set late ratio threshold for health monitoring. If a request takes this many times longer than the average duration, it is considered late and a health failure.

      Parameters

      • lateRatio: number

        of health benchmarks, e.g. 2.0 means requests that take 2 times longer than the average

      Returns void

    • Track an exception. Does not consider enabled modules.

      Parameters

      • module: string

        of the benchmark

      • method: string

        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

      • value: number

        of the metric

      • success: boolean = true

        indicates if the metric was successful

      Returns void