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

Issue 2858783003: Refactor prepareToMeasureValuesAsync to startMeasureValuesAsyn which run test through callback (Closed)

Created:
3 years, 7 months ago by nednguyen
Modified:
3 years, 7 months ago
Reviewers:
Xianzhu
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor prepareToMeasureValuesAsync to startMeasureValuesAsyn which run test through callback Motivation: In order to support tracing metrics for prepareToMeasureValuesAsync method, we need to be able to trigger tracing between prepareToMeasureValuesAsync & actual test run. This CL rename prepareToMeasureValuesAsync method to startMeasureValuesAsyn & refactor it so that the actual test code is specified as a callback, which allows the framework to interject the startTrace() call before running test in the future. BUG=701059 Review-Url: https://codereview.chromium.org/2858783003 Cr-Commit-Position: refs/heads/master@{#469233} Committed: https://chromium.googlesource.com/chromium/src/+/8dc2204a41db0b7b0f66c529c53d4c4a5d9d7fb5

Patch Set 1 #

Patch Set 2 : update #

Total comments: 9

Patch Set 3 : More progresses #

Patch Set 4 : update #

Total comments: 10

Patch Set 5 : Address Xianzhu's review comments #

Messages

Total messages: 21 (9 generated)
nednguyen
This is not the full CL, if you think the high level direction here is ...
3 years, 7 months ago (2017-05-03 16:42:07 UTC) #4
Xianzhu
https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js File third_party/WebKit/PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js#newcode275 third_party/WebKit/PerformanceTests/resources/runner.js:275: start(test, undefined, test.run); How about: start(test, function(task) { task(); ...
3 years, 7 months ago (2017-05-03 17:14:25 UTC) #5
nednguyen
https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js File third_party/WebKit/PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js#newcode275 third_party/WebKit/PerformanceTests/resources/runner.js:275: start(test, undefined, test.run); On 2017/05/03 17:14:25, Xianzhu wrote: > ...
3 years, 7 months ago (2017-05-03 18:21:52 UTC) #6
nednguyen
On 2017/05/03 18:21:52, nednguyen wrote: > https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js > File third_party/WebKit/PerformanceTests/resources/runner.js (right): > > https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js#newcode275 > ...
3 years, 7 months ago (2017-05-03 18:31:21 UTC) #7
Xianzhu
https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js File third_party/WebKit/PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js#newcode148 third_party/WebKit/PerformanceTests/resources/runner.js:148: if (!test) { Add "|| !runner" because with this ...
3 years, 7 months ago (2017-05-03 19:16:00 UTC) #8
nednguyen
https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js File third_party/WebKit/PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/2858783003/diff/40001/third_party/WebKit/PerformanceTests/resources/runner.js#newcode148 third_party/WebKit/PerformanceTests/resources/runner.js:148: if (!test) { On 2017/05/03 19:16:00, Xianzhu wrote: > ...
3 years, 7 months ago (2017-05-03 19:18:51 UTC) #9
nednguyen
I realize that just by setting test.run = function() {}, we won't change the current ...
3 years, 7 months ago (2017-05-03 21:30:00 UTC) #10
Xianzhu
lgtm https://codereview.chromium.org/2858783003/diff/70001/third_party/WebKit/PerformanceTests/Bindings/post-message.html File third_party/WebKit/PerformanceTests/Bindings/post-message.html (right): https://codereview.chromium.org/2858783003/diff/70001/third_party/WebKit/PerformanceTests/Bindings/post-message.html#newcode35 third_party/WebKit/PerformanceTests/Bindings/post-message.html:35: }, Nit: a simpler way is run: runTest, ...
3 years, 7 months ago (2017-05-03 22:06:26 UTC) #11
nednguyen
https://codereview.chromium.org/2858783003/diff/70001/third_party/WebKit/PerformanceTests/Bindings/post-message.html File third_party/WebKit/PerformanceTests/Bindings/post-message.html (right): https://codereview.chromium.org/2858783003/diff/70001/third_party/WebKit/PerformanceTests/Bindings/post-message.html#newcode35 third_party/WebKit/PerformanceTests/Bindings/post-message.html:35: }, On 2017/05/03 22:06:25, Xianzhu wrote: > Nit: a ...
3 years, 7 months ago (2017-05-04 00:10:33 UTC) #12
nednguyen
https://codereview.chromium.org/2858783003/diff/70001/third_party/WebKit/PerformanceTests/resources/runner.js File third_party/WebKit/PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/2858783003/diff/70001/third_party/WebKit/PerformanceTests/resources/runner.js#newcode278 third_party/WebKit/PerformanceTests/resources/runner.js:278: PerfTestRunner.prepareToMeasureValuesAsync = function (test) { On 2017/05/03 22:06:26, Xianzhu ...
3 years, 7 months ago (2017-05-04 00:10:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2858783003/90001
3 years, 7 months ago (2017-05-04 00:12:36 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 01:27:47 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/8dc2204a41db0b7b0f66c529c53d...

Powered by Google App Engine
This is Rietveld 408576698