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

Issue 10965027: Add web page replay to chrome_remote_control. (Closed)

Created:
8 years, 3 months ago by tonyg
Modified:
8 years, 2 months ago
Reviewers:
nduca
CC:
chromium-reviews, pam+watch_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Add web page replay to chrome_remote_control. This adds an "archive_path" argument to the PageSet which specifies the archive to record to or replay from. Specifying it there will allow for sharding when page sets are broken into smaller subsets. By default the benchmark still uses the live sites. If --record is passed, the benchmark is run and web content is recorded to the archive. If an archive exists, web content only comes from the archive. BUG=None TEST=Manual testing on linux Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=159714

Patch Set 1 #

Total comments: 10

Patch Set 2 : Use page_runner infrastructure #

Patch Set 3 : Add tests #

Total comments: 4

Patch Set 4 : Replace CreateForwarder with CreateReplayServer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -243 lines) Patch
M tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/android_browser_finder.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/browser.py View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/browser_options.py View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/cros_browser_backend.py View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/cros_browser_finder.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/desktop_browser_finder.py View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark_unittest.py View 1 2 3 chunks +45 lines, -1 line 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/page_runner.py View 1 2 3 2 chunks +19 lines, -4 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/page_set.py View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/page_set_unittest.py View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/possible_browser.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/replay_server.py View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A + tools/gpu/page_sets/2012Q3.json View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/gpu/page_sets/Q32012.json View 1 1 chunk +0 lines, -223 lines 0 comments Download
M tools/gpu/page_sets/top_25.json View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
tonyg
This isn't done but is a good checkpoint as it works on desktop and doesn't ...
8 years, 3 months ago (2012-09-20 23:47:56 UTC) #1
nduca
So cool Tony! Left a ton of rambling thoughts, lmk if I lost you though! ...
8 years, 3 months ago (2012-09-21 06:35:50 UTC) #2
tonyg
http://codereview.chromium.org/10965027/diff/1/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py File tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py (right): http://codereview.chromium.org/10965027/diff/1/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py#newcode101 tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py:101: pr = page_runner.PageRunner(ps, options) On 2012/09/21 06:35:50, nduca wrote: ...
8 years, 2 months ago (2012-09-25 17:29:29 UTC) #3
nduca
(You knew this was coming: unit tests?)
8 years, 2 months ago (2012-09-25 18:51:13 UTC) #4
nduca
Wrt --record, I think the core problem is that we've got a script-per-benchmark. I think ...
8 years, 2 months ago (2012-09-25 19:04:50 UTC) #5
tonyg
Added a tests, should be ready for another look.
8 years, 2 months ago (2012-10-01 18:10:39 UTC) #6
nduca
Niiice. LGTM with nits http://codereview.chromium.org/10965027/diff/11001/tools/chrome_remote_control/chrome_remote_control/replay_server.py File tools/chrome_remote_control/chrome_remote_control/replay_server.py (right): http://codereview.chromium.org/10965027/diff/11001/tools/chrome_remote_control/chrome_remote_control/replay_server.py#newcode26 tools/chrome_remote_control/chrome_remote_control/replay_server.py:26: def __enter__(self): the rest of ...
8 years, 2 months ago (2012-10-01 23:42:11 UTC) #7
tonyg
http://codereview.chromium.org/10965027/diff/11001/tools/chrome_remote_control/chrome_remote_control/replay_server.py File tools/chrome_remote_control/chrome_remote_control/replay_server.py (right): http://codereview.chromium.org/10965027/diff/11001/tools/chrome_remote_control/chrome_remote_control/replay_server.py#newcode26 tools/chrome_remote_control/chrome_remote_control/replay_server.py:26: def __enter__(self): On 2012/10/01 23:42:11, nduca wrote: > the ...
8 years, 2 months ago (2012-10-02 16:47:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/10965027/16001
8 years, 2 months ago (2012-10-02 16:47:53 UTC) #9
commit-bot: I haz the power
Presubmit check for 10965027-16001 failed and returned exit status 1. ************* Module chrome_remote_control.replay_server F0401: 13,0: ...
8 years, 2 months ago (2012-10-02 16:48:07 UTC) #10
nduca
Why'd we commit with pylint errors?
8 years, 2 months ago (2012-10-02 17:37:15 UTC) #11
tonyg
8 years, 2 months ago (2012-10-02 17:38:25 UTC) #12
Fix coming up.

On Tue, Oct 2, 2012 at 10:37 AM,  <nduca@chromium.org> wrote:
> Why'd we commit with pylint errors?
>
> http://codereview.chromium.org/10965027/

Powered by Google App Engine
This is Rietveld 408576698