valhalla-browser API
    Preparing search index...

    Interface Diagnostics

    Cumulative loader, cache and memory data for the current worker.

    interface Diagnostics {
        metrics: LoaderMetrics;
        native: NativeStats;
        resourceTiming: {
            decodedBodySize: number | null;
            durationMs: number;
            encodedBodySize: number | null;
            name: string;
            transferSize: number | null;
        }[];
        trace: TileTrace[];
    }
    Index
    metrics: LoaderMetrics

    Cumulative counters since this worker's loader was created.

    native: NativeStats

    Current native build identity and cumulative memory/cache counters.

    resourceTiming: {
        decodedBodySize: number | null;
        durationMs: number;
        encodedBodySize: number | null;
        name: string;
        transferSize: number | null;
    }[]

    Browser resource timings as exposed inside the worker. Cross-origin zeros without Timing-Allow-Origin do not prove cache hits.

    Type Declaration

    • decodedBodySize: number | null

      Decoded response-body size in bytes, or null when unavailable. Cross-origin restrictions can produce zero.

    • durationMs: number

      Browser-observed resource duration in milliseconds.

    • encodedBodySize: number | null

      Encoded response-body size in bytes, or null when unavailable. Cross-origin restrictions can produce zero.

    • name: string

      Requested resource URL.

    • transferSize: number | null

      Browser transfer-size field in bytes, or null when unavailable. Zero can mean either caching or restricted visibility.

    trace: TileTrace[]

    Most recent 2,048 successful validated fetch traces, including tile URLs and IDs. No telemetry is sent automatically.