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

Issue 2563383003: DevTools: add extension API to contribute trace events to timeline (Closed)

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

Description

DevTools: add extension API to contribute trace events to timeline This introduced a notion of tracing session to chrome.devtools.timeline API and lets API client to supply a URL of the trace data to append to the flame chart. This also includes: - exposing a check-box for each extension in Timeline toolbar to selectively enable extensions; - extracting Timeline.LoaderClient from TimelineLifecycleDelegate so that loader can be re-used outside of the panel; - create a temp file in TimelineBackingStorage lazily, only when data are actually written there; - changing TimelineController.startRecording() to accept options as a struct rather than a bunch of boolean parameters; - support for dumping a FlameChartDataProvider in tests; - a new type of events in TimelineFlameChart to support extensions; BUG=620066 Committed: https://crrev.com/fbcdc87dd794c67cc5dd809e08986ed364681d5c Cr-Commit-Position: refs/heads/master@{#438734}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review comments + better test #

Total comments: 2

Patch Set 3 : added ExtensionTracingSession #

Patch Set 4 : lint + new compiler warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -117 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js View 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html View 1 2 1 chunk +57 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api-expected.txt View 1 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js View 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAPI.js View 1 2 3 3 chunks +32 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js View 1 2 6 chunks +29 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js View 1 2 3 2 chunks +47 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js View 1 7 chunks +43 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/timeline/ExtensionTracingSession.js View 1 2 3 1 chunk +78 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js View 6 chunks +32 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js View 1 2 3 17 chunks +73 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js View 1 4 chunks +18 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js View 1 2 3 15 chunks +111 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/module.json View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
caseq
4 years ago (2016-12-13 02:02:55 UTC) #2
alph
Can we have a screenshot of checkboxes
4 years ago (2016-12-13 02:35:54 UTC) #5
alph
Can we have a screenshot of checkboxes
4 years ago (2016-12-13 02:35:55 UTC) #6
pfeldman
I thought we were focusing on the polish bugs!
4 years ago (2016-12-13 19:16:06 UTC) #7
alph
https://codereview.chromium.org/2563383003/diff/20001/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html File third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html (right): https://codereview.chromium.org/2563383003/diff/20001/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html#newcode58 third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html:58: extension_startTimeline(() => extension_stopTimeline(() => { onTimelineReady(); })); If you ...
4 years ago (2016-12-13 20:16:49 UTC) #8
caseq
Review comments addressed, ptal.
4 years ago (2016-12-13 22:59:01 UTC) #9
alph
lgtm https://codereview.chromium.org/2563383003/diff/40001/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html File third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html (right): https://codereview.chromium.org/2563383003/diff/40001/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html#newcode49 third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html:49: {"name": "Extension record X 1", "ts": start, "dur": ...
4 years ago (2016-12-14 00:17:32 UTC) #10
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/2563383003/40001
4 years ago (2016-12-14 19:31:12 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/314859)
4 years ago (2016-12-14 20:05:04 UTC) #14
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/2563383003/60001
4 years ago (2016-12-14 22:42:13 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/356596)
4 years ago (2016-12-15 01:27:13 UTC) #19
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/2563383003/80001
4 years ago (2016-12-15 02:45:39 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-15 04:21:12 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-15 04:24:02 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fbcdc87dd794c67cc5dd809e08986ed364681d5c
Cr-Commit-Position: refs/heads/master@{#438734}

Powered by Google App Engine
This is Rietveld 408576698