Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Side by Side Diff: chrome/common/stack_sampling_configuration.cc

Issue 2444573002: Stack sampling profiler: enable at 10% for GPU process on dev (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698