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

Issue 11340037: Chrome remote control multi-page tests: Enable printing out histograms. (Closed)

Created:
8 years, 1 month ago by marja
Modified:
8 years, 1 month ago
Reviewers:
bulach, tonyg
CC:
chromium-reviews, pam+watch_chromium.org, peter+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Visibility:
Public.

Description

Chrome remote control multi-page tests: Enable printing out histograms. BUG=158323 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165132

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : code review (tonyg) #

Patch Set 4 : code review (tonyg) cont. #

Total comments: 6

Patch Set 5 : style fix #

Patch Set 6 : Code review (bulach) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -24 lines) Patch
M build/android/pylib/perf_tests_helper.py View 1 2 3 4 5 3 chunks +54 lines, -15 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py View 1 2 3 4 6 chunks +18 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
marja
tonyg, bulach, ptal. bulach: build/android/pylib/perf_tests_helper.py tonyg: tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py
8 years, 1 month ago (2012-10-30 09:19:22 UTC) #1
marja
... forgot to say, that this is needed by http://codereview.chromium.org/11273081/
8 years, 1 month ago (2012-10-30 15:18:30 UTC) #2
tonyg
http://codereview.chromium.org/11340037/diff/3001/build/android/pylib/perf_tests_helper.py File build/android/pylib/perf_tests_helper.py (right): http://codereview.chromium.org/11340037/diff/3001/build/android/pylib/perf_tests_helper.py#newcode49 build/android/pylib/perf_tests_helper.py:49: result_type == 'informational'): if result_type in ['unimportant', 'default', 'informational']: ...
8 years, 1 month ago (2012-10-30 15:52:59 UTC) #3
marja
Thanks for comments! http://codereview.chromium.org/11340037/diff/3001/build/android/pylib/perf_tests_helper.py File build/android/pylib/perf_tests_helper.py (right): http://codereview.chromium.org/11340037/diff/3001/build/android/pylib/perf_tests_helper.py#newcode49 build/android/pylib/perf_tests_helper.py:49: result_type == 'informational'): On 2012/10/30 15:52:59, ...
8 years, 1 month ago (2012-10-30 17:18:59 UTC) #4
marja
http://codereview.chromium.org/11340037/diff/3001/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/11340037/diff/3001/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py#newcode34 tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py:34: self.histograms = defaultdict(list) On 2012/10/30 17:19:01, marja wrote: > ...
8 years, 1 month ago (2012-10-30 17:20:22 UTC) #5
marja
http://codereview.chromium.org/11340037/diff/3001/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/11340037/diff/3001/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py#newcode34 tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py:34: self.histograms = defaultdict(list) On 2012/10/30 17:20:22, marja wrote: > ...
8 years, 1 month ago (2012-10-30 17:30:21 UTC) #6
bulach
thanks marja! just some ignorable suggestions, feel free to go ahead once tony is happy ...
8 years, 1 month ago (2012-10-30 18:46:28 UTC) #7
tonyg
lgtm http://codereview.chromium.org/11340037/diff/7002/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/11340037/diff/7002/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py#newcode42 tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py:42: def Add(self, name, units, value, data_type = 'default'): ...
8 years, 1 month ago (2012-10-30 19:41:38 UTC) #8
marja
Thanks for review! http://codereview.chromium.org/11340037/diff/7002/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/11340037/diff/7002/tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py#newcode42 tools/chrome_remote_control/chrome_remote_control/multi_page_benchmark.py:42: def Add(self, name, units, value, data_type ...
8 years, 1 month ago (2012-10-31 09:07:50 UTC) #9
marja
8 years, 1 month ago (2012-10-31 09:15:59 UTC) #10
http://codereview.chromium.org/11340037/diff/7002/build/android/pylib/perf_te...
File build/android/pylib/perf_tests_helper.py (right):

http://codereview.chromium.org/11340037/diff/7002/build/android/pylib/perf_te...
build/android/pylib/perf_tests_helper.py:46: sum_of_squares += (bucket['mean'] -
geom_mean) ** 2 * bucket['count']
On 2012/10/30 18:46:28, bulach wrote:
> not sure if this would be any clearer, feel free to ignore... :)
> 
> sum_of_squares = sum((b['mean'] - geom_mean) ** 2 * b['count']
>     for b in histogram['buckets'] if b['mean'] > 0)

Discussed this offline: This code is copied -> decided to leave it as is, to
make it easier to merge them later..

http://codereview.chromium.org/11340037/diff/7002/build/android/pylib/perf_te...
build/android/pylib/perf_tests_helper.py:89: value = values[0]
On 2012/10/30 18:46:28, bulach wrote:
> maybe split 74-89 into GeomMeandAndStdDevFromList ?

Done.

Powered by Google App Engine
This is Rietveld 408576698