Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function activityFigures

    • Package watts per arm of an idle-activity reading. A window is dropped when other containers used more than limit ms of CPU per second. The rig cannot see a host process or a container that stopped inside a window, so the three idle windows of each round also act as a control: when the largest of them is over IDLE_AGREEMENT times the smallest, the whole round is dropped. An arm with no kept window is null.

      Parameters

      • rows: readonly Row[]
      • limit: number = CONTAMINATION_MS_PER_S

      Returns {
          arms: Record<string, ActivityArm | null>;
          counts: Record<string, WindowCount>;
          idleWatts: Spread | null;
          noisyRounds: number[];
      }