footprintjs - v11.2.0
    Preparing search index...

    Type Alias RecorderOperation

    RecorderOperation: typeof RecorderOperation[keyof typeof RecorderOperation]

    RecorderOperation — the three standard operations on auto-collected traversal data.

    Data is collected during the single DFS traversal. The consumer chooses the operation at READ time:

    Operation KeyedStore method SequenceStore method Use case
    Translate get(id) getByKey(id) Per-step detail
    Accumulate accumulate(fn, init, k) accumulate(fn, init, k) Running total up to slider
    Aggregate aggregate(fn, init) aggregate(fn, init) Grand total for dashboards

    Recorders declare a preferredOperation to hint the UI about which operation to show prominently. The consumer can override via constructor options.

    import { MetricRecorder, RecorderOperation } from 'footprintjs';

    // Use named constant (autocomplete)
    new MetricRecorder({ preferredOperation: RecorderOperation.Aggregate });

    // Or inline string (same type)
    new MetricRecorder({ preferredOperation: 'accumulate' });