footprintjs - v11.2.0
    Preparing search index...

    Class MetricRecorder

    Implements

    Index
    id: string
    preferredOperation: RecorderOperation
    • Accumulate: reduce steps up to a slider position (progressive view).

      Type Parameters

      • R

      Parameters

      • fn: (acc: R, entry: StepMetrics, key: string) => R
      • initial: R
      • Optionalkeys: ReadonlySet<string>

      Returns R

    • Aggregate: reduce ALL steps to a single value (dashboards, totals).

      Type Parameters

      • R

      Parameters

      • fn: (acc: R, entry: StepMetrics, key: string) => R
      • initial: R

      Returns R

    • Translate: per-step metrics by runtimeStageId.

      Parameters

      • runtimeStageId: string

      Returns StepMetrics | undefined

    • Expose collected data for inclusion in executor.getSnapshot().recorders.

      Returns {
          data: {
              grandTotal: number;
              numericField: string;
              steps: Record<string, unknown>;
              totalCommits: number;
              totalDuration: number;
              totalPauses: number;
              totalReads: number;
              totalWrites: number;
          };
          description: string;
          name: string;
          preferredOperation: RecorderOperation;
      }