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

Issue 149973002: [chromeos/about:power] Collect cpuidle and cpufreq stats (Closed)

Created:
6 years, 10 months ago by Siva Chandra
Modified:
6 years, 9 months ago
CC:
chromium-reviews, derat+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

[chromeos/about:power] Collect and display cpuidle and cpufreq stats Salient changes introduced by this CL: 1. PowerDataCollector collects CPU idle and CPU freq state information. 2. The about:power page is organized into expandable sections. 3. Two sections, "Idle State Data" and "Frequency State Data" are added to the page. 4. Plots have a legend. BUG=335816 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256294

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Total comments: 68

Patch Set 5 : Address comments #

Total comments: 16

Patch Set 6 : #

Patch Set 7 : Address comments #

Total comments: 28

Patch Set 8 : Address comments #

Patch Set 9 : Rebase #

Patch Set 10 : Retry upload #

Patch Set 11 : Another rebase #

Patch Set 12 : Fix build after rebase #

Total comments: 36

Patch Set 13 : Address comments #

Patch Set 14 : #

Total comments: 12

Patch Set 15 : Address nits #

Patch Set 16 : Accomodate tests #

Total comments: 1

Patch Set 17 : #

Patch Set 18 : read sysfs on blocking pool via a non-member function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1285 lines, -134 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +36 lines, -9 lines 0 comments Download
A chrome/browser/chromeos/power/cpu_data_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +113 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/cpu_data_collector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +422 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/power/power_data_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/power/power_data_collector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/power/power_data_collector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/power.css View 1 2 3 4 5 1 chunk +52 lines, -8 lines 0 comments Download
M chrome/browser/resources/chromeos/power.html View 1 2 3 4 1 chunk +56 lines, -20 lines 0 comments Download
M chrome/browser/resources/chromeos/power.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 19 chunks +460 lines, -82 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/power_ui.cc View 1 2 3 4 5 6 7 6 chunks +123 lines, -11 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Siva Chandra
Since the suspend time adjustment CL has not landed, I have not tried to move ...
6 years, 10 months ago (2014-01-30 02:08:21 UTC) #1
Daniel Erat
https://chromiumcodereview.appspot.com/149973002/diff/20001/chrome/browser/chromeos/power/cpu_data_collector.cc File chrome/browser/chromeos/power/cpu_data_collector.cc (right): https://chromiumcodereview.appspot.com/149973002/diff/20001/chrome/browser/chromeos/power/cpu_data_collector.cc#newcode24 chrome/browser/chromeos/power/cpu_data_collector.cc:24: time_.Stop(); is this supposed to be timer_? you don't ...
6 years, 10 months ago (2014-01-30 15:47:51 UTC) #2
Siva Chandra
Please review patch set 4. Added snanda@ so that he can verify my formulas in ...
6 years, 10 months ago (2014-02-15 02:03:04 UTC) #3
Siva Chandra
On 2014/02/15 02:03:04, Siva Chandra wrote: > Please review patch set 4. > > Added ...
6 years, 10 months ago (2014-02-15 02:07:58 UTC) #4
Daniel Erat
i just looked at the c++ code https://chromiumcodereview.appspot.com/149973002/diff/70001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/149973002/diff/70001/chrome/app/generated_resources.grd#newcode14725 chrome/app/generated_resources.grd:14725: + Hide ...
6 years, 10 months ago (2014-02-15 15:31:24 UTC) #5
Siva Chandra
https://chromiumcodereview.appspot.com/149973002/diff/70001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/149973002/diff/70001/chrome/app/generated_resources.grd#newcode14725 chrome/app/generated_resources.grd:14725: + Hide On 2014/02/15 15:31:25, Daniel Erat wrote: > ...
6 years, 10 months ago (2014-02-19 20:02:30 UTC) #6
Daniel Erat
https://chromiumcodereview.appspot.com/149973002/diff/70001/chrome/browser/chromeos/power/cpu_data_collector.cc File chrome/browser/chromeos/power/cpu_data_collector.cc (right): https://chromiumcodereview.appspot.com/149973002/diff/70001/chrome/browser/chromeos/power/cpu_data_collector.cc#newcode116 chrome/browser/chromeos/power/cpu_data_collector.cc:116: idle_sample.state_occupancy[state_name] = occupancy_time/1000; On 2014/02/19 20:02:30, Siva Chandra wrote: ...
6 years, 10 months ago (2014-02-21 02:29:36 UTC) #7
Siva Chandra
ping.
6 years, 9 months ago (2014-03-04 23:15:18 UTC) #8
Daniel Erat
On 2014/03/04 23:15:18, Siva Chandra wrote: > ping. taking a look now (don't forget to ...
6 years, 9 months ago (2014-03-05 00:06:09 UTC) #9
Siva Chandra
PTaL at patch set 7. Sorry for the previous ping. As I explained offline, it ...
6 years, 9 months ago (2014-03-05 21:20:26 UTC) #10
Daniel Erat
https://chromiumcodereview.appspot.com/149973002/diff/420001/chrome/browser/chromeos/power/cpu_data_collector.cc File chrome/browser/chromeos/power/cpu_data_collector.cc (right): https://chromiumcodereview.appspot.com/149973002/diff/420001/chrome/browser/chromeos/power/cpu_data_collector.cc#newcode77 chrome/browser/chromeos/power/cpu_data_collector.cc:77: if (!base::PathExists(base::FilePath(cpu_online_file))) { is it worth checking that the ...
6 years, 9 months ago (2014-03-06 00:46:40 UTC) #11
Siva Chandra
Addressed all comments. PTaL at patch set 8. https://chromiumcodereview.appspot.com/149973002/diff/420001/chrome/browser/chromeos/power/cpu_data_collector.cc File chrome/browser/chromeos/power/cpu_data_collector.cc (right): https://chromiumcodereview.appspot.com/149973002/diff/420001/chrome/browser/chromeos/power/cpu_data_collector.cc#newcode77 chrome/browser/chromeos/power/cpu_data_collector.cc:77: if ...
6 years, 9 months ago (2014-03-06 17:56:32 UTC) #12
Daniel Erat
thanks! this generally looks okay to me now; just a few more comments https://chromiumcodereview.appspot.com/149973002/diff/520001/chrome/app/chromeos_strings.grdp File ...
6 years, 9 months ago (2014-03-07 00:49:18 UTC) #13
Siva Chandra
PTaL at patch set 13. https://chromiumcodereview.appspot.com/149973002/diff/520001/chrome/browser/chromeos/power/cpu_data_collector.cc File chrome/browser/chromeos/power/cpu_data_collector.cc (right): https://chromiumcodereview.appspot.com/149973002/diff/520001/chrome/browser/chromeos/power/cpu_data_collector.cc#newcode23 chrome/browser/chromeos/power/cpu_data_collector.cc:23: const int kSamplingDurationLimitMillisec = ...
6 years, 9 months ago (2014-03-07 22:19:59 UTC) #14
Siva Chandra
Sorry, look at patch set 14.
6 years, 9 months ago (2014-03-07 22:21:51 UTC) #15
Daniel Erat
lgtm for c++, but please ask someone like arv@ to review the rest https://chromiumcodereview.appspot.com/149973002/diff/520001/chrome/browser/chromeos/power/cpu_data_collector.cc File ...
6 years, 9 months ago (2014-03-07 22:28:33 UTC) #16
Siva Chandra
+r arv@ for JavaScript/HTML/CSS I will address derat@'s nit when I upload the next patch ...
6 years, 9 months ago (2014-03-07 22:36:35 UTC) #17
Daniel Erat
oh, and one other question: have you estimated how much memory this consumes after samples ...
6 years, 9 months ago (2014-03-07 22:36:38 UTC) #18
Siva Chandra
On 2014/03/07 22:36:38, Daniel Erat wrote: > oh, and one other question: have you estimated ...
6 years, 9 months ago (2014-03-07 22:59:20 UTC) #19
Siva Chandra
On 2014/03/07 22:59:20, Siva Chandra wrote: > On 2014/03/07 22:36:38, Daniel Erat wrote: > > ...
6 years, 9 months ago (2014-03-07 23:01:38 UTC) #20
Daniel Erat
thanks, that sounds okay to me.
6 years, 9 months ago (2014-03-08 00:39:15 UTC) #21
Siva Chandra
+r arv@ for JS/HTML/CSS. Don't know why it didn't happen on Friday.
6 years, 9 months ago (2014-03-10 16:43:21 UTC) #22
arv (Not doing code reviews)
js/html/css LGTM with nits https://chromiumcodereview.appspot.com/149973002/diff/560001/chrome/browser/resources/chromeos/power.css File chrome/browser/resources/chromeos/power.css (right): https://chromiumcodereview.appspot.com/149973002/diff/560001/chrome/browser/resources/chromeos/power.css#newcode39 chrome/browser/resources/chromeos/power.css:39: border-bottom-width: 0; These can be ...
6 years, 9 months ago (2014-03-10 17:00:45 UTC) #23
arv (Not doing code reviews)
On 2014/03/10 16:43:21, Siva Chandra wrote: > +r arv@ for JS/HTML/CSS. > Don't know why ...
6 years, 9 months ago (2014-03-10 17:01:04 UTC) #24
Siva Chandra
On 2014/03/10 17:01:04, arv wrote: > On 2014/03/10 16:43:21, Siva Chandra wrote: > > +r ...
6 years, 9 months ago (2014-03-10 17:02:23 UTC) #25
arv (Not doing code reviews)
You did as me on Friday. I just didn't get it before leaving. On Mar ...
6 years, 9 months ago (2014-03-10 17:03:50 UTC) #26
Siva Chandra
On 2014/03/10 17:03:50, arv wrote: > You did as me on Friday. I just didn't ...
6 years, 9 months ago (2014-03-10 17:06:51 UTC) #27
Siva Chandra
The CQ bit was checked by sivachandra@chromium.org
6 years, 9 months ago (2014-03-10 18:45:44 UTC) #28
Siva Chandra
Checked the commit box after addressing nits. https://chromiumcodereview.appspot.com/149973002/diff/560001/chrome/browser/chromeos/power/cpu_data_collector.cc File chrome/browser/chromeos/power/cpu_data_collector.cc (right): https://chromiumcodereview.appspot.com/149973002/diff/560001/chrome/browser/chromeos/power/cpu_data_collector.cc#newcode107 chrome/browser/chromeos/power/cpu_data_collector.cc:107: std::vector<CpuDataCollector::StateOccupancySample>* idle_samples) ...
6 years, 9 months ago (2014-03-10 18:46:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/149973002/580001
6 years, 9 months ago (2014-03-10 18:47:52 UTC) #30
Siva Chandra
The CQ bit was unchecked by sivachandra@chromium.org
6 years, 9 months ago (2014-03-10 20:53:44 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 20:58:08 UTC) #32
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=157834
6 years, 9 months ago (2014-03-10 20:58:11 UTC) #33
Siva Chandra
Dan, Can you PTaL. I have modified power_data_collector* to accommodate tests. Thanks, Siva Chandra
6 years, 9 months ago (2014-03-10 23:18:41 UTC) #34
Daniel Erat
lgtm https://codereview.chromium.org/149973002/diff/600001/chrome/browser/chromeos/power/power_data_collector.h File chrome/browser/chromeos/power/power_data_collector.h (right): https://codereview.chromium.org/149973002/diff/600001/chrome/browser/chromeos/power/power_data_collector.h#newcode94 chrome/browser/chromeos/power/power_data_collector.h:94: explicit PowerDataCollector(const bool testing); nit: s/testing/start_collector/ (and invert ...
6 years, 9 months ago (2014-03-10 23:58:49 UTC) #35
Siva Chandra
The CQ bit was checked by sivachandra@chromium.org
6 years, 9 months ago (2014-03-11 16:39:39 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/149973002/620001
6 years, 9 months ago (2014-03-11 16:41:31 UTC) #37
commit-bot: I haz the power
Change committed as 256294
6 years, 9 months ago (2014-03-11 20:17:53 UTC) #38
sadrul
On 2014/03/11 20:17:53, I haz the power (commit-bot) wrote: > Change committed as 256294 Hi! ...
6 years, 9 months ago (2014-03-12 02:12:28 UTC) #39
Daniel Erat
On 2014/03/12 02:12:28, sadrul wrote: > On 2014/03/11 20:17:53, I haz the power (commit-bot) wrote: ...
6 years, 9 months ago (2014-03-12 02:21:45 UTC) #40
Daniel Erat
6 years, 9 months ago (2014-03-12 02:26:19 UTC) #41
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/196613002/ by derat@chromium.org.

The reason for reverting is: Per Sadrul's comment, this causes a crash several
seconds after startup..

Powered by Google App Engine
This is Rietveld 408576698