| 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 #include "chrome/common/stack_sampling_configuration.h" | 5 #include "chrome/common/stack_sampling_configuration.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "chrome/common/channel_info.h" | 10 #include "chrome/common/channel_info.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 return ChooseConfiguration({ | 180 return ChooseConfiguration({ |
| 181 { PROFILE_BROWSER_PROCESS, 0}, | 181 { PROFILE_BROWSER_PROCESS, 0}, |
| 182 { PROFILE_GPU_PROCESS, 0}, | 182 { PROFILE_GPU_PROCESS, 0}, |
| 183 { PROFILE_BROWSER_AND_GPU_PROCESS, 50}, | 183 { PROFILE_BROWSER_AND_GPU_PROCESS, 50}, |
| 184 { PROFILE_CONTROL, 50}, | 184 { PROFILE_CONTROL, 50}, |
| 185 { PROFILE_DISABLED, 0} | 185 { PROFILE_DISABLED, 0} |
| 186 }); | 186 }); |
| 187 | 187 |
| 188 case version_info::Channel::DEV: | 188 case version_info::Channel::DEV: |
| 189 return ChooseConfiguration({ | 189 return ChooseConfiguration({ |
| 190 { PROFILE_BROWSER_PROCESS, 100}, | 190 { PROFILE_BROWSER_PROCESS, 80}, |
| 191 { PROFILE_GPU_PROCESS, 0}, | 191 { PROFILE_GPU_PROCESS, 0}, |
| 192 { PROFILE_BROWSER_AND_GPU_PROCESS, 0}, | 192 { PROFILE_BROWSER_AND_GPU_PROCESS, 10}, |
| 193 { PROFILE_CONTROL, 0}, | 193 { PROFILE_CONTROL, 10}, |
| 194 { PROFILE_DISABLED, 0} | 194 { PROFILE_DISABLED, 0} |
| 195 }); | 195 }); |
| 196 | 196 |
| 197 default: | 197 default: |
| 198 return PROFILE_DISABLED; | 198 return PROFILE_DISABLED; |
| 199 } | 199 } |
| 200 } | 200 } |
| OLD | NEW |