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

Issue 2211753002: Plugin Power Saver Tiny: Fix Plugin.PowerSaver.PeripheralHeuristic UMA (Closed)

Created:
4 years, 4 months ago by tommycli
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plugin 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -49 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/plugins/power_saver_info.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 4 chunks +11 lines, -9 lines 0 comments Download
M content/public/renderer/plugin_instance_throttler.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/public/renderer/render_frame.h View 1 2 chunks +7 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/plugin_instance_throttler_impl.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/pepper/plugin_instance_throttler_impl.cc View 1 4 chunks +10 lines, -7 lines 0 comments Download
M content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/plugin_power_saver_helper.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/plugin_power_saver_helper.cc View 1 3 chunks +9 lines, -9 lines 0 comments Download
M content/renderer/pepper/plugin_power_saver_helper_browsertest.cc View 1 3 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +16 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (21 generated)
tommycli
groby: PTAL, this fixes the heuristic to only count once. It's a bit complicated with ...
4 years, 4 months ago (2016-08-04 16:10:53 UTC) #11
groby-ooo-7-16
What happens on size change? https://codereview.chromium.org/2211753002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2211753002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode797 chrome/renderer/chrome_content_renderer_client.cc:797: PluginInstanceThrottler::Create(true /* record_decision */); ...
4 years, 4 months ago (2016-08-05 21:16:52 UTC) #12
tommycli
groby: Thanks. Size change is handled in here: https://codereview.chromium.org/2211753002/diff/20001/components/plugins/renderer/loadable_plugin_placeholder.cc It https://codereview.chromium.org/2211753002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2211753002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode797 ...
4 years, 4 months ago (2016-08-08 18:02:02 UTC) #15
tommycli
On 2016/08/08 18:02:02, tommycli wrote: > groby: Thanks. > > Size change is handled in ...
4 years, 4 months ago (2016-08-08 18:02:26 UTC) #16
tommycli
On 2016/08/08 18:02:26, tommycli wrote: > On 2016/08/08 18:02:02, tommycli wrote: > > groby: Thanks. ...
4 years, 4 months ago (2016-08-10 16:45:05 UTC) #19
groby-ooo-7-16
LGTM, and thank you. A small personal request for the future, if I may: If ...
4 years, 4 months ago (2016-08-10 19:47:14 UTC) #20
tommycli
On 2016/08/10 19:47:14, groby wrote: > LGTM, and thank you. > > A small personal ...
4 years, 4 months ago (2016-08-10 20:36:51 UTC) #21
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/2211753002/20001
4 years, 4 months ago (2016-08-10 20:37:32 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/235276)
4 years, 4 months ago (2016-08-10 20:46:41 UTC) #25
tommycli
isherman: tools/ PTAL thestig: chrome/ PTAL piman: content/ PTAL whew - lots of owner stamps ...
4 years, 4 months ago (2016-08-10 20:48:33 UTC) #27
Ilya Sherman
metrics lgtm
4 years, 4 months ago (2016-08-10 20:55:28 UTC) #28
piman
lgtm
4 years, 4 months ago (2016-08-10 21:00:19 UTC) #29
Lei Zhang
lgtm, bonus points for wrapping commit messages at 72 cols.
4 years, 4 months ago (2016-08-10 21:34:59 UTC) #30
tommycli
wrapped! thanks all.
4 years, 4 months ago (2016-08-10 21:41:40 UTC) #32
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/2211753002/20001
4 years, 4 months ago (2016-08-10 21:43:19 UTC) #34
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-10 23:06:29 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 23:11:20 UTC) #38
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8a1ef84d9dab70b79d20b2aa6d07ade20e54d19f
Cr-Commit-Position: refs/heads/master@{#411174}

Powered by Google App Engine
This is Rietveld 408576698