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

Issue 2717393003: [DevTools] Turn starting tracing into promise. (Closed)

Created:
3 years, 9 months ago by dgozman
Modified:
3 years, 9 months ago
Reviewers:
caseq, alph
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Turn starting tracing into promise. This allows to handle suspend/resume reload logic in a single place. Also removed all kinds of now unnecessary started notifications. BUG=none Review-Url: https://codereview.chromium.org/2717393003 Cr-Commit-Position: refs/heads/master@{#453740} Committed: https://chromium.googlesource.com/chromium/src/+/760f26d93cae268813692570a21601edb223aa9e

Patch Set 1 #

Total comments: 6

Patch Set 2 : more work #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -96 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js View 1 2 chunks +3 lines, -2 lines 2 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing.html View 1 2 chunks +8 lines, -15 lines 1 comment Download
M third_party/WebKit/LayoutTests/inspector/tracing-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html View 1 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-auto-record.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Tests.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js View 1 3 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js View 1 chunk +0 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js View 1 2 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js View 1 4 chunks +7 lines, -24 lines 1 comment Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js View 1 6 chunks +12 lines, -11 lines 4 comments Download
M third_party/WebKit/Source/devtools/scripts/build/generate_protocol_externs.py View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (10 generated)
dgozman
Could you please take a look?
3 years, 9 months ago (2017-02-27 22:52:02 UTC) #2
caseq
https://codereview.chromium.org/2717393003/diff/1/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js (right): https://codereview.chromium.org/2717393003/diff/1/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js#newcode702 third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:702: var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(this._target); nit: move down to actual ...
3 years, 9 months ago (2017-02-27 23:13:38 UTC) #5
dgozman
PTAL https://codereview.chromium.org/2717393003/diff/1/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js (right): https://codereview.chromium.org/2717393003/diff/1/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js#newcode702 third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:702: var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(this._target); On 2017/02/27 23:13:38, caseq ...
3 years, 9 months ago (2017-02-28 01:58:17 UTC) #9
alph
lgtm https://codereview.chromium.org/2717393003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js (right): https://codereview.chromium.org/2717393003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js#newcode93 third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js:93: timelineController._startRecordingWithCategories(categories, enableJSSampling).then(tracingStarted); await https://codereview.chromium.org/2717393003/diff/20001/third_party/WebKit/LayoutTests/inspector/tracing.html File third_party/WebKit/LayoutTests/inspector/tracing.html (right): https://codereview.chromium.org/2717393003/diff/20001/third_party/WebKit/LayoutTests/inspector/tracing.html#newcode52 ...
3 years, 9 months ago (2017-02-28 03:11:25 UTC) #11
dgozman
https://codereview.chromium.org/2717393003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js (right): https://codereview.chromium.org/2717393003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js#newcode93 third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js:93: timelineController._startRecordingWithCategories(categories, enableJSSampling).then(tracingStarted); On 2017/02/28 03:11:24, alph wrote: > await ...
3 years, 9 months ago (2017-02-28 08:59:01 UTC) #12
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/2717393003/20001
3 years, 9 months ago (2017-02-28 19:47:45 UTC) #14
caseq
lgtm
3 years, 9 months ago (2017-02-28 21:41:36 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 23:28:18 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/760f26d93cae268813692570a216...

Powered by Google App Engine
This is Rietveld 408576698