blob: 84e651f4620d9ab036ce69cca5a44bd2e13bd273 (
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
// 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 "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(const CPUMetricsProvider&) = delete;
CPUMetricsProvider& operator=(const CPUMetricsProvider&) = delete;
~CPUMetricsProvider() override;
void ProvideSystemProfileMetrics(
SystemProfileProto* system_profile_proto) override;
};
} // namespace metrics
#endif // COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
|