Chromium Code Reviews
DescriptionPlugin Power Saver Tiny: Fix Plugin.PowerSaver.PeripheralHeuristic UMA
Previously, it counted every status query. As we implemented PPS tiny,
the number of queries for tiny plugins increased, but we didn't
enforce that it was only recorded once.
This CL enforces that only the initial decision for a plugin is
recorded. It also migrates the UMA to a
Plugin.PowerSaver.PeripheralHeuristicInitialDecision name to prevent
further confusion.
This is complicated because there are three paths a plugin may follow:
1. Essential origin case. No placeholder, no throttler - Record
immediately, in PowerSaverInfo.
2. Placeholder spawned first (because PPS tiny or background tab or
prerendering) - Don't record in PowerSaverInfo. Record in
LoadablePluginPlaceholder after size known. If a Throttler is
spawned from the placeholder, tell it to not record.
3. Throttler spawned first - Record in the throttler.
Once PPS Tiny is launched 100%, case #3 can be eliminated.
BUG=634130
Committed: https://crrev.com/8a1ef84d9dab70b79d20b2aa6d07ade20e54d19f
Cr-Commit-Position: refs/heads/master@{#411174}
Patch Set 1 #
Total comments: 2
Patch Set 2 : merge. and change to enum #Messages
Total messages: 38 (21 generated)
|