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

Issue 23825004: PerformanceMonitor: UMA alert for high browser CPU usage. (Closed)

Created:
7 years, 3 months ago by oystein (OOO til 10th of July)
Modified:
7 years, 2 months ago
Reviewers:
Yoyo Zhou, tonyg, Nico, Devlin
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Modified the PerformanceMonitor to not use test/ code for enumerating Chrome processes. Separated out basic performance metrics gathering in the PerformanceMonitor to run independently from the metrics/events database code. The former will now run even without the performance-monitor-gathering flag. Added an UMA event which triggers when the browser process never runs below X CPU utilization over a period of Y seconds. BUG=279660, 273320 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226466

Patch Set 1 #

Patch Set 2 : Buildfix #

Total comments: 1

Patch Set 3 : Build fixes, plus moved base UMA alert from out of about://flags switch #

Patch Set 4 : Fixed dependencies. #

Total comments: 64

Patch Set 5 : browser_tests buildfix #

Patch Set 6 : One more found of test buildfixes #

Patch Set 7 : Review fixes #

Total comments: 32

Patch Set 8 : Review fixes: Round two #

Total comments: 32

Patch Set 9 : Third round of review fixes #

Patch Set 10 : Minor simplication #

Patch Set 11 : Docs #

Total comments: 12

Patch Set 12 : Fourth round of review fixes. #

Patch Set 13 : Buildfix #

Patch Set 14 : Small review fix #

Patch Set 15 : Fix for flaky Windows test #

Patch Set 16 : Rebase #

