v8/test/inspector/runtime
Alexey Kozyatinskiy 885a5669aa Reland [inspector] introduced stackTraceId and externalAsyncTask API
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.

TBR=dgozman@chromium.org,jgruber@chromium.org

Bug: chromium:778796
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I2c1a2b2e30ed69ccb61d10f08686f4edb09f50e4
Reviewed-on: https://chromium-review.googlesource.com/786274
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49591}
2017-11-22 20:56:10 +00:00
..
await-promise-expected.txt [inspector] reworked async instrumentation for promises 2017-11-21 16:56:00 +00:00
await-promise.js [inspector] improved exception details for Runtime.evaluate with awaitPromise 2017-07-07 14:23:32 +00:00
call-function-on-async-expected.txt Reland of Inspector: Runtime.callFunctionOn to accept executionContextId 2017-08-31 02:23:06 +00:00
call-function-on-async.js Reland of Inspector: Runtime.callFunctionOn to accept executionContextId 2017-08-31 02:23:06 +00:00
clear-of-command-line-api-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
clear-of-command-line-api.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
client-console-api-message-expected.txt [inspector] avoid cloning of async call chains 2017-04-18 15:53:08 +00:00
client-console-api-message.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
command-line-api-expected.txt [inspector] provisional breakpoints for anonymous script 2017-10-07 19:08:35 +00:00
command-line-api.js [inspector] improved queryObjects command line API 2017-08-24 00:50:52 +00:00
compile-script-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
compile-script.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-api-repeated-in-console-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-api-repeated-in-console.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-assert-expected.txt [inspector] make console.assert much faster 2016-11-23 17:09:50 +00:00
console-assert.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-context-expected.txt [inspector] introduced console.context 2017-06-12 15:49:13 +00:00
console-context.js [inspector] introduced console.context 2017-06-12 15:49:13 +00:00
console-deprecated-methods-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-deprecated-methods.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-line-and-column-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-line-and-column.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-log-doesnt-run-microtasks-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-log-doesnt-run-microtasks.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-memory-expected.txt [inspector] console get all information from inspector when needed 2017-03-29 21:40:07 +00:00
console-memory.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-messages-limits-expected.txt [inspector] introduced memory size limit for console message storage 2017-01-30 17:05:58 +00:00
console-messages-limits.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-methods-expected.txt [inspector] one more array with nullified __proto__ 2017-09-11 22:03:38 +00:00
console-methods.js [inspector] one more array with nullified __proto__ 2017-09-11 22:03:38 +00:00
console-spec-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-spec.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-time-end-format-expected.txt [inspector] align console.time(undefined) and console.time() with spec 2017-10-17 00:09:26 +00:00
console-time-end-format.js [inspector] align console.time(undefined) and console.time() with spec 2017-10-17 00:09:26 +00:00
console-timestamp-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-timestamp.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
context-destroyed-on-context-collected-expected.txt [inspector] support for cases when embedder doesn't call contextDestroyed 2017-08-01 23:06:20 +00:00
context-destroyed-on-context-collected.js [inspector] support for cases when embedder doesn't call contextDestroyed 2017-08-01 23:06:20 +00:00
create-context-expected.txt Reland [inspector] introduced stackTraceId and externalAsyncTask API 2017-11-22 20:56:10 +00:00
create-context.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
es6-module-expected.txt [inspector] added url to Debugger.CallFrame 2017-09-07 16:39:31 +00:00
es6-module.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-async-expected.txt [inspector] aligned Runtime.evaluate(awaitPromise: true) with await semantic 2017-08-15 01:35:29 +00:00
evaluate-async-with-wrap-error-expected.txt [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
evaluate-async-with-wrap-error.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-async.js [inspector] aligned Runtime.evaluate(awaitPromise: true) with await semantic 2017-08-15 01:35:29 +00:00
evaluate-empty-stack-expected.txt [debug] remove JSON debug protocol related tests. 2016-11-24 10:43:22 +00:00
evaluate-empty-stack.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-with-context-id-equal-zero-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-with-context-id-equal-zero.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-with-generate-preview-expected.txt [inspector] better isArrayLike for injected-script-source.js 2017-03-24 17:38:20 +00:00
evaluate-with-generate-preview.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
exception-thrown-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
exception-thrown.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
function-scopes-expected.txt [inspector] report [[Scopes]] all the time 2017-09-12 21:17:35 +00:00
function-scopes.js [inspector] report [[Scopes]] all the time 2017-09-12 21:17:35 +00:00
get-properties-expected.txt [inspector] run more tests with InspectorTest.setupInjectedScriptEnvironment 2017-03-24 18:43:22 +00:00
get-properties-on-proxy-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-on-proxy.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-preview-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-preview.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
internal-properties-entries-expected.txt [inspector] introduced v8::debug::EntriesPreview for inspector 2017-02-07 07:46:21 +00:00
internal-properties-entries.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
internal-properties-expected.txt [inspector] report [[Scopes]] all the time 2017-09-12 21:17:35 +00:00
internal-properties.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
length-or-size-description-expected.txt inspector: add lengths for binary data descriptions 2017-07-25 00:19:55 +00:00
length-or-size-description.js inspector: add lengths for binary data descriptions 2017-07-25 00:19:55 +00:00
property-on-console-proto-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
property-on-console-proto.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
protocol-works-with-different-locale-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
protocol-works-with-different-locale.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
query-objects-expected.txt [inspector] improved queryObjects command line API 2017-08-24 00:50:52 +00:00
query-objects.js [inspector] improved queryObjects command line API 2017-08-24 00:50:52 +00:00
regression-732717-expected.txt [inspector] console.context should be ready for GC 2017-06-13 10:38:15 +00:00
regression-732717.js [inspector] console.context should be ready for GC 2017-06-13 10:38:15 +00:00
regression-736302-expected.txt [inspector] catch exception during object.toString() call for console 2017-07-12 06:01:42 +00:00
regression-736302.js [inspector] catch exception during object.toString() call for console 2017-07-12 06:01:42 +00:00
run-script-async-expected.txt [inspector] aligned Runtime.evaluate(awaitPromise: true) with await semantic 2017-08-15 01:35:29 +00:00
run-script-async.js [inspector] aligned Runtime.evaluate(awaitPromise: true) with await semantic 2017-08-15 01:35:29 +00:00
runtime-disable-preserve-injected-script-expected.txt [inspector] don't discard injected-script on runtime.disable 2017-08-10 04:33:14 +00:00
runtime-disable-preserve-injected-script.js [inspector] don't discard injected-script on runtime.disable 2017-08-10 04:33:14 +00:00
runtime-evaluate-with-dirty-context-expected.txt [inspector] Increased chances of successful InjectedScriptSource compilation 2017-03-24 01:33:12 +00:00
runtime-evaluate-with-dirty-context.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
runtime-get-properties-and-accessor-expected.txt [inspector] do not call native accessor in Rumtime.getProperties 2017-11-06 17:45:46 +00:00
runtime-get-properties-and-accessor.js [inspector] do not call native accessor in Rumtime.getProperties 2017-11-06 17:45:46 +00:00
runtime-global-lexical-scope-names-expected.txt [inspector] added Runtime.globalLexicalScopeNames method 2017-10-17 01:02:37 +00:00
runtime-global-lexical-scope-names.js [inspector] added Runtime.globalLexicalScopeNames method 2017-10-17 01:02:37 +00:00
runtime-restore-expected.txt [inspector] added reconnect method for tests 2017-02-28 20:22:24 +00:00
runtime-restore.js [inspector] added Runtime.globalLexicalScopeNames method 2017-10-17 01:02:37 +00:00
set-or-map-entries-expected.txt Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes 2016-12-02 01:26:45 +00:00
set-or-map-entries.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00