DescriptionIntroduce performance measurement varitation parameter for SubresourceFilter.
The parameter defines a fraction of page loads that should have extended
performance measurements enabled. ContentSubresourceFilterDriverFactory uses it
for each main-frame navigation as a probability for enabling
|measure_performance|, which then gets distributed to all
DocumentSubresourceFilter's corresponding to (sub-)frames of the page.
If the variation parameter is not present or malformed, the extended performance
measurement is switched off.
BUG=672519
Committed: https://crrev.com/3b758a270a56b34f25f73bee8130a5f6ec816d6e
Cr-Commit-Position: refs/heads/master@{#438543}
Patch Set 1 #Patch Set 2 : Change include. #
Total comments: 12
Patch Set 3 : Address comments from engedy@, refactor. #Patch Set 4 : Cleanup. #Patch Set 5 : Clip measurement rate to [0,1]. #Messages
Total messages: 22 (13 generated)
|