v8/test/inspector/debugger/max-async-call-chain-depth-expected.txt
kozyatinskiy f61facfdaf [inspector] use creation stack trace as parent for async call chains
Creation stack trace points to the place where callback was actually chained, scheduled points where parent promise was resolved.
For async tasks without creation stack (e.g. setTimeout) we continue to use scheduled as creation since usually they are the same.

BUG=v8:6189
R=dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2868493002
Cr-Original-Commit-Position: refs/heads/master@{#45198}
Committed: e118462f18
Review-Url: https://codereview.chromium.org/2868493002
Cr-Commit-Position: refs/heads/master@{#45266}
2017-05-11 19:21:24 +00:00

92 lines
2.8 KiB
Plaintext

Checks that we trim async call chains correctly.
set async chain depth to 8
Running test: testDebuggerPaused
Run expression 'debugger;' with async chain len: 4
actual async chain len: 1
Run expression 'debugger;' with async chain len: 8
actual async chain len: 1
Run expression 'debugger;' with async chain len: 9
actual async chain len: 1
Run expression 'debugger;' with async chain len: 32
actual async chain len: 1
Running test: testConsoleTrace
Run expression 'console.trace(42);' with async chain len: 4
actual async chain len: 1
Run expression 'console.trace(42);' with async chain len: 8
actual async chain len: 1
Run expression 'console.trace(42);' with async chain len: 9
actual async chain len: 1
Run expression 'console.trace(42);' with async chain len: 32
actual async chain len: 1
Running test: testDebuggerPausedSetTimeout
Run expression 'debugger;' with async chain len: 4
actual async chain len: 4
Run expression 'debugger;' with async chain len: 8
actual async chain len: 8
Run expression 'debugger;' with async chain len: 9
actual async chain len: 8
Run expression 'debugger;' with async chain len: 32
actual async chain len: 8
Running test: testConsoleTraceSetTimeout
Run expression 'console.trace(42);' with async chain len: 4
actual async chain len: 4
Run expression 'console.trace(42);' with async chain len: 8
actual async chain len: 8
Run expression 'console.trace(42);' with async chain len: 9
actual async chain len: 8
Run expression 'console.trace(42);' with async chain len: 32
actual async chain len: 8
Running test: testConsoleTraceWithEmptySync
{
callFrames : [
[0] : {
columnNumber : 66
functionName : Promise.then
lineNumber : 0
scriptId : <scriptId>
url :
}
]
parent : {
callFrames : [
[0] : {
columnNumber : 47
functionName :
lineNumber : 0
scriptId : <scriptId>
url :
}
]
description : Promise.resolve
}
}
Running test: testDebuggerPausedThenableJob
Run expression 'debugger;' with async chain len: 4
actual async chain len: 1
Run expression 'debugger;' with async chain len: 8
actual async chain len: 1
Run expression 'debugger;' with async chain len: 9
actual async chain len: 1
Run expression 'debugger;' with async chain len: 32
actual async chain len: 1
Running test: testConsoleTraceThenableJob
Run expression 'console.trace(42);' with async chain len: 4
actual async chain len: 1
Run expression 'console.trace(42);' with async chain len: 8
actual async chain len: 1
Run expression 'console.trace(42);' with async chain len: 9
actual async chain len: 1
Run expression 'console.trace(42);' with async chain len: 32
actual async chain len: 1
Running test: twoConsoleAssert
actual async chain len: 1
actual async chain len: 2