Patch Set 17 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -241 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/performance_monitor/constants.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/event.h View 1 chunk +2 lines, -32 lines 0 comments Download
A chrome/browser/performance_monitor/event_type.h View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +47 lines, -30 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 chunks +223 lines, -147 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -15 lines 0 comments Download
A chrome/browser/performance_monitor/process_metrics_history.h View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/performance_monitor/process_metrics_history.cc View 1 2 3 4 5 6 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/startup_timer.cc View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M tools/metrics/actions/chromeactions.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
tonyg
This looks really solid to me. I'd start working with the appropriate owners to get ...
7 years, 3 months ago (2013-09-10 17:58:50 UTC) #1
oystein (OOO til 10th of July)
On 2013/09/10 17:58:50, tonyg wrote: > This looks really solid to me. I'd start working ...
7 years, 3 months ago (2013-09-11 17:31:11 UTC) #2
tonyg
On 2013/09/11 17:31:11, Oystein wrote: > On 2013/09/10 17:58:50, tonyg wrote: > > This looks ...
7 years, 3 months ago (2013-09-11 17:35:07 UTC) #3
Devlin
Cursory overview. More to come, but my laptop's about to die. I'm thrilled to see ...
7 years, 3 months ago (2013-09-12 00:44:47 UTC) #4
oystein (OOO til 10th of July)
Thanks for the review :). https://codereview.chromium.org/23825004/diff/19001/chrome/browser/performance_monitor/event_type.h File chrome/browser/performance_monitor/event_type.h (right): https://codereview.chromium.org/23825004/diff/19001/chrome/browser/performance_monitor/event_type.h#newcode1 chrome/browser/performance_monitor/event_type.h:1: // Copyright (c) 2013 ...
7 years, 3 months ago (2013-09-12 15:02:31 UTC) #5
Devlin
Round 2 :) https://codereview.chromium.org/23825004/diff/19001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/19001/chrome/browser/performance_monitor/performance_monitor.cc#newcode415 chrome/browser/performance_monitor/performance_monitor.cc:415: ProcessMetricsHistory& process_metrics = process_metrics_iter->second; On 2013/09/12 ...
7 years, 3 months ago (2013-09-12 18:20:42 UTC) #6
oystein (OOO til 10th of July)
https://codereview.chromium.org/23825004/diff/19001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/19001/chrome/browser/performance_monitor/performance_monitor.cc#newcode415 chrome/browser/performance_monitor/performance_monitor.cc:415: ProcessMetricsHistory& process_metrics = process_metrics_iter->second; On 2013/09/12 18:20:42, D Cronin ...
7 years, 3 months ago (2013-09-12 19:03:24 UTC) #7
Devlin
https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc#newcode375 chrome/browser/performance_monitor/performance_monitor.cc:375: static int current_update_sequence = 0; On 2013/09/12 19:03:24, Oystein ...
7 years, 3 months ago (2013-09-13 18:14:08 UTC) #8
oystein (OOO til 10th of July)
https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc#newcode375 chrome/browser/performance_monitor/performance_monitor.cc:375: static int current_update_sequence = 0; On 2013/09/13 18:14:09, D ...
7 years, 3 months ago (2013-09-13 20:41:55 UTC) #9
Devlin
https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc#newcode375 chrome/browser/performance_monitor/performance_monitor.cc:375: static int current_update_sequence = 0; On 2013/09/13 20:41:55, Oystein ...
7 years, 3 months ago (2013-09-13 21:38:07 UTC) #10
oystein (OOO til 10th of July)
https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/7013/chrome/browser/performance_monitor/performance_monitor.cc#newcode375 chrome/browser/performance_monitor/performance_monitor.cc:375: static int current_update_sequence = 0; On 2013/09/13 21:38:08, D ...
7 years, 3 months ago (2013-09-13 21:57:50 UTC) #11
Yoyo Zhou
https://codereview.chromium.org/23825004/diff/12001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/12001/chrome/browser/performance_monitor/performance_monitor.cc#newcode155 chrome/browser/performance_monitor/performance_monitor.cc:155: &specified_interval) || On 2013/09/13 21:57:50, Oystein wrote: > On ...
7 years, 3 months ago (2013-09-18 23:01:42 UTC) #12
oystein (OOO til 10th of July)
https://codereview.chromium.org/23825004/diff/12001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/12001/chrome/browser/performance_monitor/performance_monitor.cc#newcode155 chrome/browser/performance_monitor/performance_monitor.cc:155: &specified_interval) || On 2013/09/18 23:01:42, Yoyo Zhou wrote: > ...
7 years, 3 months ago (2013-09-19 14:16:23 UTC) #13
Yoyo Zhou
LGTM https://codereview.chromium.org/23825004/diff/16001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/16001/chrome/browser/performance_monitor/performance_monitor.cc#newcode166 chrome/browser/performance_monitor/performance_monitor.cc:166: gather_interval_in_seconds_ = On 2013/09/19 14:16:24, Oystein wrote: > ...
7 years, 3 months ago (2013-09-19 19:28:22 UTC) #14
oystein (OOO til 10th of July)
Thanks :) https://codereview.chromium.org/23825004/diff/16001/chrome/browser/performance_monitor/performance_monitor.cc File chrome/browser/performance_monitor/performance_monitor.cc (right): https://codereview.chromium.org/23825004/diff/16001/chrome/browser/performance_monitor/performance_monitor.cc#newcode166 chrome/browser/performance_monitor/performance_monitor.cc:166: gather_interval_in_seconds_ = On 2013/09/19 19:28:23, Yoyo Zhou ...
7 years, 3 months ago (2013-09-19 20:13:23 UTC) #15
oystein (OOO til 10th of July)
thakis: chrome/browser/chrome_browser_main.cc please :)
7 years, 3 months ago (2013-09-19 20:51:06 UTC) #16
oystein (OOO til 10th of July)
Ping :)
7 years, 2 months ago (2013-09-25 15:51:25 UTC) #17
Nico
browser_main.cc lgtm (Please ping me when I don't respond within a day, sorry that I ...
7 years, 2 months ago (2013-09-25 23:31:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/106001
7 years, 2 months ago (2013-09-26 13:48:35 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=202647
7 years, 2 months ago (2013-09-26 19:00:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/142001
7 years, 2 months ago (2013-09-26 20:40:01 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=81961
7 years, 2 months ago (2013-09-27 01:30:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/142001
7 years, 2 months ago (2013-09-27 13:52:33 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=82379
7 years, 2 months ago (2013-09-27 18:36:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/142001
7 years, 2 months ago (2013-09-27 18:49:02 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=82621
7 years, 2 months ago (2013-09-27 23:37:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/180001
7 years, 2 months ago (2013-10-01 14:03:18 UTC) #27
commit-bot: I haz the power
Failed to apply patch for tools/metrics/actions/chromeactions.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-01 14:03:43 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/191001
7 years, 2 months ago (2013-10-01 14:14:01 UTC) #29
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 2 months ago (2013-10-02 02:28:47 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23825004/191001
7 years, 2 months ago (2013-10-02 13:46:21 UTC) #31
commit-bot: I haz the power
7 years, 2 months ago (2013-10-02 15:56:26 UTC) #32
Message was sent while issue was closed.
Change committed as 226466

Powered by Google App Engine
This is Rietveld 408576698