monitor-api - v1.3.0
    Preparing search index...

    Interface IPerformanceCollector

    Public API exposed by the performance collector.

    interface IPerformanceCollector {
        cls: SSignal<number>;
        fps: SSignal<number>;
        fpsHistory: SSignal<number[]>;
        longTasks: SSignal<LongTaskInfo>;
        memory: SSignal<MemoryInfo | null>;
        memoryHistory: SSignal<number[]>;
        snapshot: SSignal<PerformanceSnapshot>;
        clearHistory(): void;
        destroy(): void;
        start(): void;
        stop(): void;
    }
    Index

    Properties

    cls: SSignal<number>

    Signal containing cumulative layout shift.

    fps: SSignal<number>

    Signal containing the latest FPS value.

    fpsHistory: SSignal<number[]>

    Signal containing retained FPS history.

    longTasks: SSignal<LongTaskInfo>

    Signal containing long task summary information.

    memory: SSignal<MemoryInfo | null>

    Signal containing current memory information, or null when unavailable.

    memoryHistory: SSignal<number[]>

    Signal containing retained memory percentage history.

    snapshot: SSignal<PerformanceSnapshot>

    Signal containing the complete performance snapshot.

    Methods

    • Clears retained FPS and memory histories without resetting current metric values.

      Returns void