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

Issue 11881051: Telemetry: add a metadata layer between page set and .wpr. (Closed)

Created:
7 years, 11 months ago by marja
Modified:
7 years, 10 months ago
Reviewers:
dtu, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, pam+watch_chromium.org, telemetry+watch_chromium.org
Visibility:
Public.

Description

Telemetry: add a metadata layer between page set and .wpr. The metadata file describes which pages in the page set are backed by which .wpr files. This allows us to update individual pages in the page set. BUG=155660 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180117 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180133

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 26

Patch Set 5 : rebased #

Patch Set 6 : Code review & tests #

Patch Set 7 : updated json files #

Patch Set 8 : .json updates #

Total comments: 29

Patch Set 9 : Code review (dtu, nduca) #

Patch Set 10 : Renaming. #

Patch Set 11 : . #

Patch Set 12 : . #

Total comments: 6

Patch Set 13 : Code review (dtu) #

Total comments: 8

Patch Set 14 : Code review (nduca) #

Patch Set 15 : more #

Total comments: 2

Patch Set 16 : offline code review (nduca) #

Patch Set 17 : test fix #

Patch Set 18 : no ordereddict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -59 lines) Patch
M tools/perf/page_sets/2012Q3.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/jsgamebench.json View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/key_desktop_sites.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/kraken.json View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/robohornetpro.json View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/top_25.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/tough_canvas_cases.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/csv_page_benchmark_results_unittest.py View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/multi_page_benchmark_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +22 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/multi_page_benchmark_unittest_base.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/page.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/page_runner.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +27 lines, -21 lines 0 comments Download
M tools/telemetry/telemetry/page_runner_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/page_set.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +19 lines, -6 lines 0 comments Download
A tools/telemetry/telemetry/page_set_archive_info.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +123 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page_set_archive_info_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +101 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page_set_unittest.py View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/page_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/record_wpr.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +21 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/scrolling_action_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
marja
Hi nduca@, Here's the first version of the metadata layer thing, can you check if ...
7 years, 11 months ago (2013-01-16 13:05:05 UTC) #1
marja
A friendly ping.
7 years, 11 months ago (2013-01-21 11:45:51 UTC) #2
marja
Hi dtu@, nduca@ suggested you do the first review pass. Can you have a look?
7 years, 11 months ago (2013-01-23 14:30:17 UTC) #3
dtu
https://codereview.chromium.org/11881051/diff/8001/tools/perf/page_sets/top_25.json File tools/perf/page_sets/top_25.json (right): https://codereview.chromium.org/11881051/diff/8001/tools/perf/page_sets/top_25.json#newcode3 tools/perf/page_sets/top_25.json:3: "archive_data_file": "../data/top_25/index.json", Are you updating all the page sets ...
7 years, 11 months ago (2013-01-23 21:07:02 UTC) #4
marja
Thanks for comments! I simplified this, by adding a separate class for the metadata. That ...
7 years, 11 months ago (2013-01-24 16:03:33 UTC) #5
dtu
Nice, I like this separate metadata class. https://chromiumcodereview.appspot.com/11881051/diff/20031/tools/telemetry/telemetry/page_set_metadata.py File tools/telemetry/telemetry/page_set_metadata.py (right): https://chromiumcodereview.appspot.com/11881051/diff/20031/tools/telemetry/telemetry/page_set_metadata.py#newcode27 tools/telemetry/telemetry/page_set_metadata.py:27: self.url_to_wpr_file[url] = ...
7 years, 11 months ago (2013-01-25 00:22:30 UTC) #6
nduca
This looks really good! i think maybe page_set_metdata is the wrong word, its hard to ...
7 years, 11 months ago (2013-01-25 10:34:06 UTC) #7
marja
Thanks again for comments! In addition to the "done"s here, I renamed PageSetMetadata to PageSetArchiveInfo. ...
7 years, 10 months ago (2013-01-28 17:48:03 UTC) #8
dtu
https://chromiumcodereview.appspot.com/11881051/diff/37001/tools/telemetry/telemetry/page.py File tools/telemetry/telemetry/page.py (right): https://chromiumcodereview.appspot.com/11881051/diff/37001/tools/telemetry/telemetry/page.py#newcode25 tools/telemetry/telemetry/page.py:25: self.archive_path = '' None https://chromiumcodereview.appspot.com/11881051/diff/37001/tools/telemetry/telemetry/page_set.py File tools/telemetry/telemetry/page_set.py (right): https://chromiumcodereview.appspot.com/11881051/diff/37001/tools/telemetry/telemetry/page_set.py#newcode81 ...
7 years, 10 months ago (2013-01-30 02:19:10 UTC) #9
marja
Thanks for comments again! dtu@, can you have another look? https://codereview.chromium.org/11881051/diff/37001/tools/telemetry/telemetry/page.py File tools/telemetry/telemetry/page.py (right): https://codereview.chromium.org/11881051/diff/37001/tools/telemetry/telemetry/page.py#newcode25 ...
7 years, 10 months ago (2013-01-30 12:26:22 UTC) #10
dtu
lgtm
7 years, 10 months ago (2013-01-30 23:28:32 UTC) #11
nduca
this looks really good. the page.archive_path i'd like to have go away still, PageTestResults.successes exists ...
7 years, 10 months ago (2013-01-31 10:15:14 UTC) #12
marja
Thanks for comments again! https://codereview.chromium.org/11881051/diff/45001/tools/telemetry/telemetry/page_runner.py File tools/telemetry/telemetry/page_runner.py (right): https://codereview.chromium.org/11881051/diff/45001/tools/telemetry/telemetry/page_runner.py#newcode70 tools/telemetry/telemetry/page_runner.py:70: def Run(self, options, possible_browser, test, ...
7 years, 10 months ago (2013-01-31 14:44:58 UTC) #13
marja
https://codereview.chromium.org/11881051/diff/41002/tools/perf/page_sets/tough_canvas_cases.json File tools/perf/page_sets/tough_canvas_cases.json (left): https://codereview.chromium.org/11881051/diff/41002/tools/perf/page_sets/tough_canvas_cases.json#oldcode3 tools/perf/page_sets/tough_canvas_cases.json:3: "archive_path": "../data/tough_canvas_cases.wpr", Actually, this does not exist! Should I ...
7 years, 10 months ago (2013-01-31 18:58:33 UTC) #14
marja
https://codereview.chromium.org/11881051/diff/41002/tools/perf/page_sets/tough_canvas_cases.json File tools/perf/page_sets/tough_canvas_cases.json (left): https://codereview.chromium.org/11881051/diff/41002/tools/perf/page_sets/tough_canvas_cases.json#oldcode3 tools/perf/page_sets/tough_canvas_cases.json:3: "archive_path": "../data/tough_canvas_cases.wpr", On 2013/01/31 18:58:33, marja wrote: > Actually, ...
7 years, 10 months ago (2013-01-31 19:03:12 UTC) #15
nduca
lgtm, well done
7 years, 10 months ago (2013-01-31 19:20:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11881051/46001
7 years, 10 months ago (2013-02-01 09:39:21 UTC) #17
commit-bot: I haz the power
Change committed as 180117
7 years, 10 months ago (2013-02-01 10:04:33 UTC) #18
marja
Fyi, this broke stuff because the test bots have python 2.6 and that doesn't have ...
7 years, 10 months ago (2013-02-01 12:15:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11881051/28005
7 years, 10 months ago (2013-02-01 12:15:52 UTC) #20
commit-bot: I haz the power
Change committed as 180133
7 years, 10 months ago (2013-02-01 12:16:18 UTC) #21
dtu
On 2013/02/01 12:16:18, I haz the power (commit-bot) wrote: > Change committed as 180133 The ...
7 years, 10 months ago (2013-02-05 23:11:33 UTC) #22
dtu
7 years, 10 months ago (2013-02-06 06:57:55 UTC) #23
Message was sent while issue was closed.
On 2013/02/05 23:11:33, Dave Tu wrote:
> On 2013/02/01 12:16:18, I haz the power (commit-bot) wrote:
> > Change committed as 180133
> 
> The extra parameter to Page is making some perf unit tests fail.
> 
> [ RUN      ] SmoothnessBenchmarkUnitTest.testCalcResultsRealRenderStats
> Traceback (most recent call last):
>   File
"/ssd/chrome/src/tools/perf/perf_tools/smoothness_benchmark_unittest.py",
> line 69, in testCalcResultsRealRenderStats
>     res.WillMeasurePage(page.Page('http://foo.com/'))
> TypeError: __init__() takes at least 3 arguments (2 given)
> 
> [  FAILED  ] SmoothnessBenchmarkUnitTest.testCalcResultsRealRenderStats (0 ms)

Nevermind, I just TBR'd a quick fix to the test.
https://codereview.chromium.org/12207032/

Powered by Google App Engine
This is Rietveld 408576698