pressure_sample.h 653 B

1234567891011121314151617181920
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SERVICES_DEVICE_COMPUTE_PRESSURE_PRESSURE_SAMPLE_H_
  5. #define SERVICES_DEVICE_COMPUTE_PRESSURE_PRESSURE_SAMPLE_H_
  6. namespace device {
  7. // Represents availability of compute resources measured over a period of time.
  8. struct PressureSample {
  9. // Average utilization of all CPU cores.
  10. //
  11. // Values use a scale from 0.0 (no utilization) to 1.0 (100% utilization).
  12. double cpu_utilization;
  13. };
  14. } // namespace device
  15. #endif // SERVICES_DEVICE_COMPUTE_PRESSURE_PRESSURE_SAMPLE_H_