cpu_metrics_provider.h 929 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2018 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 COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
  5. #define COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
  6. #include "components/metrics/metrics_provider.h"
  7. namespace metrics {
  8. // CPUMetricsProvider adds CPU Info in the system profile. These include
  9. // CPU vendor information, cpu cores, etc. This doesn't provide CPU usage
  10. // information.
  11. class CPUMetricsProvider : public MetricsProvider {
  12. public:
  13. CPUMetricsProvider();
  14. CPUMetricsProvider(const CPUMetricsProvider&) = delete;
  15. CPUMetricsProvider& operator=(const CPUMetricsProvider&) = delete;
  16. ~CPUMetricsProvider() override;
  17. void ProvideSystemProfileMetrics(
  18. SystemProfileProto* system_profile_proto) override;
  19. };
  20. } // namespace metrics
  21. #endif // COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_