OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ | 5 #ifndef COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ |
6 #define COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ | 6 #define COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/profiler/stack_sampling_profiler.h" | 12 #include "base/profiler/stack_sampling_profiler.h" |
12 #include "components/metrics/metrics_provider.h" | 13 #include "components/metrics/metrics_provider.h" |
13 | 14 |
14 namespace metrics { | 15 namespace metrics { |
15 class ChromeUserMetricsExtension; | 16 class ChromeUserMetricsExtension; |
16 | 17 |
17 // Performs metrics logging for the stack sampling profiler. | 18 // Performs metrics logging for the stack sampling profiler. |
18 class CallStackProfileMetricsProvider : public MetricsProvider { | 19 class CallStackProfileMetricsProvider : public MetricsProvider { |
19 public: | 20 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Returns true if reporting of profiles is enabled according to the | 74 // Returns true if reporting of profiles is enabled according to the |
74 // controlling Finch field trial. | 75 // controlling Finch field trial. |
75 static bool IsReportingEnabledByFieldTrial(); | 76 static bool IsReportingEnabledByFieldTrial(); |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(CallStackProfileMetricsProvider); | 78 DISALLOW_COPY_AND_ASSIGN(CallStackProfileMetricsProvider); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace metrics | 81 } // namespace metrics |
81 | 82 |
82 #endif // COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ | 83 #endif // COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ |
OLD | NEW |