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

Issue 1515006: Playback benchmark scripts. (Closed)

Created:
10 years, 8 months ago by podivilov
Modified:
9 years, 3 months ago
Reviewers:
Vitaly Repeshko
CC:
chromium-reviews
Visibility:
Public.

Description

Playback benchmark scripts.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 26

Patch Set 5 : '' #

Total comments: 20

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+932 lines, -0 lines) Patch
A tools/playback_benchmark/common.js View 1 2 3 4 5 1 chunk +318 lines, -0 lines 0 comments Download
A tools/playback_benchmark/playback.js View 1 2 3 4 5 1 chunk +256 lines, -0 lines 0 comments Download
A tools/playback_benchmark/playback_driver.py View 1 2 3 4 5 1 chunk +196 lines, -0 lines 0 comments Download
A tools/playback_benchmark/proxy_handler.py View 1 2 3 4 5 1 chunk +123 lines, -0 lines 0 comments Download
A tools/playback_benchmark/run.py View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
podivilov
10 years, 8 months ago (2010-03-30 16:12:40 UTC) #1
Vitaly Repeshko
I only looked at the python parts so far. http://codereview.chromium.org/1515006/diff/14001/15004 File tools/playback_benchmark/playback_driver.py (right): http://codereview.chromium.org/1515006/diff/14001/15004#newcode11 tools/playback_benchmark/playback_driver.py:11: ...
10 years, 8 months ago (2010-04-10 02:24:38 UTC) #2
podivilov
Thanks for review, Vitaly! http://codereview.chromium.org/1515006/diff/14001/15004 File tools/playback_benchmark/playback_driver.py (right): http://codereview.chromium.org/1515006/diff/14001/15004#newcode11 tools/playback_benchmark/playback_driver.py:11: from sys import stdout, stderr ...
10 years, 8 months ago (2010-04-12 11:44:24 UTC) #3
Vitaly Repeshko
LGTM http://codereview.chromium.org/1515006/diff/20001/21002 File tools/playback_benchmark/common.js (right): http://codereview.chromium.org/1515006/diff/20001/21002#newcode23 tools/playback_benchmark/common.js:23: window.setTimeout = function(callback, timeout) { Instead of having ...
10 years, 7 months ago (2010-05-12 13:41:50 UTC) #4
podivilov
10 years, 7 months ago (2010-05-19 13:31:08 UTC) #5
http://codereview.chromium.org/1515006/diff/20001/21002
File tools/playback_benchmark/common.js (right):

http://codereview.chromium.org/1515006/diff/20001/21002#newcode23
tools/playback_benchmark/common.js:23: window.setTimeout = function(callback,
timeout) {
On 2010/05/12 13:41:50, Vitaly wrote:
> Instead of having all overrides in top-level code consider moving them to a
> function installOverrides(window). This function can also be used when setting
> up frames.

Done.

http://codereview.chromium.org/1515006/diff/20001/21002#newcode41
tools/playback_benchmark/common.js:41: 
On 2010/05/12 13:41:50, Vitaly wrote:
> At least, log something here.

Done.

http://codereview.chromium.org/1515006/diff/20001/21002#newcode48
tools/playback_benchmark/common.js:48: window.addEventListener = function(type,
listener, useCapture) {
On 2010/05/12 13:41:50, Vitaly wrote:
> I think we need remove listeners methods as well. Otherwise, we might keep
> reporting events to listeners that the app thinks it has removed.

Done.

http://codereview.chromium.org/1515006/diff/20001/21002#newcode49
tools/playback_benchmark/common.js:49: if (type == 'mousemove' || type ==
'mouseover' || type == 'mouseout') return;
On 2010/05/12 13:41:50, Vitaly wrote:
> Extract the list of ignored events.

Done.

http://codereview.chromium.org/1515006/diff/20001/21002#newcode112
tools/playback_benchmark/common.js:112: window.__defineSetter__('onload',
function() {});
On 2010/05/12 13:41:50, Vitaly wrote:
> Should this setter function log a warning?

Done.

http://codereview.chromium.org/1515006/diff/20001/21002#newcode115
tools/playback_benchmark/common.js:115:
Benchmark.originals.addEventListenerToWindow.call(window, 'DOMContentLoaded',
Good point! I've added dynamic frames as well.

http://codereview.chromium.org/1515006/diff/20001/21002#newcode256
tools/playback_benchmark/common.js:256: try { (0)() } catch(ex) {
console.error(ex.stack); }
Unfortunately it does not work in chrome, so let's keep it for now.

http://codereview.chromium.org/1515006/diff/20001/21001
File tools/playback_benchmark/playback.js (right):

http://codereview.chromium.org/1515006/diff/20001/21001#newcode125
tools/playback_benchmark/playback.js:125:
Benchmark.Agent.prototype.readyToExecuteScript = function(scriptId, doc,
inlined, src) {
On 2010/05/12 13:41:50, Vitaly wrote:
> nit: long line.

Done.

http://codereview.chromium.org/1515006/diff/20001/21001#newcode248
tools/playback_benchmark/playback.js:248:
Benchmark.originals.addEventListenerToWindow.call(window, 'message',
function(event) {
On 2010/05/12 13:41:50, Vitaly wrote:
> nit: long line.

Done.

http://codereview.chromium.org/1515006/diff/20001/21004
File tools/playback_benchmark/playback_driver.py (right):

http://codereview.chromium.org/1515006/diff/20001/21004#newcode35
tools/playback_benchmark/playback_driver.py:35: } {
On 2010/05/12 13:41:50, Vitaly wrote:
> Huh? Missing else?

Done.

Powered by Google App Engine
This is Rietveld 408576698