summaryrefslogtreecommitdiff
path: root/chromium/components/metrics/cpu_metrics_provider.h
blob: 067822bd2bf6cbe2e10e99adaff70a9c2184f67e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
#define COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_

#include "base/macros.h"
#include "components/metrics/metrics_provider.h"

namespace metrics {

// CPUMetricsProvider adds CPU Info in the system profile. These include
// CPU vendor information, cpu cores, etc. This doesn't provide CPU usage
// information.
class CPUMetricsProvider : public MetricsProvider {
 public:
  CPUMetricsProvider();
  ~CPUMetricsProvider() override;

  void ProvideSystemProfileMetrics(
      SystemProfileProto* system_profile_proto) override;

 private:
  DISALLOW_COPY_AND_ASSIGN(CPUMetricsProvider);
};

}  // namespace metrics

#endif  // COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_