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

Issue 11428107: Telemetry: extends Platform abstraction. (Closed)

Created:
8 years ago by bulach
Modified:
7 years, 9 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, pam+watch_chromium.org, telemetry+watch_chromium.org, jeremy
Visibility:
Public.

Description

Telemetry: extends Platform abstraction. It allows Telemetry on android to: - sets the correct cpu governor - install thermal throttling monitor BUG= TEST=tools/telemetry/run_tests --browser=android-chrome ScrollingActionTest PageRunner Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184153

Patch Set 1 #

Total comments: 1

Patch Set 2 : Single platform #

Patch Set 3 : Platform API #

Total comments: 21

Patch Set 4 : PlatformBackend #

Patch Set 5 : Rebased #

Total comments: 22

Patch Set 6 : aberent/tonyg #

Total comments: 2

Patch Set 7 : __init__/close() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -34 lines) Patch
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/chrome/android_browser_finder.py View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/android_platform_backend.py View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/chrome/desktop_browser_finder.py View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/chrome/platform.py View 1 2 3 4 5 1 chunk +68 lines, -12 lines 1 comment Download
M tools/telemetry/telemetry/page/page_runner.py View 1 2 3 4 5 3 chunks +26 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/scrolling_action.py View 1 2 3 4 5 1 chunk +21 lines, -18 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
bulach
8 years ago (2012-11-30 17:19:26 UTC) #1
nduca
Why not just have browser_options.disable_power_throttling and have the android_browser_backend do the rest?
8 years ago (2012-11-30 18:11:57 UTC) #2
bulach
sorry, not sure I understand... :) there's no such a thing as "disable power throttling" ...
8 years ago (2012-11-30 18:17:40 UTC) #3
nduca
I think this exposes too much detail up to tests, so we have to come ...
8 years ago (2012-11-30 18:24:17 UTC) #4
bulach
I think tonyg can explain in more details.... :) there are two completely orthogonal things ...
8 years ago (2012-11-30 18:32:01 UTC) #5
bulach
sure, thanks! I'll look their patches as well, thanks for the pointers!
8 years ago (2012-11-30 18:53:15 UTC) #6
bulach
gargh! :) message above and new reviewers added to the wrong patch... sorry! hartmanng / ...
8 years ago (2012-11-30 18:54:16 UTC) #7
nduca
I think I get the scenario a bit better now. Thanks for sorting me out! ...
8 years ago (2012-12-04 09:20:07 UTC) #8
nduca
https://codereview.chromium.org/11428107/diff/1/tools/telemetry/telemetry/android_browser_finder.py File tools/telemetry/telemetry/android_browser_finder.py (right): https://codereview.chromium.org/11428107/diff/1/tools/telemetry/telemetry/android_browser_finder.py#newcode18 tools/telemetry/telemetry/android_browser_finder.py:18: sys.path.append( please call through adb_commands by wrapping. That wrapping ...
8 years ago (2012-12-04 09:20:17 UTC) #9
Anthony Berent
On Tue, Dec 4, 2012 at 9:20 AM, <nduca@chromium.org> wrote: > > A few challenges ...
8 years ago (2012-12-04 09:47:26 UTC) #10
nduca
Thanks anthony for the helpful comments. A question: if each run of the perf test ...
8 years ago (2012-12-04 09:53:40 UTC) #11
aberent
If all runs are throttled then no result is recorded and nothing is shown perf ...
8 years ago (2012-12-04 09:58:46 UTC) #12
bulach
nat: as discussed, there's just one Platform abstraction now, please let me know if it ...
8 years ago (2012-12-07 01:05:39 UTC) #13
nduca
Getting there. Can it just be created and managed by browser? I dont see value ...
8 years ago (2012-12-07 01:20:07 UTC) #14
bulach
hmm, that's the problem :) all of these APIs require a "scope", i.e., enter in ...
8 years ago (2012-12-07 01:45:56 UTC) #15
nduca
I say fix it with docs and a bit of defensive code, explained later. I ...
8 years ago (2012-12-07 01:51:11 UTC) #16
bulach
thanks nat! I think the API as you suggested is more verbose and has a ...
8 years ago (2012-12-07 06:33:09 UTC) #17
nduca
Sorry to be so insistent on more api surface. Brevity is not a goal here. ...
8 years ago (2012-12-07 18:12:05 UTC) #18
bulach
thanks nat! to be clear: I'm not against more API surface, sorry if I came ...
8 years ago (2012-12-07 20:45:52 UTC) #19
aberent
I just realized that this was still in my review list. Sorry I didn't review ...
7 years, 10 months ago (2013-01-29 14:03:35 UTC) #20
tonyg
A few quesitons/comments. Everything else looks good to me. Regarding Jeremy's use case about warm ...
7 years, 10 months ago (2013-02-21 18:07:08 UTC) #21
bulach
thanks anthony, tony! all addressed, ptal. https://codereview.chromium.org/11428107/diff/21001/tools/telemetry/telemetry/android_platform_backend.py File tools/telemetry/telemetry/android_platform_backend.py (right): https://codereview.chromium.org/11428107/diff/21001/tools/telemetry/telemetry/android_platform_backend.py#newcode1 tools/telemetry/telemetry/android_platform_backend.py:1: # Copyright (c) ...
7 years, 10 months ago (2013-02-22 11:54:25 UTC) #22
tonyg
lgtm https://chromiumcodereview.appspot.com/11428107/diff/34008/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://chromiumcodereview.appspot.com/11428107/diff/34008/tools/telemetry/telemetry/core/browser.py#newcode93 tools/telemetry/telemetry/core/browser.py:93: self._platform.SetFullPerformanceModeEnabled(False) It feels really strange to have one ...
7 years, 10 months ago (2013-02-22 17:19:09 UTC) #23
bulach
thanks tony! addressed, CQing.. https://codereview.chromium.org/11428107/diff/34008/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://codereview.chromium.org/11428107/diff/34008/tools/telemetry/telemetry/core/browser.py#newcode93 tools/telemetry/telemetry/core/browser.py:93: self._platform.SetFullPerformanceModeEnabled(False) On 2013/02/22 17:19:09, tonyg ...
7 years, 10 months ago (2013-02-22 17:43:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11428107/39001
7 years, 10 months ago (2013-02-22 17:44:23 UTC) #25
commit-bot: I haz the power
Change committed as 184153
7 years, 10 months ago (2013-02-22 19:47:06 UTC) #26
achuithb
https://chromiumcodereview.appspot.com/11428107/diff/39001/tools/telemetry/telemetry/core/chrome/platform.py File tools/telemetry/telemetry/core/chrome/platform.py (right): https://chromiumcodereview.appspot.com/11428107/diff/39001/tools/telemetry/telemetry/core/chrome/platform.py#newcode12 tools/telemetry/telemetry/core/chrome/platform.py:12: def __init__(self, platform_backend): This breaks PosssibleCrOSBrowser.Create at line 30: ...
7 years, 9 months ago (2013-02-25 21:18:08 UTC) #27
nduca
Did we have unit tests that would have caught this regression?
7 years, 9 months ago (2013-02-25 21:22:54 UTC) #28
achuithb
On 2013/02/25 21:22:54, nduca wrote: > Did we have unit tests that would have caught ...
7 years, 9 months ago (2013-02-25 21:27:23 UTC) #29
achuithb
On 2013/02/25 21:27:23, achuith.bhandarkar wrote: > On 2013/02/25 21:22:54, nduca wrote: > > Did we ...
7 years, 9 months ago (2013-02-25 21:28:01 UTC) #30
bulach
7 years, 9 months ago (2013-02-26 08:51:56 UTC) #31
Message was sent while issue was closed.
ops, sorry about the breakage! thanks for the quick fix!

Powered by Google App Engine
This is Rietveld 408576698