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

Issue 1491183003: [Telemetry] Move WPR life cycle from browser to platform (Closed)

Created:
5 years ago by perezju
Modified:
4 years, 10 months ago
Reviewers:
eakuefner, nednguyen
CC:
chromium-reviews, penghuang+watch-mandoline_chromium.org, rjkroege, telemetry-reviews_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Move WPR life cycle from browser to platform Superseded by: https://codereview.chromium.org/1671903002/ In particular: - Replay options are set at the platform, not the browser level. - Replay is started/stopped by the shared state. - The shared state may re-start the replay server to read from a different archive path. BUG=404771

Patch Set 1 #

Total comments: 11

Patch Set 2 : fix install test ca #

Total comments: 10

Patch Set 3 : rebase against master #

Patch Set 4 : network_controller API #

Total comments: 2

Patch Set 5 : work in progress #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -499 lines) Patch
M tools/perf/profile_creators/profile_extender.py View 1 2 3 4 6 chunks +16 lines, -17 lines 0 comments Download
M tools/telemetry/telemetry/core/network_controller.py View 1 2 3 4 1 chunk +42 lines, -17 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/browser_backend.py View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py View 1 2 3 4 5 chunks +6 lines, -47 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/chrome/chrome_browser_backend.py View 1 2 3 4 4 chunks +4 lines, -16 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py View 1 2 3 4 2 chunks +1 line, -8 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/mandoline/android_mandoline_backend.py View 1 2 3 4 3 chunks +2 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/mandoline/mandoline_browser_backend.py View 1 2 3 4 4 chunks +4 lines, -16 lines 0 comments Download
M tools/telemetry/telemetry/internal/forwarders/__init__.py View 1 2 3 4 1 chunk +21 lines, -1 line 0 comments Download
A tools/telemetry/telemetry/internal/forwarders/forwarders_unittest.py View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/internal/platform/android_platform_backend.py View 1 2 3 4 2 chunks +42 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/internal/platform/network_controller_backend.py View 1 2 3 4 2 chunks +143 lines, -159 lines 0 comments Download
M tools/telemetry/telemetry/internal/platform/network_controller_backend_unittest.py View 7 chunks +73 lines, -126 lines 0 comments Download
M tools/telemetry/telemetry/internal/platform/platform_backend.py View 1 2 3 4 2 chunks +1 line, -16 lines 0 comments Download
M tools/telemetry/telemetry/internal/util/webpagereplay.py View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/page/shared_page_state.py View 1 2 3 4 6 chunks +21 lines, -33 lines 0 comments Download
M tools/telemetry/telemetry/page/shared_page_state_unittest.py View 1 2 3 4 2 chunks +7 lines, -23 lines 0 comments Download
M tools/telemetry/telemetry/testing/fakes/__init__.py View 1 2 3 4 2 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
perezju
Ned, please have a look. https://codereview.chromium.org/1491183003/diff/1/tools/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py File tools/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py (left): https://codereview.chromium.org/1491183003/diff/1/tools/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py#oldcode35 tools/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py:35: self.wpr_port_pairs.http.local_port)), Note: http, and ...
5 years ago (2015-12-02 16:02:44 UTC) #2
perezju
Started testing it on a few benchmarks, and found a few issues. https://codereview.chromium.org/1491183003/diff/1/tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py ...
5 years ago (2015-12-02 18:05:24 UTC) #3
nednguyen
+Ethan: can you take a pass at this?
5 years ago (2015-12-08 19:09:59 UTC) #5
eakuefner
Sorry for the latency Juan; I've been a bit swamped lately. I've tried to respond ...
5 years ago (2015-12-22 19:18:56 UTC) #6
nednguyen
Juan: are you still actively pursuing this patch or are you blocking this on crbug.com/570348? ...
4 years, 11 months ago (2016-01-04 17:54:23 UTC) #7
perezju
On 2016/01/04 17:54:23, nednguyen wrote: > Juan: are you still actively pursuing this patch or ...
4 years, 11 months ago (2016-01-13 16:08:28 UTC) #8
nednguyen
On 2016/01/13 16:08:28, perezju wrote: > On 2016/01/04 17:54:23, nednguyen wrote: > > Juan: are ...
4 years, 11 months ago (2016-01-13 17:21:25 UTC) #9
perezju
https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py File tools/telemetry/telemetry/internal/platform/platform_backend.py (right): https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py#newcode106 tools/telemetry/telemetry/internal/platform/platform_backend.py:106: def SetupNetworkController(self, finder_options): On 2016/01/04 17:54:23, nednguyen wrote: > ...
4 years, 11 months ago (2016-01-19 13:02:51 UTC) #10
perezju
https://codereview.chromium.org/1491183003/diff/1/tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/1491183003/diff/1/tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py#newcode205 tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py:205: self.platform_backend.StopForwardingHost(self._port) On 2015/12/22 19:18:56, eakuefner wrote: > On 2015/12/02 ...
4 years, 11 months ago (2016-01-19 14:52:54 UTC) #11
nednguyen
https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py File tools/telemetry/telemetry/internal/platform/platform_backend.py (right): https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py#newcode106 tools/telemetry/telemetry/internal/platform/platform_backend.py:106: def SetupNetworkController(self, finder_options): On 2016/01/19 13:02:51, perezju wrote: > ...
4 years, 11 months ago (2016-01-19 16:15:20 UTC) #12
perezju
https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py File tools/telemetry/telemetry/internal/platform/platform_backend.py (right): https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py#newcode106 tools/telemetry/telemetry/internal/platform/platform_backend.py:106: def SetupNetworkController(self, finder_options): On 2016/01/19 16:15:20, nednguyen wrote: > ...
4 years, 11 months ago (2016-01-20 16:03:55 UTC) #13
nednguyen
On 2016/01/20 16:03:55, perezju wrote: > https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py > File tools/telemetry/telemetry/internal/platform/platform_backend.py (right): > > https://codereview.chromium.org/1491183003/diff/20001/tools/telemetry/telemetry/internal/platform/platform_backend.py#newcode106 > ...
4 years, 11 months ago (2016-01-20 16:12:01 UTC) #14
perezju
Before I go wiring this up properly everywhere and fixing unit tests, please have a ...
4 years, 11 months ago (2016-01-21 11:18:39 UTC) #15
nednguyen
4 years, 11 months ago (2016-01-21 17:05:20 UTC) #16
The network_controller API lg2me with some comment

https://codereview.chromium.org/1491183003/diff/60001/tools/telemetry/telemet...
File tools/telemetry/telemetry/core/network_controller.py (right):

https://codereview.chromium.org/1491183003/diff/60001/tools/telemetry/telemet...
tools/telemetry/telemetry/core/network_controller.py:23:
self._network_controller_backend.Start(finder_options)
Instead of finder_options, can you figure out the list of arguments
network_controller_backend exactly need? From my experience, passing the
monolithic finder_options object around has been a major pain for us :-(

https://codereview.chromium.org/1491183003/diff/60001/tools/telemetry/telemet...
tools/telemetry/telemetry/core/network_controller.py:26: """Start (or reuse) a
replay server from a specific archive."""
If we call StartReplay on a new archive_path, it will stop the old replay, isn't
it? We should document this fact.

Powered by Google App Engine
This is Rietveld 408576698