Function activityFigures
-
activityFigures(
rows: readonly Row[],
limit?: number,
): {
arms: Record<string, ActivityArm | null>;
counts: Record<string, WindowCount>;
idleWatts: Spread | null;
noisyRounds: number[];
}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[];
}
Package watts per arm of an idle-activity reading. A window is dropped when other containers used more than
limitms 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.