| 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 CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_ | 5 #ifndef CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_ |
| 6 #define CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_ | 6 #define CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/profiler/stack_sampling_profiler.h" | 9 #include "base/profiler/stack_sampling_profiler.h" |
| 9 | 10 |
| 10 // Chooses a configuration for the stack sampling profiler for browser process | 11 // Chooses a configuration for the stack sampling profiler for browser process |
| 11 // startup. This must live outside of ChromeBrowserMainParts so it can be | 12 // startup. This must live outside of ChromeBrowserMainParts so it can be |
| 12 // friended by ChromeMetricsServiceAccessor. | 13 // friended by ChromeMetricsServiceAccessor. |
| 13 class StackSamplingConfiguration { | 14 class StackSamplingConfiguration { |
| 14 public: | 15 public: |
| 15 StackSamplingConfiguration(); | 16 StackSamplingConfiguration(); |
| 16 | 17 |
| 17 // Get the stack sampling params to use for this session. | 18 // Get the stack sampling params to use for this session. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 static ProfileConfiguration GenerateConfiguration(); | 37 static ProfileConfiguration GenerateConfiguration(); |
| 37 | 38 |
| 38 const ProfileConfiguration configuration_; | 39 const ProfileConfiguration configuration_; |
| 39 | 40 |
| 40 DISALLOW_COPY_AND_ASSIGN(StackSamplingConfiguration); | 41 DISALLOW_COPY_AND_ASSIGN(StackSamplingConfiguration); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 #endif // CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_ | 44 #endif // CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_ |
| OLD | NEW |