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

Issue 2062743002: Randomly enable leak detector based on probability parameter (Closed)

Created:
4 years, 6 months ago by Simon Que
Modified:
4 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Randomly enable leak detector based on probability parameter Read in probability parameters from the variations system. Get a random double within the range [0, 1) and check it against the probability to decide whether to enable the leak detector for each browser and renderer process. By default, the probability is 0 (turned off). Also enables the sending of params to renderer process and receiving of leak reports from renderer process. BUG=chromium:615223 TEST=Run Chrome with variations seed, check that the proper params are read from variations system. Set probabilities to 50%. Add logging to browser and renderer process' LeakDetector modules and make sure that they are only enabled about half the time. Committed: https://crrev.com/ebddf6df6607c9574adc4e78600bfd98ca5265c9 Cr-Commit-Position: refs/heads/master@{#410462}

Patch Set 1 #

Patch Set 2 : Add per-process randomization #

Patch Set 3 : Rebased; Separate probabilities for renderer vs browser process #

Patch Set 4 : Add Mojo error handler to signal remote process termination; Fix function order #

Patch Set 5 : Edit comment about probability values #

Patch Set 6 : Fix incorrect variable passed to GetLeakDetectorEnableParams() #

Patch Set 7 : Enable the leak detector Mojo pipeline #

Patch Set 8 : Do not initialize LeakDetector in renderer if empty params received #

Patch Set 9 : Use RenderThreadObserver interface to shutdown remote client on same thread #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -34 lines) Patch
M chrome/browser/metrics/leak_detector/leak_detector_controller.h View 1 2 3 4 5 2 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/metrics/leak_detector/leak_detector_controller.cc View 1 2 3 4 5 6 6 chunks +105 lines, -17 lines 0 comments Download
M chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/metrics/leak_detector/leak_detector_remote_controller.cc View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 1 comment Download
M chrome/renderer/leak_detector/leak_detector_remote_client.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M chrome/renderer/leak_detector/leak_detector_remote_client.cc View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -11 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
Simon Que
4 years, 4 months ago (2016-07-28 02:04:05 UTC) #3
Simon Que
On 2016/07/28 02:04:05, Simon Que wrote: I wonder if the changes in chrome/renderer should be ...
4 years, 4 months ago (2016-07-28 02:05:18 UTC) #4
Simon Que
On 2016/07/28 02:05:18, Simon Que wrote: > On 2016/07/28 02:04:05, Simon Que wrote: > > ...
4 years, 4 months ago (2016-07-30 00:14:55 UTC) #5
Simon Que
+isherman since wfh is out.
4 years, 4 months ago (2016-08-01 23:46:16 UTC) #7
Simon Que
On 2016/08/01 23:46:16, Simon Que wrote: > +isherman since wfh is out. Here's an updated ...
4 years, 4 months ago (2016-08-02 21:50:06 UTC) #8
Will Harris
sorry for delay. lgtm
4 years, 4 months ago (2016-08-03 00:14:51 UTC) #9
Simon Que
+jochen to review chrome/renderer
4 years, 4 months ago (2016-08-03 00:27:54 UTC) #11
jochen (gone - plz use gerrit)
do you have test coverage for how this impacts system health metrics when enabled?
4 years, 4 months ago (2016-08-03 15:26:17 UTC) #12
Simon Que
On 2016/08/03 15:26:17, jochen wrote: > do you have test coverage for how this impacts ...
4 years, 4 months ago (2016-08-03 17:04:24 UTC) #13
Simon Que
On 2016/08/03 17:04:24, Simon Que wrote: > On 2016/08/03 15:26:17, jochen wrote: > > do ...
4 years, 4 months ago (2016-08-05 01:10:14 UTC) #14
jochen (gone - plz use gerrit)
well well, chrome/renderer lgtm, but please wait for isherman to look at the metrics stuff
4 years, 4 months ago (2016-08-05 11:52:54 UTC) #15
Simon Que
On 2016/08/05 11:52:54, jochen (OOO until Aug 22) wrote: > well well, chrome/renderer lgtm, but ...
4 years, 4 months ago (2016-08-06 08:14:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2062743002/120001
4 years, 4 months ago (2016-08-06 08:14:48 UTC) #22
commit-bot: I haz the power
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_chromeos_ozone_rel_ng/builds/213793)
4 years, 4 months ago (2016-08-06 09:23:30 UTC) #24
Simon Que
+sadrul to review RenderThreadObserver changes.
4 years, 4 months ago (2016-08-07 05:25:01 UTC) #30
sadrul
lgtm https://codereview.chromium.org/2062743002/diff/160001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2062743002/diff/160001/chrome/renderer/chrome_content_renderer_client.cc#newcode447 chrome/renderer/chrome_content_renderer_client.cc:447: thread->AddObserver(leak_detector_remote_client_.get()); I was going to comment that there ...
4 years, 4 months ago (2016-08-08 20:20:06 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2062743002/160001
4 years, 4 months ago (2016-08-08 20:21:46 UTC) #38
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-08 21:18:38 UTC) #40
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 21:20:54 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ebddf6df6607c9574adc4e78600bfd98ca5265c9
Cr-Commit-Position: refs/heads/master@{#410462}

Powered by Google App Engine
This is Rietveld 408576698