// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Compute Pressure API (https://wicg.github.io/compute-pressure/)

callback ComputePressureUpdateCallback = undefined (
  ComputePressureObserverUpdate update,
  ComputePressureObserver observer
);

[Exposed=Window]
interface ComputePressureObserver {
  constructor(
    ComputePressureUpdateCallback callback,
    optional ComputePressureObserverOptions options = {}
  );
  undefined observe();
  undefined unobserve();
};

dictionary ComputePressureObserverUpdate {
  double cpuSpeed;
  double cpuUtilization;
  ComputePressureObserverOptions options;
};

dictionary ComputePressureObserverOptions {
  sequence<double> cpuUtilizationThresholds = [];
  sequence<double> cpuSpeedThresholds = [];
};
