• Alexey Kozyatinskiy's avatar
    [inspector] introduced stackTraceId and externalAsyncTask API · 3a41b697
    Alexey Kozyatinskiy authored
    Sometimes we need to capture stack trace on one debugger and use it
    later as a parent stack on another debugger (e.g. worker.postMessage).
    
    This CL includes following addition to our protocol and v8-inspector.h:
      - added Runtime.StackTraceId, this id represents stack trace captured
        on debugger with given id,
      - protocol client can fetch Runtime.StackTrace by
        Runtime.StacKTraceId using Debugger.getStackTrace method,
      - externalParent field is added to Debugger.paused event, it may
        contain external parent stack trace,
      - V8Inspector::storeCurrentStackTrace captures current stack trace
        and returns V8StackTraceId for embedder this id can be used as
        argument for V8Inspector::externalAsyncTaskStarted and
        V8Inspector::externalAsyncTaskFinished method. Any async stack
        trace captured between these calls will get passed external stack
        trace as external parent. These methods are designed to be called
        on different debuggers. If async task is scheduled and started on
        one debugger user should continue to use asyncTask* API,
      - Debugger.enable methods returns unique debuggerId.
    
    Bug: chromium:778796
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
    Change-Id: I16aba0d04bfcea90f3e187e635a0588c92354539
    Reviewed-on: https://chromium-review.googlesource.com/754183Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarDmitry Gozman <dgozman@chromium.org>
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#49582}
    3a41b697
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...