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

Issue 1748993002: DevTools: Initial implementation of line-level CPU profile. (Closed)

Created:
4 years, 9 months ago by alph
Modified:
4 years, 9 months ago
Reviewers:
caseq, lushnikov, pfeldman
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, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Initial implementation of line-level CPU profile. The JS CPU profile is available when there's a recorded timeline with a JS profile. It is put behind an experiment. Things to do: - support source maps. - make it possible to hide profile without reseting timeline. BUG=590936 Committed: https://crrev.com/18c02c057c1d9d9938341fb2f4dcad2a3aef9acc Cr-Commit-Position: refs/heads/master@{#380873}

Patch Set 1 #

Patch Set 2 : Fix Unknown experiment lineLevelProfile Error #

Patch Set 3 : remove JSSF to sdk dependency #

Total comments: 7

Patch Set 4 : add decorators #

Total comments: 26

Patch Set 5 : moving around #

Total comments: 6

Patch Set 6 : Make use of module extensions #

Patch Set 7 : fix an annotation #

Patch Set 8 : rebaseline #

Total comments: 20

Patch Set 9 : cut out markers patch. #

Patch Set 10 : add annotation #

Patch Set 11 : fix padding #

Patch Set 12 : added a test. #

Total comments: 10

Patch Set 13 : addressing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -47 lines) Patch
A third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +82 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/cmdevtools.css View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +51 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js View 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +62 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/module.json View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
alph
4 years, 9 months ago (2016-03-01 01:34:19 UTC) #2
pbakaus
On 2016/03/01 at 01:34:19, alph wrote: > You are my hero.
4 years, 9 months ago (2016-03-01 18:48:52 UTC) #3
alph
ptal
4 years, 9 months ago (2016-03-02 01:29:58 UTC) #4
lushnikov
https://codereview.chromium.org/1748993002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/1748993002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1127 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1127: this._codeMirror.setOption("gutters", ["CodeMirror-linenumbers", "CodeMirror-profile-info"]); isn't refresh needed here as well? ...
4 years, 9 months ago (2016-03-02 03:19:13 UTC) #5
alph
https://codereview.chromium.org/1748993002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/1748993002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1127 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1127: this._codeMirror.setOption("gutters", ["CodeMirror-linenumbers", "CodeMirror-profile-info"]); On 2016/03/02 03:19:12, lushnikov wrote: > ...
4 years, 9 months ago (2016-03-02 18:34:34 UTC) #6
pfeldman
https://codereview.chromium.org/1748993002/diff/60001/third_party/WebKit/Source/devtools/front_end/main/Main.js File third_party/WebKit/Source/devtools/front_end/main/Main.js (right): https://codereview.chromium.org/1748993002/diff/60001/third_party/WebKit/Source/devtools/front_end/main/Main.js#newcode117 third_party/WebKit/Source/devtools/front_end/main/Main.js:117: Runtime.experiments.register("lineLevelProfile", "Source line level CPU profiles"); Lets launch this ...
4 years, 9 months ago (2016-03-02 19:48:59 UTC) #7
alph
ptal https://codereview.chromium.org/1748993002/diff/60001/third_party/WebKit/Source/devtools/front_end/main/Main.js File third_party/WebKit/Source/devtools/front_end/main/Main.js (right): https://codereview.chromium.org/1748993002/diff/60001/third_party/WebKit/Source/devtools/front_end/main/Main.js#newcode117 third_party/WebKit/Source/devtools/front_end/main/Main.js:117: Runtime.experiments.register("lineLevelProfile", "Source line level CPU profiles"); On 2016/03/02 ...
4 years, 9 months ago (2016-03-03 02:02:52 UTC) #8
pfeldman
https://codereview.chromium.org/1748993002/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js (right): https://codereview.chromium.org/1748993002/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js#newcode600 third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js:600: WebInspector.UISourceCodeFrame._lineMarkerDecorator._decorators.set("performance", new WebInspector.UISourceCodeFrame.PerformanceDecorator()); this should move to the profiler ...
4 years, 9 months ago (2016-03-03 02:38:42 UTC) #9
alph
ptal https://codereview.chromium.org/1748993002/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js (right): https://codereview.chromium.org/1748993002/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js#newcode600 third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js:600: WebInspector.UISourceCodeFrame._lineMarkerDecorator._decorators.set("performance", new WebInspector.UISourceCodeFrame.PerformanceDecorator()); On 2016/03/03 02:38:42, pfeldman wrote: ...
4 years, 9 months ago (2016-03-05 00:37:09 UTC) #10
pfeldman
https://codereview.chromium.org/1748993002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/1748993002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1141 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1141: this._codeMirror.setGutterMarker(lineNumber, "CodeMirror-linemarkers-" + type, element); Throttle using operation? https://codereview.chromium.org/1748993002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/cmdevtools.css ...
4 years, 9 months ago (2016-03-07 19:57:50 UTC) #11
alph
https://codereview.chromium.org/1748993002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/1748993002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1141 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1141: this._codeMirror.setGutterMarker(lineNumber, "CodeMirror-linemarkers-" + type, element); On 2016/03/07 19:57:50, pfeldman ...
4 years, 9 months ago (2016-03-08 00:57:43 UTC) #12
pfeldman
this requires a test.
4 years, 9 months ago (2016-03-09 02:15:01 UTC) #13
alph
On 2016/03/09 02:15:01, pfeldman wrote: > this requires a test. done. ptal
4 years, 9 months ago (2016-03-10 18:45:16 UTC) #14
pfeldman
lgtm
4 years, 9 months ago (2016-03-11 22:42:02 UTC) #15
caseq
https://codereview.chromium.org/1748993002/diff/220001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js File third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js (right): https://codereview.chromium.org/1748993002/diff/220001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js#newcode531 third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js:531: var text = WebInspector.UIString("%.1f\xa0ms", time); Can we get UI ...
4 years, 9 months ago (2016-03-11 22:52:06 UTC) #17
alph
https://codereview.chromium.org/1748993002/diff/220001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js File third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js (right): https://codereview.chromium.org/1748993002/diff/220001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js#newcode531 third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js:531: var text = WebInspector.UIString("%.1f\xa0ms", time); On 2016/03/11 22:52:05, caseq ...
4 years, 9 months ago (2016-03-12 00:47:54 UTC) #18
caseq
lgtm
4 years, 9 months ago (2016-03-12 00:58:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748993002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748993002/240001
4 years, 9 months ago (2016-03-12 01:05:51 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195893)
4 years, 9 months ago (2016-03-12 03:19:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748993002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748993002/240001
4 years, 9 months ago (2016-03-12 08:31:31 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 9 months ago (2016-03-12 10:06:54 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-12 10:08:23 UTC) #29
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/18c02c057c1d9d9938341fb2f4dcad2a3aef9acc
Cr-Commit-Position: refs/heads/master@{#380873}

Powered by Google App Engine
This is Rietveld 408576698