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

Issue 1624783002: DevTools: Switch to using fast stack iterator to collect stacks during timeline recording. (Closed)

Created:
4 years, 11 months ago by alph
Modified:
4 years, 10 months ago
Reviewers:
caseq, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, shans, rjwright, yhirano+watch_chromium.org, blink-reviews-animation_chromium.org, darktears, tyoshino+watch_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, Eric Willigers, pfeldman, kozyatinskiy+blink_chromium.org, Noel Gordon
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Switch to using fast stack iterator to collect stacks during timeline recording. Stacks for events are now available only when JS profiler is enabled. BUG=579191 Committed: https://crrev.com/7384f82925b78f48aa68caf62850d24f53f49233 Cr-Commit-Position: refs/heads/master@{#372145}

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressing comments #

Total comments: 14

Patch Set 3 : addressing more caseq@ comments. #

Total comments: 2

Patch Set 4 : 4 landing #

Total comments: 10

Patch Set 5 : addressing pfeldman@ comments. #

Total comments: 4

Patch Set 6 : addressing caseq@ comments #

Total comments: 2

Patch Set 7 : address pfeldman@ comments. #

Patch Set 8 : update profiler tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -157 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-bottom-up-times.html View 1 2 3 4 5 6 7 3 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-bottom-up-times-expected.txt View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt View 1 2 3 4 17 chunks +71 lines, -73 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-callstacks-expected.txt View 1 2 3 4 2 chunks +3 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-samping-tracing-expected.txt View 1 2 3 4 1 chunk +8 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout-reason.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-script-tag-1.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-time.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/es6.js View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/externs.js View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js View 1 2 3 4 5 6 7 2 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js View 1 2 3 4 5 6 3 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js View 1 2 3 4 5 3 chunks +14 lines, -19 lines 0 comments Download

Messages

