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

    A service that exposes the back-end's Stopwatch to clients via the remote API. If you do not need this service then bind or re-bind the NullBackendStopwatch implementation to this service interface.

    interface BackendStopwatch {
        start(name: string, options?: MeasurementOptions): Promise<number>;
        stop(
            measurement: number,
            message: string,
            messageArgs: any[],
        ): Promise<void>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Stop a measurement previously started and log in the back-end a measurement of its duration relative to the back-end's timeline.

      Parameters

      • measurement: number

        token identifying a measurement previously started

      • message: string

        a message to log

      • messageArgs: any[]

        optional arguments to the message

      Returns Promise<void>