xref: /aosp_15_r20/external/cronet/components/metrics/cpu_metrics_provider.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
6 #define COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
7 
8 #include "components/metrics/metrics_provider.h"
9 
10 namespace metrics {
11 
12 // CPUMetricsProvider adds CPU Info in the system profile. These include
13 // CPU vendor information, cpu cores, etc. This doesn't provide CPU usage
14 // information.
15 class CPUMetricsProvider : public MetricsProvider {
16  public:
17   CPUMetricsProvider();
18 
19   CPUMetricsProvider(const CPUMetricsProvider&) = delete;
20   CPUMetricsProvider& operator=(const CPUMetricsProvider&) = delete;
21 
22   ~CPUMetricsProvider() override;
23 
24   void ProvideSystemProfileMetrics(
25       SystemProfileProto* system_profile_proto) override;
26 };
27 
28 }  // namespace metrics
29 
30 #endif  // COMPONENTS_METRICS_CPU_METRICS_PROVIDER_H_
31