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

Issue 10836202: Refactor/rewrite scroll.js, reporting results as renderingStats objects. (Closed)

Created:
8 years, 4 months ago by dtu
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, Nirnimesh, jam, apatrick_chromium, joi+watch-content_chromium.org, Aaron Boodman, anantha, darin-cc_chromium.org, dyu1, pam+watch_chromium.org, tonyg
Visibility:
Public.

Description

Refactor/rewrite scroll.js. The file has been rewritten to conform to Google's JavaScript style, moving all of the __private_variables into a class. Results are now reported as a list of renderingStats objects. If gpuBenchmarking is unavailable, it falls back to measuring frame times using RAF and populating some of the renderingStats fields. The way the test is called has changed. Previously, you would call __scroll_test(), wait for __scrolling_complete, then read __frame_times. Now you call new ScrollTest(callback), which takes a callback as a parameter, and calls that with the results list when the test is finished. This simplifies the way it is called in perf.py. gpu_benchmarking_extension.cc no longer checks if the fields are nonzero. This was a problem when the droppedFrameCount really was 0, but it wouldn't populate that field as it should. BUG=137789, 141477 TEST=This is a test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152041

Patch Set 1 : Initial commit. #

Total comments: 28

Patch Set 2 : Put RafScrollStats into its own RAF loop. Assorted other cleanup. #

Total comments: 12

Patch Set 3 : More changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -204 lines) Patch
M chrome/test/data/scroll/scroll.js View 1 2 1 chunk +162 lines, -103 lines 0 comments Download
M chrome/test/functional/perf.py View 1 2 7 chunks +65 lines, -81 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 chunk +10 lines, -20 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
dtu
PTAL
8 years, 4 months ago (2012-08-13 20:59:12 UTC) #1
jamesr
C++ stuff LGTM
8 years, 4 months ago (2012-08-13 21:02:00 UTC) #2
nduca
With these new changes (which are great) you run the risk of namespace collisions. Wrap ...
8 years, 4 months ago (2012-08-13 22:37:06 UTC) #3
nduca
Some more cleanup ideas https://chromiumcodereview.appspot.com/10836202/diff/5001/chrome/test/data/scroll/scroll.js File chrome/test/data/scroll/scroll.js (right): https://chromiumcodereview.appspot.com/10836202/diff/5001/chrome/test/data/scroll/scroll.js#newcode16 chrome/test/data/scroll/scroll.js:16: window.performance = window.performance || {}; ...
8 years, 4 months ago (2012-08-14 00:24:33 UTC) #4
dtu
Sorry, the anonymous function wrapper completely destroyed the diff. https://chromiumcodereview.appspot.com/10836202/diff/5001/chrome/test/data/scroll/scroll.js File chrome/test/data/scroll/scroll.js (right): https://chromiumcodereview.appspot.com/10836202/diff/5001/chrome/test/data/scroll/scroll.js#newcode16 chrome/test/data/scroll/scroll.js:16: ...
8 years, 4 months ago (2012-08-16 02:31:10 UTC) #5
nduca
LGTM with nit https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/data/scroll/scroll.js File chrome/test/data/scroll/scroll.js (right): https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/data/scroll/scroll.js#newcode150 chrome/test/data/scroll/scroll.js:150: ScrollTest.prototype.sendResults_ = function() { you can ...
8 years, 4 months ago (2012-08-16 02:42:58 UTC) #6
dennis_jeffrey
2 comments for perf.py https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/functional/perf.py#newcode589 chrome/test/functional/perf.py:589: logging.info('Iteration %d of %d: %f ...
8 years, 4 months ago (2012-08-16 17:50:58 UTC) #7
dtu
https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/data/scroll/scroll.js File chrome/test/data/scroll/scroll.js (right): https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/data/scroll/scroll.js#newcode150 chrome/test/data/scroll/scroll.js:150: ScrollTest.prototype.sendResults_ = function() { On 2012/08/16 02:42:59, nduca wrote: ...
8 years, 4 months ago (2012-08-16 19:12:36 UTC) #8
slamm_google
https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/functional/perf.py#newcode2209 chrome/test/functional/perf.py:2209: '--enable-stats-table', On 2012/08/16 19:12:39, Dave Tu wrote: > On ...
8 years, 4 months ago (2012-08-16 19:33:51 UTC) #9
dennis_jeffrey
https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10836202/diff/10006/chrome/test/functional/perf.py#newcode2209 chrome/test/functional/perf.py:2209: '--enable-stats-table', On 2012/08/16 19:33:52, slamm wrote: > On 2012/08/16 ...
8 years, 4 months ago (2012-08-16 21:00:36 UTC) #10
nduca
I think we should land as is and do a follow up bug. This particular ...
8 years, 4 months ago (2012-08-16 21:02:00 UTC) #11
dennis_jeffrey
On 2012/08/16 21:02:00, nduca wrote: > I think we should land as is and do ...
8 years, 4 months ago (2012-08-16 21:08:09 UTC) #12
dtu
On 2012/08/16 21:08:09, dennis_jeffrey wrote: > On 2012/08/16 21:02:00, nduca wrote: > > I think ...
8 years, 4 months ago (2012-08-16 21:49:16 UTC) #13
dennis_jeffrey
LGTM thanks!
8 years, 4 months ago (2012-08-16 21:53:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtu@chromium.org/10836202/11006
8 years, 4 months ago (2012-08-16 22:19:48 UTC) #15
commit-bot: I haz the power
Try job failure for 10836202-11006 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-17 00:19:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtu@chromium.org/10836202/11006
8 years, 4 months ago (2012-08-17 00:53:23 UTC) #17
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 04:34:48 UTC) #18
Change committed as 152041

Powered by Google App Engine
This is Rietveld 408576698