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

Issue 239083010: Telemetry: adds CPU frequency stats. (Closed)

Created:
6 years, 8 months ago by bulach
Modified:
5 years, 6 months ago
Reviewers:
pasko, qyearsley
CC:
chromium-reviews, telemetry+watch_chromium.org
Visibility:
Public.

Description

Telemetry: adds CPU frequency stats. Initial attempt to gather how much time the CPUs spend per frequency. It may (or may not) be useful for deriving power usage. BUG=

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Comments #

Total comments: 13

Patch Set 3 : Comments #

Total comments: 7

Patch Set 4 : unit-info #

Total comments: 10

Patch Set 5 : Rebased #

Patch Set 6 : Link to docs #

Patch Set 7 : Nit comment #

Patch Set 8 : Rebased (and fixed test data) #

Patch Set 9 : Fixes mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -5 lines) Patch
M tools/perf/measurements/page_cycler_unittest.py View 1 2 3 4 5 6 7 3 chunks +9 lines, -2 lines 0 comments Download
M tools/perf/metrics/cpu.py View 1 2 3 4 5 6 3 chunks +32 lines, -3 lines 0 comments Download
M tools/perf/metrics/cpu_unittest.py View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/proc_supporting_platform_backend.py View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/proc_supporting_platform_backend_unittest.py View 1 2 3 4 5 6 7 2 chunks +35 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/cpu_2_time_in_state View 1 chunk +16 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/cpu_3_time_in_state View 1 chunk +16 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/cpu_4_time_in_state View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (1 generated)
bulach
hey tony, egor, I think we chatted a while ago about gathering frequency state.. this ...
6 years, 8 months ago (2014-04-17 17:42:09 UTC) #1
tonyg
https://codereview.chromium.org/239083010/diff/20001/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (left): https://codereview.chromium.org/239083010/diff/20001/tools/perf/measurements/page_cycler.py#oldcode92 tools/perf/measurements/page_cycler.py:92: # self._cpu_metric.Start(page, tab) See crbug.com/301714. On 2014/04/17 17:42:10, bulach ...
6 years, 8 months ago (2014-04-18 03:58:56 UTC) #2
bulach
thanks tony! addressed some comments and have some questions below, ptal. https://codereview.chromium.org/239083010/diff/20001/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (left): ...
6 years, 8 months ago (2014-04-22 12:43:10 UTC) #3
pasko
Seems to be potentially useful. I'd leave code design considerations for Tony's judgement, but please ...
6 years, 8 months ago (2014-04-22 14:06:30 UTC) #4
bulach
On 2014/04/22 14:06:30, pasko wrote: > Seems to be potentially useful. > > I'd leave ...
6 years, 8 months ago (2014-04-22 16:09:18 UTC) #5
qyearsley
https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py#newcode39 tools/perf/metrics/cpu.py:39: # Add a result for Global CPU stats. Does ...
6 years, 8 months ago (2014-04-22 17:00:51 UTC) #6
pasko
On 2014/04/22 16:09:18, bulach wrote: > On 2014/04/22 14:06:30, pasko wrote: > > Seems to ...
6 years, 8 months ago (2014-04-22 17:06:44 UTC) #7
bulach
thanks qyearsley! inline, some questions: https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py#newcode39 tools/perf/metrics/cpu.py:39: # Add a result ...
6 years, 8 months ago (2014-04-22 17:12:30 UTC) #8
qyearsley
https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py#newcode39 tools/perf/metrics/cpu.py:39: # Add a result for Global CPU stats. On ...
6 years, 8 months ago (2014-04-22 17:25:52 UTC) #9
bulach
thanks! another look please? https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/60001/tools/perf/metrics/cpu.py#newcode39 tools/perf/metrics/cpu.py:39: # Add a result for ...
6 years, 8 months ago (2014-04-22 17:52:48 UTC) #10
qyearsley
https://codereview.chromium.org/239083010/diff/80001/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (right): https://codereview.chromium.org/239083010/diff/80001/tools/perf/measurements/page_cycler.py#newcode142 tools/perf/measurements/page_cycler.py:142: # changed. See crbug.com/301714. This TODO comment can be ...
6 years, 8 months ago (2014-04-22 18:22:25 UTC) #11
bulach
https://codereview.chromium.org/239083010/diff/80001/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (right): https://codereview.chromium.org/239083010/diff/80001/tools/perf/measurements/page_cycler.py#newcode142 tools/perf/measurements/page_cycler.py:142: # changed. See crbug.com/301714. On 2014/04/22 18:22:26, qyearsley wrote: ...
6 years, 8 months ago (2014-04-22 18:34:50 UTC) #12
qyearsley
https://codereview.chromium.org/239083010/diff/80001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/80001/tools/perf/metrics/cpu.py#newcode47 tools/perf/metrics/cpu.py:47: results.Add('average_frequency_hz', 'Hz', On 2014/04/22 18:34:50, bulach wrote: > On ...
6 years, 8 months ago (2014-04-22 18:48:37 UTC) #13
bulach
On 2014/04/22 18:48:37, qyearsley wrote: > https://codereview.chromium.org/239083010/diff/80001/tools/perf/metrics/cpu.py > File tools/perf/metrics/cpu.py (right): > > https://codereview.chromium.org/239083010/diff/80001/tools/perf/metrics/cpu.py#newcode47 > ...
6 years, 8 months ago (2014-04-23 14:01:11 UTC) #14
pasko
On 2014/04/22 16:09:18, bulach wrote: > > Ways to reduce noise would be: > > ...
6 years, 8 months ago (2014-04-23 15:18:31 UTC) #15
pasko
https://codereview.chromium.org/239083010/diff/100001/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (left): https://codereview.chromium.org/239083010/diff/100001/tools/perf/measurements/page_cycler.py#oldcode146 tools/perf/measurements/page_cycler.py:146: # changed. See crbug.com/301714. should this also remove the ...
6 years, 8 months ago (2014-04-23 15:18:53 UTC) #16
pasko
Overall my concerns are rather about the unnecessary complexity and speed of iteration. Feel free ...
6 years, 8 months ago (2014-04-23 15:23:03 UTC) #17
qyearsley
https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py#newcode49 tools/perf/metrics/cpu.py:49: round((frequency_sum / total_time) / 1000.0, 2), If the frequency ...
6 years, 8 months ago (2014-04-23 18:38:22 UTC) #18
tonyg
Please ping this review on Monday after http://go/perf-fixit .
6 years, 8 months ago (2014-04-24 15:49:53 UTC) #19
bulach
folks, I rebased with the recently landed patches, would you mind another look please? https://codereview.chromium.org/239083010/diff/100001/tools/perf/measurements/page_cycler.py ...
6 years, 7 months ago (2014-05-06 17:08:18 UTC) #20
qyearsley
LGTM, I think :-) https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py#newcode49 tools/perf/metrics/cpu.py:49: round((frequency_sum / total_time) / 1000.0, ...
6 years, 7 months ago (2014-05-06 17:42:28 UTC) #21
bulach
thanks qyearsley! I added a link about the documentation (that unfortunately doesn't quite specify the ...
6 years, 7 months ago (2014-05-07 09:38:02 UTC) #22
pasko
lgtm thanks! https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py#newcode73 tools/perf/metrics/cpu.py:73: # Skip any process_types that are empty. ...
6 years, 7 months ago (2014-05-07 17:59:26 UTC) #23
bulach
https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py File tools/perf/metrics/cpu.py (right): https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py#newcode73 tools/perf/metrics/cpu.py:73: # Skip any process_types that are empty. On 2014/05/07 ...
6 years, 7 months ago (2014-05-08 12:38:02 UTC) #24
qyearsley
On 2014/05/08 12:38:02, bulach wrote: > https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py > File tools/perf/metrics/cpu.py (right): > > https://codereview.chromium.org/239083010/diff/100001/tools/perf/metrics/cpu.py#newcode73 > ...
6 years, 7 months ago (2014-05-27 23:32:41 UTC) #25
bulach
argh! sorry, it was waiting on me hitting the CQ.. :) CQing now..
6 years, 6 months ago (2014-05-28 11:12:49 UTC) #26
bulach
The CQ bit was checked by bulach@chromium.org
6 years, 6 months ago (2014-05-28 11:12:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/239083010/180001
6 years, 6 months ago (2014-05-28 11:14:08 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 11:47:24 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 11:50:33 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/29034) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/35695)
6 years, 6 months ago (2014-05-28 11:50:34 UTC) #31
bulach
The CQ bit was checked by bulach@chromium.org
6 years, 6 months ago (2014-05-28 13:25:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/239083010/200001
6 years, 6 months ago (2014-05-28 13:25:28 UTC) #33
tonyg
The mac trybot failure might be legit.
6 years, 6 months ago (2014-05-28 16:26:25 UTC) #34
bulach
The CQ bit was unchecked by bulach@chromium.org
6 years, 6 months ago (2014-05-28 16:30:06 UTC) #35
bulach
On 2014/05/28 16:26:25, tonyg wrote: > The mac trybot failure might be legit. indeed. :( ...
6 years, 6 months ago (2014-05-28 16:30:21 UTC) #36
bulach
new job on the (re)try bot :) tony: the fix is relatively small, but feel ...
6 years, 6 months ago (2014-05-28 17:55:50 UTC) #37
bulach
tony: sorry, try-bot is green, but I'll need your OWNERS for tools/telemetry (I forgot I ...
6 years, 6 months ago (2014-05-29 08:46:21 UTC) #38
qyearsley
On 2014/05/29 08:46:21, bulach wrote: > tony: sorry, try-bot is green, but I'll need your ...
6 years, 3 months ago (2014-09-05 02:45:56 UTC) #39
pasko
6 years, 3 months ago (2014-09-05 10:42:26 UTC) #40
On 2014/09/05 02:45:56, qyearsley wrote:
> On 2014/05/29 08:46:21, bulach wrote:
> > tony: sorry, try-bot is green, but I'll need your OWNERS for tools/telemetry
> (I
> > forgot I removed myself a few days ago, sorry!)
> 
> Hey, what's the status of this CL? Do we still want to add this? (Will
probably
> need to be rebased, if so.)

as we all know bulach@ has left the team. I think the experiment is interesting,
but I don't have cycles to do anything about it in Q3.

Powered by Google App Engine
This is Rietveld 408576698