Theia API Documentation v1.65.0
    Preparing search index...

    Optional configuration of a Measurement specified at the time of its creation.

    interface MeasurementOptions {
        context?: string;
        defaultLogLevel?: LogLevel;
        storeResults?: boolean;
        thresholdMillis?: number;
    }
    Index

    Properties

    context?: string

    A specific context of the application in which an activity was measured. Results in logs being emitted with a "[]" qualified at the head.

    defaultLogLevel?: LogLevel

    An optional logging level at which to emit the log message. The default value is LogLevel.INFO.

    storeResults?: boolean

    Flag to indicate whether the stopwatch should store measurement results for later retrieval. For example the cache can be used to retrieve measurements which were taken during startup before a listener had a chance to register.

    thresholdMillis?: number

    Some measurements are measured against a threshold (in millis) that they should not exceed. If omitted, the implied threshold is unlimited time (no threshold).

    • Stopwatch.startAsync
    • thresholdLogLevel