|
|
Chromium Code Reviews
DescriptionDo not register synthetic field trial before initializing TaskScheduler.
Registering a synthetic field trial initializes the MetricsService.
Initializing the MetricsService posts a task to the blocking pool.
It is not possible to post a task to the blocking pool before
TaskScheduler initialization when the blocking pool is redirected to
TaskScheduler.
This CL moves the registration of the
SyntheticStackProfilingConfiguration synthetic field trial after
TaskScheduler initialization.
BUG=636518
Committed: https://crrev.com/6c74f60870b45a11455e19f5d1a2330b667eb811
Cr-Commit-Position: refs/heads/master@{#422278}
Patch Set 1 #
Total comments: 4
Patch Set 2 : CR robliao #10 #Patch Set 3 : rebase #
Total comments: 3
Dependent Patchsets: Messages
Total messages: 23 (11 generated)
fdoray@chromium.org changed reviewers: + asvitkine@chromium.org, robliao@chromium.org
PTAL
The CQ bit was checked by fdoray@chromium.org to run a CQ dry run
Dry run: 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
Dry run: This issue passed the CQ dry run.
lgtm
fdoray@chromium.org changed reviewers: + brettw@chromium.org
brettw@: PTAL (You reviewed a related CL a few days ago https://codereview.chromium.org/2342373002/)
https://codereview.chromium.org/2380043002/diff/1/chrome/browser/chrome_brows... File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2380043002/diff/1/chrome/browser/chrome_brows... chrome/browser/chrome_browser_main.cc:917: tracing::SetupNavigationTracing(); This section seems like it could go outside of SetupMetrics. Is this triggering issues? https://codereview.chromium.org/2380043002/diff/1/chrome/browser/chrome_brows... chrome/browser/chrome_browser_main.cc:1529: const base::string16 pre_read_field_trial_registry_path = Can this be done in a separate CL?
Description was changed from ========== Do not register synthetic field trial before initializing TaskScheduler. Registering a synthetic field trial initializes the MetricsService. Initializing the MetricsService posts a task to the blocking pool. It is not possible to post a task to the blocking pool before TaskScheduler initialization when the blocking pool is redirected to TaskScheduler. This CL moves the registration of the SyntheticStackProfilingConfiguration synthetic field trial after TaskScheduler initialization. It also moves code that isn't directly related to the initialization of FieldTrialList and FeatureList out of ChromeBrowserMainParts::SetupFieldTrials. BUG=636518 ========== to ========== Do not register synthetic field trial before initializing TaskScheduler. Registering a synthetic field trial initializes the MetricsService. Initializing the MetricsService posts a task to the blocking pool. It is not possible to post a task to the blocking pool before TaskScheduler initialization when the blocking pool is redirected to TaskScheduler. This CL moves the registration of the SyntheticStackProfilingConfiguration synthetic field trial after TaskScheduler initialization. BUG=636518 ==========
brettw@: PTAL https://codereview.chromium.org/2380043002/diff/1/chrome/browser/chrome_brows... File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2380043002/diff/1/chrome/browser/chrome_brows... chrome/browser/chrome_browser_main.cc:917: tracing::SetupNavigationTracing(); On 2016/09/30 01:10:09, robliao wrote: > This section seems like it could go outside of SetupMetrics. Is this triggering > issues? No longer changing this section in this CL. https://codereview.chromium.org/2380043002/diff/1/chrome/browser/chrome_brows... chrome/browser/chrome_browser_main.cc:1529: const base::string16 pre_read_field_trial_registry_path = On 2016/09/30 01:10:09, robliao wrote: > Can this be done in a separate CL? Done. Made the CL smaller.
Overall looking reasonable. https://codereview.chromium.org/2380043002/diff/40001/chrome/browser/chrome_b... File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2380043002/diff/40001/chrome/browser/chrome_b... chrome/browser/chrome_browser_main.cc:901: const base::string16 pre_read_field_trial_registry_path = This is intended to be in this CL or a different CL?
robliao@: PTAnL brettw@: PTAL https://codereview.chromium.org/2380043002/diff/40001/chrome/browser/chrome_b... File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2380043002/diff/40001/chrome/browser/chrome_b... chrome/browser/chrome_browser_main.cc:901: const base::string16 pre_read_field_trial_registry_path = On 2016/09/30 18:10:56, robliao wrote: > This is intended to be in this CL or a different CL? I did not change this block of code in this CL. I just moved the code related to sampling profiler.
lgtm https://codereview.chromium.org/2380043002/diff/40001/chrome/browser/chrome_b... File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2380043002/diff/40001/chrome/browser/chrome_b... chrome/browser/chrome_browser_main.cc:901: const base::string16 pre_read_field_trial_registry_path = On 2016/09/30 19:06:40, fdoray wrote: > On 2016/09/30 18:10:56, robliao wrote: > > This is intended to be in this CL or a different CL? > > I did not change this block of code in this CL. I just moved the code related to > sampling profiler. My mistake. I looked at the wrong diff mode!
lgtm
The CQ bit was checked by fdoray@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from asvitkine@chromium.org Link to the patchset: https://codereview.chromium.org/2380043002/#ps40001 (title: "rebase")
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 ========== Do not register synthetic field trial before initializing TaskScheduler. Registering a synthetic field trial initializes the MetricsService. Initializing the MetricsService posts a task to the blocking pool. It is not possible to post a task to the blocking pool before TaskScheduler initialization when the blocking pool is redirected to TaskScheduler. This CL moves the registration of the SyntheticStackProfilingConfiguration synthetic field trial after TaskScheduler initialization. BUG=636518 ========== to ========== Do not register synthetic field trial before initializing TaskScheduler. Registering a synthetic field trial initializes the MetricsService. Initializing the MetricsService posts a task to the blocking pool. It is not possible to post a task to the blocking pool before TaskScheduler initialization when the blocking pool is redirected to TaskScheduler. This CL moves the registration of the SyntheticStackProfilingConfiguration synthetic field trial after TaskScheduler initialization. BUG=636518 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Do not register synthetic field trial before initializing TaskScheduler. Registering a synthetic field trial initializes the MetricsService. Initializing the MetricsService posts a task to the blocking pool. It is not possible to post a task to the blocking pool before TaskScheduler initialization when the blocking pool is redirected to TaskScheduler. This CL moves the registration of the SyntheticStackProfilingConfiguration synthetic field trial after TaskScheduler initialization. BUG=636518 ========== to ========== Do not register synthetic field trial before initializing TaskScheduler. Registering a synthetic field trial initializes the MetricsService. Initializing the MetricsService posts a task to the blocking pool. It is not possible to post a task to the blocking pool before TaskScheduler initialization when the blocking pool is redirected to TaskScheduler. This CL moves the registration of the SyntheticStackProfilingConfiguration synthetic field trial after TaskScheduler initialization. BUG=636518 Committed: https://crrev.com/6c74f60870b45a11455e19f5d1a2330b667eb811 Cr-Commit-Position: refs/heads/master@{#422278} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/6c74f60870b45a11455e19f5d1a2330b667eb811 Cr-Commit-Position: refs/heads/master@{#422278} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
