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

Issue 732473003: A more robust way to set/query CPU properties on devices (Closed)

Created:
6 years, 1 month ago by perezju
Modified:
6 years, 1 month ago
Reviewers:
jbudorick, Sami, vmiura
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

A more robust way to set/query CPU properties on devices Provides a method _ForEachCpu which runs a specified operation on each CPU file on the device. It is efficient, as all of the commands are executed using a single shell script on the device (as it was already done for some of the methods); and now also more robust, as we get the exit status of each individual command run. BUG=433056 Committed: https://crrev.com/18689623bac72514040e422003a89f230549252a Cr-Commit-Position: refs/heads/master@{#304927}

Patch Set 1 #

Total comments: 16

Patch Set 2 : second revision #

Total comments: 6

Patch Set 3 : fixed coding style issues #

Total comments: 7

Patch Set 4 : fixed nits #

Patch Set 5 : fixed "mock" interface used by telemetry for testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -45 lines) Patch
M build/android/pylib/perf/perf_control.py View 1 2 3 5 chunks +48 lines, -37 lines 0 comments Download
M build/android/pylib/perf/perf_control_unittest.py View 1 chunk +5 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/unittest_util/system_stub.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (4 generated)
perezju
ptal https://codereview.chromium.org/732473003/diff/1/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/732473003/diff/1/build/android/pylib/perf/perf_control.py#newcode25 build/android/pylib/perf/perf_control.py:25: check_return=True, as_root=True) This will already throw an exception ...
6 years, 1 month ago (2014-11-17 21:20:56 UTC) #2
jbudorick
https://codereview.chromium.org/732473003/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/732473003/diff/1/build/android/pylib/device/device_utils.py#newcode374 build/android/pylib/device/device_utils.py:374: as_root=False, single_line=False, raw_output=False, I'm wary of adding options simply ...
6 years, 1 month ago (2014-11-18 02:29:38 UTC) #3
Sami
https://codereview.chromium.org/732473003/diff/1/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/732473003/diff/1/build/android/pylib/perf/perf_control.py#newcode24 build/android/pylib/perf/perf_control.py:24: 'cd %s && ls -d cpu[0-9]*' % self._CPU_PATH, nit: ...
6 years, 1 month ago (2014-11-18 13:24:05 UTC) #4
perezju
Rewrote taking into account all suggestions. Also replaced some "cd"s with the |cwd| option of ...
6 years, 1 month ago (2014-11-18 17:42:42 UTC) #5
jbudorick
https://codereview.chromium.org/732473003/diff/20001/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/732473003/diff/20001/build/android/pylib/perf/perf_control.py#newcode21 build/android/pylib/perf/perf_control.py:21: self._cpu_files = self._device.RunShellCommand('ls -d cpu[0-9]*', Same as below re ...
6 years, 1 month ago (2014-11-18 18:55:48 UTC) #6
perezju
fixed coding style issues
6 years, 1 month ago (2014-11-18 19:46:39 UTC) #7
jbudorick
lgtm w/ nits Wait for Sami before committing this. https://codereview.chromium.org/732473003/diff/40001/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/732473003/diff/40001/build/android/pylib/perf/perf_control.py#newcode94 build/android/pylib/perf/perf_control.py:94: ...
6 years, 1 month ago (2014-11-19 19:04:42 UTC) #8
Sami
Thanks for the cleanup. lgtm with some minor comments. https://codereview.chromium.org/732473003/diff/40001/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/732473003/diff/40001/build/android/pylib/perf/perf_control.py#newcode24 build/android/pylib/perf/perf_control.py:24: ...
6 years, 1 month ago (2014-11-19 19:18:02 UTC) #9
perezju
Thanks both, I'm preparing a new revision. Just answering to some of your comments now. ...
6 years, 1 month ago (2014-11-19 19:26:04 UTC) #10
jbudorick
On 2014/11/19 19:26:04, perezju wrote: > Thanks both, I'm preparing a new revision. Just answering ...
6 years, 1 month ago (2014-11-19 19:30:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/732473003/60001
6 years, 1 month ago (2014-11-19 19:55:57 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/7202)
6 years, 1 month ago (2014-11-19 20:48:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/732473003/80001
6 years, 1 month ago (2014-11-19 22:47:53 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-19 23:48:07 UTC) #18
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 23:49:07 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/18689623bac72514040e422003a89f230549252a
Cr-Commit-Position: refs/heads/master@{#304927}

Powered by Google App Engine
This is Rietveld 408576698