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

Issue 336943008: TELEMETRY: Don't always fail test when forcing CPUs fails. (Closed)

Created:
6 years, 6 months ago by epenner
Modified:
6 years, 6 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

TELEMETRY: Don't always fail test when forcing CPUs fails. When enabling CPU cores for high-perf mode, only warn the user rather than failing. Only --profiler=perf needs to fail, since it's results would be invalid (vs. just noisy). Also, kernel_max returns the number of CPU's supported by the kernel, but the device may have less cores in practice (eg. Moto X/Moto E have kernel_max = 4). This uses the cpu* files to determine the actual number of cores on the device. BUG=383566 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279321

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -19 lines) Patch
M build/android/pylib/perf/perf_control.py View 1 2 5 chunks +14 lines, -18 lines 0 comments Download
M build/android/pylib/perf/perf_control_unittest.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
epennerAtGoogle
Ptal.
6 years, 6 months ago (2014-06-23 23:17:13 UTC) #1
tonyg
lgtm https://codereview.chromium.org/336943008/diff/20001/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/336943008/diff/20001/build/android/pylib/perf/perf_control.py#newcode26 build/android/pylib/perf/perf_control.py:26: assert self._num_cpu_cores > 0 We should add an ...
6 years, 6 months ago (2014-06-24 02:16:54 UTC) #2
epennerAtGoogle
https://codereview.chromium.org/336943008/diff/20001/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/336943008/diff/20001/build/android/pylib/perf/perf_control.py#newcode26 build/android/pylib/perf/perf_control.py:26: assert self._num_cpu_cores > 0 On 2014/06/24 02:16:54, tonyg wrote: ...
6 years, 6 months ago (2014-06-24 02:35:58 UTC) #3
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 6 months ago (2014-06-24 02:37:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/336943008/40001
6 years, 6 months ago (2014-06-24 02:38:29 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 05:00:56 UTC) #6
Message was sent while issue was closed.
Change committed as 279321

Powered by Google App Engine
This is Rietveld 408576698