|
|
Created:
4 years, 2 months ago by Mike Wittman Modified:
4 years, 2 months ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionStack sampling profiler: enable at 10% for GPU process on canary
Also updates the control group to have the profiler enabled in the browser
process (the current steady state).
BUG=650869
Committed: https://crrev.com/37380b7afac6486840437172edc13a66bb4cd81b
Cr-Commit-Position: refs/heads/master@{#424923}
Patch Set 1 #Patch Set 2 : . #
Total comments: 8
Patch Set 3 : update comments #Patch Set 4 : clang fix #
Messages
Total messages: 26 (12 generated)
Description was changed from ========== Stack sampling profiler: enable at 10% on canary BUG=650869 ========== to ========== Stack sampling profiler: enable at 10% for GPU process on canary Also updates the control group to have the profiler enabled in the browser process (the current steady state). BUG=650869 ==========
wittman@chromium.org changed reviewers: + isherman@chromium.org
Hi Ilya, can you do a preliminary review for this?
https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.cc (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.cc:162: } Hmm, it looks like you're re-implementing the field trial mechanism. Why? https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.h (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.h:71: // sum to 100. Why are weights required to sum to 100? What if you want to run a 33%/33%/33% trial? (This restriction isn't present in the //base variations code, which is why I'm asking why it's needed here.)
https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.cc (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.cc:162: } On 2016/10/12 20:52:31, Ilya Sherman wrote: > Hmm, it looks like you're re-implementing the field trial mechanism. Why? The profiler can't use the standard field trial mechanism because it runs before the field trials are initialized. https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.h (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.h:71: // sum to 100. On 2016/10/12 20:52:31, Ilya Sherman wrote: > Why are weights required to sum to 100? What if you want to run a 33%/33%/33% > trial? (This restriction isn't present in the //base variations code, which is > why I'm asking why it's needed here.) It's not strictly needed, but is a small sanity check. If I need a configuration that doesn't work with this in the future I'll remove the constraint and DCHECK at that point.
LGTM % documentation nits https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.cc (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.cc:162: } On 2016/10/12 21:50:41, Mike Wittman wrote: > On 2016/10/12 20:52:31, Ilya Sherman wrote: > > Hmm, it looks like you're re-implementing the field trial mechanism. Why? > > The profiler can't use the standard field trial mechanism because it runs before > the field trials are initialized. Ah, makes sense -- thanks for the reminder. Is this documented somewhere already alongside the code? If so, I didn't spot it. https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.h (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.h:71: // sum to 100. On 2016/10/12 21:50:41, Mike Wittman wrote: > On 2016/10/12 20:52:31, Ilya Sherman wrote: > > Why are weights required to sum to 100? What if you want to run a 33%/33%/33% > > trial? (This restriction isn't present in the //base variations code, which > is > > why I'm asking why it's needed here.) > > It's not strictly needed, but is a small sanity check. If I need a configuration > that doesn't work with this in the future I'll remove the constraint and DCHECK > at that point. Got it, that makes sense. Would be nice to briefly document somewhere that this is done as a config sanity-check =)
https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.cc (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.cc:162: } On 2016/10/12 22:16:17, Ilya Sherman wrote: > On 2016/10/12 21:50:41, Mike Wittman wrote: > > On 2016/10/12 20:52:31, Ilya Sherman wrote: > > > Hmm, it looks like you're re-implementing the field trial mechanism. Why? > > > > The profiler can't use the standard field trial mechanism because it runs > before > > the field trials are initialized. > > Ah, makes sense -- thanks for the reminder. Is this documented somewhere > already alongside the code? If so, I didn't spot it. Not explicitly. Added to the comment on GetSyntheticFieldTrial. https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... File chrome/common/stack_sampling_configuration.h (right): https://codereview.chromium.org/2409953004/diff/20001/chrome/common/stack_sam... chrome/common/stack_sampling_configuration.h:71: // sum to 100. On 2016/10/12 22:16:17, Ilya Sherman wrote: > On 2016/10/12 21:50:41, Mike Wittman wrote: > > On 2016/10/12 20:52:31, Ilya Sherman wrote: > > > Why are weights required to sum to 100? What if you want to run a > 33%/33%/33% > > > trial? (This restriction isn't present in the //base variations code, which > > is > > > why I'm asking why it's needed here.) > > > > It's not strictly needed, but is a small sanity check. If I need a > configuration > > that doesn't work with this in the future I'll remove the constraint and > DCHECK > > at that point. > > Got it, that makes sense. Would be nice to briefly document somewhere that this > is done as a config sanity-check =) Done.
wittman@chromium.org changed reviewers: + thestig@chromium.org
Hi Lei, please take a look.
lgtm
The CQ bit was checked by wittman@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from isherman@chromium.org Link to the patchset: https://codereview.chromium.org/2409953004/#ps40001 (title: "update comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by wittman@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from thestig@chromium.org, isherman@chromium.org Link to the patchset: https://codereview.chromium.org/2409953004/#ps60001 (title: "clang fix")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Exceeded global retry quota
The CQ bit was checked by wittman@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Stack sampling profiler: enable at 10% for GPU process on canary Also updates the control group to have the profiler enabled in the browser process (the current steady state). BUG=650869 ========== to ========== Stack sampling profiler: enable at 10% for GPU process on canary Also updates the control group to have the profiler enabled in the browser process (the current steady state). BUG=650869 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Stack sampling profiler: enable at 10% for GPU process on canary Also updates the control group to have the profiler enabled in the browser process (the current steady state). BUG=650869 ========== to ========== Stack sampling profiler: enable at 10% for GPU process on canary Also updates the control group to have the profiler enabled in the browser process (the current steady state). BUG=650869 Committed: https://crrev.com/37380b7afac6486840437172edc13a66bb4cd81b Cr-Commit-Position: refs/heads/master@{#424923} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/37380b7afac6486840437172edc13a66bb4cd81b Cr-Commit-Position: refs/heads/master@{#424923} |