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

    Interface IResourceCollector

    Public API exposed by the resource collector.

    interface IResourceCollector {
        onResource: SSignal<ResourceEntry | null>;
        snapshot: SSignal<ResourceSnapshot>;
        clearLog(): void;
        destroy(): void;
        start(): void;
        stop(): void;
    }
    Index

    Properties

    onResource: SSignal<ResourceEntry | null>

    Signal set to the latest recorded resource, or null before any resource is recorded.

    snapshot: SSignal<ResourceSnapshot>

    Signal containing retained resources and cumulative statistics.

    Methods

    • Starts observing resources. The first start also records assets loaded before it; later starts only record resources that finish after them.

      Returns void