Total messages: 40 (12 generated)
alph
4 years, 11 months ago (2016-01-23 02:24:38 UTC) #2
caseq
Looks mostly good, but let's avoid regressing tests and handling of top-level frame in Timeline. ...
4 years, 11 months ago (2016-01-25 19:18:36 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624783002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624783002/1
4 years, 11 months ago (2016-01-25 19:57:57 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/12454) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 11 months ago (2016-01-25 20:15:43 UTC) #7
alph
ptal https://codereview.chromium.org/1624783002/diff/1/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/1624783002/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js#newcode83 third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js:83: panel._captureJSProfileSetting.set(true); On 2016/01/25 19:18:36, caseq wrote: > Hm... ...
4 years, 11 months ago (2016-01-26 00:58:49 UTC) #8
caseq
https://codereview.chromium.org/1624783002/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/1624783002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js#newcode74 third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js:74: InspectorTest.startTimeline = function(callback, disableSampling) callback should always be last. ...
4 years, 11 months ago (2016-01-26 01:22:04 UTC) #9
alph
https://codereview.chromium.org/1624783002/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/1624783002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js#newcode74 third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js:74: InspectorTest.startTimeline = function(callback, disableSampling) On 2016/01/26 01:22:04, caseq wrote: ...
4 years, 11 months ago (2016-01-26 02:04:51 UTC) #10
caseq
lgtm https://codereview.chromium.org/1624783002/diff/40001/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/1624783002/diff/40001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js#newcode189 third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js:189: e["stackTrace"] = stackTrace; e.stackTrace = stackTrace
4 years, 11 months ago (2016-01-26 02:09:42 UTC) #11
alph
https://codereview.chromium.org/1624783002/diff/40001/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/1624783002/diff/40001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js#newcode189 third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js:189: e["stackTrace"] = stackTrace; On 2016/01/26 02:09:42, caseq wrote: > ...
4 years, 11 months ago (2016-01-26 02:12:50 UTC) #12
alph
ping
4 years, 11 months ago (2016-01-27 01:52:17 UTC) #13
alph
On 2016/01/27 01:52:17, alph wrote: > ping @pfeldman Could you please take a look.
4 years, 11 months ago (2016-01-27 18:21:04 UTC) #14
pfeldman
https://codereview.chromium.org/1624783002/diff/60001/third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt File third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt (right): https://codereview.chromium.org/1624783002/diff/60001/third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt#newcode3 third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt:3: a: 0.000 17.030 Is there an explanation to these ...
4 years, 11 months ago (2016-01-27 18:38:36 UTC) #15
caseq
https://codereview.chromium.org/1624783002/diff/60001/third_party/WebKit/Source/devtools/front_end/externs.js File third_party/WebKit/Source/devtools/front_end/externs.js (right): https://codereview.chromium.org/1624783002/diff/60001/third_party/WebKit/Source/devtools/front_end/externs.js#newcode189 third_party/WebKit/Source/devtools/front_end/externs.js:189: Array.prototype.find = function(callback, thisArg) {} move to es6.js?
4 years, 11 months ago (2016-01-27 19:40:02 UTC) #16
alph
https://codereview.chromium.org/1624783002/diff/60001/third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt File third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt (right): https://codereview.chromium.org/1624783002/diff/60001/third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt#newcode3 third_party/WebKit/LayoutTests/inspector/tracing/timeline-aggregated-details-expected.txt:3: a: 0.000 17.030 On 2016/01/27 18:38:36, pfeldman wrote: > ...
4 years, 11 months ago (2016-01-27 22:31:25 UTC) #17
caseq
https://codereview.chromium.org/1624783002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp File third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/1624783002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp#newcode59 third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp:59: RefPtr<ScriptCallStack> scriptCallStack = currentScriptCallStack(1); nit: put under if () ...
4 years, 11 months ago (2016-01-27 23:03:56 UTC) #18
alph
https://codereview.chromium.org/1624783002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp File third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/1624783002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp#newcode59 third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp:59: RefPtr<ScriptCallStack> scriptCallStack = currentScriptCallStack(1); On 2016/01/27 23:03:56, caseq wrote: ...
4 years, 11 months ago (2016-01-27 23:16:20 UTC) #19
pfeldman
lgtm https://codereview.chromium.org/1624783002/diff/100001/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/1624783002/diff/100001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js#newcode184 third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js:184: var stackTrace; Annotate the type please.
4 years, 11 months ago (2016-01-27 23:42:27 UTC) #20
pfeldman
lgtm
4 years, 11 months ago (2016-01-27 23:42:31 UTC) #21
alph
https://codereview.chromium.org/1624783002/diff/100001/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/1624783002/diff/100001/third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js#newcode184 third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js:184: var stackTrace; On 2016/01/27 23:42:27, pfeldman wrote: > Annotate ...
4 years, 11 months ago (2016-01-27 23:51:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624783002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624783002/120001
4 years, 11 months ago (2016-01-27 23:54:21 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/171400)
4 years, 11 months ago (2016-01-28 01:46:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624783002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624783002/140001
4 years, 11 months ago (2016-01-28 02:19:09 UTC) #30
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/172564)
4 years, 11 months ago (2016-01-28 03:35:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624783002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624783002/140001
4 years, 10 months ago (2016-01-28 18:49:43 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-01-28 19:44:52 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/7384f82925b78f48aa68caf62850d24f53f49233 Cr-Commit-Position: refs/heads/master@{#372145}
4 years, 10 months ago (2016-01-28 19:46:02 UTC) #37
Noel Gordon
virtual/threaded/inspector/tracing/timeline-load-event.html inspector/tracing/timeline-load-event.html Started failing on the debug bots: expected? https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20%28dbg%29/builds/6009 https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win7%20%28dbg%29/builds/4343 /me not gardening, just ...
4 years, 10 months ago (2016-01-29 01:57:47 UTC) #38
alph
4 years, 10 months ago (2016-01-29 02:12:10 UTC) #40
Message was sent while issue was closed.
On 2016/01/29 01:57:47, noel gordon wrote:
> virtual/threaded/inspector/tracing/timeline-load-event.html
> inspector/tracing/timeline-load-event.html
> 
> Started failing on the debug bots: expected?
> 
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20%28dbg...
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win7%20%28dbg%...
> 
> /me not gardening, just noticed that's all.

Thanks, looking into it.

Powered by Google App Engine
This is Rietveld 408576698