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

Issue 373223002: Telemetry: Don't fail on setting performance mode without root. (Closed)

Created:
6 years, 5 months ago by epenner
Modified:
6 years, 4 months ago
CC:
chromium-reviews, klundberg+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 fail on setting performance mode without root. Writing the scaling_governor file requires root, but doing so without root now fails. This patch early outs with a warning when we don't have root. BUG=391526 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286441

Patch Set 1 #

Total comments: 2

Patch Set 2 : Also early out for default. #

Patch Set 3 : All caps "NOISY" #

Patch Set 4 : Add failure with message. #

Patch Set 5 : Use AtExit warning. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M build/android/pylib/perf/perf_control.py View 1 2 3 4 3 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
epenner
Ptal. I think setting a protected file without root is a new failure. That makes ...
6 years, 5 months ago (2014-07-08 18:54:25 UTC) #1
pasko
https://codereview.chromium.org/373223002/diff/1/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/373223002/diff/1/build/android/pylib/perf/perf_control.py#newcode33 build/android/pylib/perf/perf_control.py:33: logging.warning('Need root for performance mode. Results may be noisy!') ...
6 years, 5 months ago (2014-07-09 09:20:30 UTC) #2
epennerAtGoogle
https://codereview.chromium.org/373223002/diff/1/build/android/pylib/perf/perf_control.py File build/android/pylib/perf/perf_control.py (right): https://codereview.chromium.org/373223002/diff/1/build/android/pylib/perf/perf_control.py#newcode33 build/android/pylib/perf/perf_control.py:33: logging.warning('Need root for performance mode. Results may be noisy!') ...
6 years, 5 months ago (2014-07-09 19:22:54 UTC) #3
epennerAtGoogle
I read your idea on the bug and that sounds reasonable. I've done it so ...
6 years, 5 months ago (2014-07-09 21:11:43 UTC) #4
klundberg
On 2014/07/09 19:22:54, epennerAtGoogle wrote: > https://codereview.chromium.org/373223002/diff/1/build/android/pylib/perf/perf_control.py > File build/android/pylib/perf/perf_control.py (right): > > https://codereview.chromium.org/373223002/diff/1/build/android/pylib/perf/perf_control.py#newcode33 > ...
6 years, 5 months ago (2014-07-09 23:42:35 UTC) #5
epenner
> We are running performance tests on non-GED devices (i.e. user builds and > non-rooted). ...
6 years, 5 months ago (2014-07-10 01:36:05 UTC) #6
klundberg
On 2014/07/10 01:36:05, epenner wrote: > > We are running performance tests on non-GED devices ...
6 years, 5 months ago (2014-07-10 03:36:43 UTC) #7
pasko
On 2014/07/10 03:36:43, klundberg wrote: > On 2014/07/10 01:36:05, epenner wrote: > > > We ...
6 years, 5 months ago (2014-07-10 09:42:33 UTC) #8
klundberg
On 2014/07/10 09:42:33, pasko wrote: > On 2014/07/10 03:36:43, klundberg wrote: > > On 2014/07/10 ...
6 years, 5 months ago (2014-07-10 15:27:09 UTC) #9
epennerAtGoogle
Coming back to this patch. So if we want to adapt, pasko@ are you okay ...
6 years, 4 months ago (2014-07-29 20:03:44 UTC) #10
epenner
On 2014/07/29 20:03:44, epennerAtGoogle wrote: > Coming back to this patch. So if we want ...
6 years, 4 months ago (2014-07-30 01:33:57 UTC) #11
dtu
On 2014/07/30 01:33:57, epenner wrote: > On 2014/07/29 20:03:44, epennerAtGoogle wrote: > > Coming back ...
6 years, 4 months ago (2014-07-30 01:39:18 UTC) #12
epenner
Landing. Pasko@, let's talk on the bug if there is any follow ups required.
6 years, 4 months ago (2014-07-30 01:42:23 UTC) #13
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 4 months ago (2014-07-30 01:42:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/373223002/120001
6 years, 4 months ago (2014-07-30 01:44:18 UTC) #15
commit-bot: I haz the power
Change committed as 286441
6 years, 4 months ago (2014-07-30 08:04:33 UTC) #16
pasko
6 years, 4 months ago (2014-07-30 11:02:28 UTC) #17
Message was sent while issue was closed.
On 2014/07/30 01:42:23, epenner wrote:
> Landing. Pasko@, let's talk on the bug if there is any follow ups required.

LGTM, atexit is a great idea

Powered by Google App Engine
This is Rietveld 408576698