DescriptionRandomly 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
Messages
Total messages: 42 (23 generated)
|