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

Issue 2828863002: [DevTools] enable async stacks by default (Closed)

Created:
3 years, 8 months ago by kozy
Modified:
3 years, 8 months ago
Reviewers:
dgozman
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/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] enable async stacks by default - increased async stack trace depth limit to 32 (currently we can do any number here without increasing running time or memory consumption but then we need better UX for stack traces), - added disable async stack traces settings to the settings list under Debugger category, - changed limit for tests and rebased all tests with new async stacks. Summary of backend improvements: - async stacks has predictible peak memory usage - ~20 Mbytes, - change of running time of setTimeout, setInterval, requestAnimation with and without async stacks is almost unobservable, - promises are only twice slower. More numbers: https://docs.google.com/document/d/13H1Pn6dekcwqlaYP26CfyyYGuL-U9LtUPWmt3TIpOag BUG=chromium:693164, v8:6189 R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2828863002 Cr-Commit-Position: refs/heads/master@{#466749} Committed: https://chromium.googlesource.com/chromium/src/+/4112b4cc46cbc283a72d79087acb83f24fb4af58

Patch Set 1 #

Total comments: 6

Patch Set 2 : ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -22 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/lazy-addeventlisteners-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator-image.html View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-assert-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-eval-syntax-error-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-message-from-inline-with-url-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-arguments-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-in-eval-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception-in-eval-expected.txt View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-promise-expected.txt View 1 chunk +39 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-promise-in-worker-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/exception-objects-expected.txt View 5 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/function-name-in-console-message-stack-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check.html View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-pause-on-exception-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-expected.txt View 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-promises-expected.txt View 3 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/dom-breakpoints-expected.txt View 13 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-blackbox-by-source-code-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-jquery-expected.txt View 7 chunks +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-sourcemap-expected.txt View 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout-expected.txt View 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-steppings-expected.txt View 11 chunks +36 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-on-call-frame-inside-iframe-expected.txt View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused-throws-expected.txt View 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-mute-exception-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-exception-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-promise-rejection-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-into-across-timeouts-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-out-across-timeouts-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-out-custom-element-callbacks-expected.txt View 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-out-event-listener-expected.txt View 2 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-over-across-timeouts-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-step/debugger-step-through-promises-expected.txt View 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-empty-event-listener-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/copy-stack-trace.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/copy-stack-trace-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger/rethrow-error-from-bindings-crash-expected.txt View 1 chunk +87 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js View 1 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/module.json View 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
kozy
Dmitry please take a look :)
3 years, 8 months ago (2017-04-19 19:03:03 UTC) #6
kozy
Everything on V8 side landed, please take a look :)
3 years, 8 months ago (2017-04-20 20:16:27 UTC) #7
dgozman
Looks very good! https://codereview.chromium.org/2828863002/diff/1/third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt File third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt (right): https://codereview.chromium.org/2828863002/diff/1/third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt#newcode11 third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt:11: setTimeout (async) Did you manually check ...
3 years, 8 months ago (2017-04-21 23:39:17 UTC) #9
kozy
all done, thanks. https://codereview.chromium.org/2828863002/diff/1/third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt File third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt (right): https://codereview.chromium.org/2828863002/diff/1/third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt#newcode11 third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt:11: setTimeout (async) On 2017/04/21 23:39:17, dgozman ...
3 years, 8 months ago (2017-04-22 00:02:57 UTC) #10
kozy
> We skip all frames after frame with functionName === 'scheduleTestFunction' > including this frame ...
3 years, 8 months ago (2017-04-22 00:04:07 UTC) #11
dgozman
lgtm
3 years, 8 months ago (2017-04-24 18:51:09 UTC) #16
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/2828863002/20001
3 years, 8 months ago (2017-04-24 18:52:33 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 20:40:56 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4112b4cc46cbc283a72d79087acb...

Powered by Google App Engine
This is Rietveld 408576698