traceperf
    Preparing search index...

    Interface SlowCallProfiler

    Extension point for exporters and custom sinks. Hooks run synchronously; errors thrown by a plugin are caught and reported once, never propagated into the tracked code.

    interface SlowCallProfiler {
        available: boolean;
        name?: string;
        flush(): Promise<void>;
        onComplete?(root: ExecutionRecord): void;
        onStart?(execution: ExecutionStart): void;
        stop(): Promise<void>;
        wrap?<R>(execution: ExecutionStart, run: () => R): R;
    }

    Hierarchy (View Summary)

    Index
    available: boolean

    Whether the inspector was available (false in browsers and edge runtimes)

    name?: string

    Optional name used in error messages

    • Close the current window now and deliver pending profiles

      Returns Promise<void>

    • Stop profiling (pending profiles are delivered first)

      Returns Promise<void>