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

Issue 27486002: Cleanup of page_measurement_results object (Closed)

Created:
7 years, 2 months ago by nduca
Modified:
7 years ago
Reviewers:
dtu, qyearsley, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org, Randy Smith (Not in Mondays)
Visibility:
Public.

Description

Cleanup of page_measurement_results object This patch introduces telemetry.value, which factors out the different kinds of data collected by telemetry benchmarks, currently scalar values, lists of scalar values, and histograms. This factoring provides mechanisms for combining together values --- value summarization, which was previously the job of the results objects, is now part of the value system. The actual interface between the page_measurement_results object and the rest of telemetry is unchanged. A values_backcompat module exists to convert the old interface to the new interface. A followup patch can remove this backcompat path. BUG=306944

Patch Set 1 #

Patch Set 2 : Ready to review; theoretically ready to land #

Total comments: 25

Patch Set 3 : Nits #

Patch Set 4 : 500d #

Total comments: 12

Patch Set 5 : Move values to telemetry.value directory #

Patch Set 6 : Order issues addressed. Ready for review. #

Total comments: 7

Patch Set 7 : Fix ordering issue + feedback from tonyg #

Patch Set 8 : Ready to land #

Patch Set 9 : Ready to land #

Patch Set 10 : Ready to land if itd stop 500-ing me #

Patch Set 11 : keep on trying #

Patch Set 12 : keep on trying #

