footprintjs - v11.2.0
    Preparing search index...

    Interface ReadSummaryMarker

    Marker recorded in StageSnapshot.stageReads under readTracking: 'summary'.

    Honest cost note: size is a cheap proxy (string length / array length / object key count), NOT a serialized byte count — computing real byte size would require an O(value) serialization, which is exactly the cost the summary mode removes. preview is only produced for primitives and strings (first SUMMARY_PREVIEW_LENGTH characters); objects and arrays carry no preview for the same reason.

    interface ReadSummaryMarker {
        __readSummary: true;
        preview?: string;
        size?: number;
        type: SummaryValueType;
    }

    Hierarchy

    • ValueSummary
      • ReadSummaryMarker
    Index
    __readSummary: true

    Discriminant — lets snapshot consumers detect marker entries.

    preview?: string

    First SUMMARY_PREVIEW_LENGTH chars — primitives and strings only.

    size?: number

    Size proxy: string length, array length, or object key count.

    type: SummaryValueType

    typeof result, refined to 'array' / 'null' for objects.