Patch Set 13 : keep on trying #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1837 lines, -559 lines) Patch
M tools/perf/benchmarks/dom_perf.py View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M tools/perf/benchmarks/peacekeeper.py View 1 2 3 4 5 6 7 3 chunks +6 lines, -6 lines 0 comments Download
M tools/perf/measurements/page_cycler_unittest.py View 1 2 3 4 5 1 chunk +11 lines, -9 lines 0 comments Download
M tools/perf/metrics/smoothness_unittest.py View 1 2 3 4 5 1 chunk +13 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/page/block_page_measurement_results.py View 1 2 3 4 5 1 chunk +6 lines, -11 lines 0 comments Download
M tools/telemetry/telemetry/page/buildbot_page_measurement_results.py View 1 2 3 4 5 6 3 chunks +139 lines, -92 lines 0 comments Download
M tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py View 1 2 3 4 5 6 15 chunks +163 lines, -50 lines 0 comments Download
M tools/telemetry/telemetry/page/csv_page_measurement_results.py View 1 2 3 4 5 4 chunks +41 lines, -26 lines 0 comments Download
M tools/telemetry/telemetry/page/csv_page_measurement_results_unittest.py View 1 2 3 4 5 3 chunks +17 lines, -17 lines 0 comments Download
M tools/telemetry/telemetry/page/html_page_measurement_results.py View 1 2 3 4 3 chunks +16 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/page/html_page_measurement_results_unittest.py View 1 2 3 4 5 3 chunks +162 lines, -160 lines 0 comments Download
M tools/telemetry/telemetry/page/page.py View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_measurement_results.py View 1 2 3 4 5 1 chunk +79 lines, -88 lines 0 comments Download
M tools/telemetry/telemetry/page/page_measurement_results_unittest.py View 1 2 3 4 5 2 chunks +115 lines, -47 lines 0 comments Download
M tools/telemetry/telemetry/page/page_measurement_unittest.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
tools/telemetry/telemetry/page/page_measurement_value.py View 1 5 6 7 1 chunk +0 lines, -32 lines 0 comments Download
M tools/telemetry/telemetry/page/page_test_results.py View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page/page_test_results_unittest.py View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_unittest.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/__init__.py View 1 2 3 4 5 6 7 1 chunk +182 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/histogram.py View 1 2 3 4 5 6 7 1 chunk +97 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/histogram_unittest.py View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/list_of_scalar_values.py View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/list_of_scalar_values_unittest.py View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/merge_values.py View 1 2 3 4 5 6 7 1 chunk +116 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/merge_values_unittest.py View 1 2 3 4 5 6 7 1 chunk +118 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/scalar.py View 1 2 3 4 5 6 7 1 chunk +67 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/scalar_unittest.py View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/value_backcompat.py View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/value/value_unittest_.py View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
nduca
Very WIP. The key concept i'm playing around with here is there being a Value ...
7 years, 2 months ago (2013-10-16 08:41:50 UTC) #1
nduca
Ready for review. Wow that was a painful slog.
7 years, 2 months ago (2013-10-21 09:31:59 UTC) #2
qyearsley
On 2013/10/21 09:31:59, nduca wrote: > Ready for review. Wow that was a painful slog. ...
7 years, 2 months ago (2013-10-21 16:15:08 UTC) #3
qyearsley
https://codereview.chromium.org/27486002/diff/4001/tools/telemetry/telemetry/page/values.py File tools/telemetry/telemetry/page/values.py (right): https://codereview.chromium.org/27486002/diff/4001/tools/telemetry/telemetry/page/values.py#newcode9 tools/telemetry/telemetry/page/values.py:9: def _Mean(l): Since this is a function, it should ...
7 years, 2 months ago (2013-10-23 01:06:55 UTC) #4
nduca
dtu, tonyg any comments before i go fixing nits?
7 years, 2 months ago (2013-10-23 07:08:55 UTC) #5
qyearsley
https://codereview.chromium.org/27486002/diff/4001/tools/telemetry/telemetry/page/values.py File tools/telemetry/telemetry/page/values.py (right): https://codereview.chromium.org/27486002/diff/4001/tools/telemetry/telemetry/page/values.py#newcode399 tools/telemetry/telemetry/page/values.py:399: def _MergeLikeValuesImpl(all_values, key_func, merge_func): 1. Curious: What exactly does ...
7 years, 1 month ago (2013-10-26 19:05:40 UTC) #6
nduca
@qyearsly, I've done a pass at the nits you provided. I had a few disagreements ...
7 years, 1 month ago (2013-10-26 21:35:04 UTC) #7
qyearsley
On 2013/10/26 21:35:04, nduca wrote: > > tools/telemetry/telemetry/page/values.py:99: """Returns the buildbot's > > equivalent value.""" ...
7 years, 1 month ago (2013-10-26 22:29:39 UTC) #8
nduca
@dtu, you didn't post your comments. Guys, c'mon...
7 years, 1 month ago (2013-10-31 09:46:03 UTC) #9
qyearsley
On 2013/10/31 09:46:03, nduca wrote: > @dtu, you didn't post your comments. Guys, c'mon... Yep, ...
7 years, 1 month ago (2013-10-31 16:15:34 UTC) #10
dtu
https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/docs/telemetry.page.page_measurement_results.html File tools/telemetry/docs/telemetry.page.page_measurement_results.html (right): https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/docs/telemetry.page.page_measurement_results.html#newcode1 tools/telemetry/docs/telemetry.page.page_measurement_results.html:1: Get rid of this. https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/telemetry/page/page.py File tools/telemetry/telemetry/page/page.py (right): https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/telemetry/page/page.py#newcode37 ...
7 years, 1 month ago (2013-10-31 23:24:29 UTC) #11
dtu
https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/telemetry/page/block_page_measurement_results.py File tools/telemetry/telemetry/page/block_page_measurement_results.py (right): https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/telemetry/page/block_page_measurement_results.py#newcode23 tools/telemetry/telemetry/page/block_page_measurement_results.py:23: values_by_value_name = {} You're doing this same value sorting ...
7 years, 1 month ago (2013-11-01 00:16:31 UTC) #12
tonyg
This change is both All-Kinds-Of-Awesome and terrifying at the same time. I'd be pretty surprised ...
7 years, 1 month ago (2013-11-04 20:15:03 UTC) #13
nduca
> https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py#newcode83 > tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py:83: > '*RESULT a: a= [7,3] seconds\nAvg a: 5.000000seconds\n' + > I ...
7 years, 1 month ago (2013-11-05 03:43:29 UTC) #14
tonyg
On 2013/11/05 03:43:29, nduca wrote: > > > https://codereview.chromium.org/27486002/diff/134001/tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py#newcode83 > > > tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py:83: > > ...
7 years, 1 month ago (2013-11-05 03:47:53 UTC) #15
nduca
The order within a page is not changed. The order of runs across pages is ...
7 years, 1 month ago (2013-11-05 04:11:19 UTC) #16
tonyg
tl;dr RESULT a_by_url: http___www.bar.com_= 7 seconds RESULT a_by_url: http___www.foo.com_= 3 seconds vs. RESULT a_by_url: http___www.foo.com_= ...
7 years, 1 month ago (2013-11-05 04:48:43 UTC) #17
nduca
That helps, I think I can make it work if we relax the alphabetization. I ...
7 years, 1 month ago (2013-11-05 05:01:46 UTC) #18
tonyg
On 2013/11/05 05:01:46, nduca wrote: > That helps, I think I can make it work ...
7 years, 1 month ago (2013-11-05 05:02:35 UTC) #19
nduca
Sorry for the long delay folks. I hate it when they make me do my ...
7 years, 1 month ago (2013-11-16 07:47:33 UTC) #20
tonyg
Looking really close, a few more comments. https://codereview.chromium.org/27486002/diff/484001/tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py File tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py (right): https://codereview.chromium.org/27486002/diff/484001/tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py#newcode252 tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py:252: '*RESULT a: ...
7 years, 1 month ago (2013-11-16 16:53:25 UTC) #21
nduca
Thanks for the weekend review! Will dig into the actual value difference on that one ...
7 years, 1 month ago (2013-11-16 22:33:23 UTC) #22
nduca
Ordering issue fixed, turned out to be a one line mistake in buildbot. I changed ...
7 years, 1 month ago (2013-11-16 22:57:52 UTC) #23
tonyg
lgtm PLMK when you decide to land this (ideally on a weekday morning) and I'll ...
7 years, 1 month ago (2013-11-17 16:35:12 UTC) #24
nduca
Yeah, I'll touch base with you Monday morning and we can come up with a ...
7 years, 1 month ago (2013-11-17 23:27:27 UTC) #25
dtu
7 years, 1 month ago (2013-11-22 22:57:42 UTC) #26
LGTMDCOMMIT!!!

( ͡° ͜ʖ ͡°)

Powered by Google App Engine
This is Rietveld 408576698