38986c4750
That saves some bytes on the frontend side and some cycles when generating and parsing protocol JSON for stacks. BUG=chromium:946411 Change-Id: I36b3a48b5d8246a05b877bc21f36c08803a1c304 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1542800 Commit-Queue: Alexei Filippov <alph@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#60532}
98 lines
2.3 KiB
Plaintext
98 lines
2.3 KiB
Plaintext
Checks Runtime.setMaxCallStackSizeToCapture.
|
|
Test with max size 0.
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Nested call.
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
timestamp : <timestamp>
|
|
type : trace
|
|
}
|
|
Test with max size 1.
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Nested call.
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 10
|
|
functionName : bar
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 2
|
|
functionName : test
|
|
lineNumber : 10
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
description : setTimeout
|
|
}
|
|
}
|
|
timestamp : <timestamp>
|
|
type : trace
|
|
}
|
|
Test with max size 2.
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Nested call.
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 10
|
|
functionName : bar
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
[1] : {
|
|
columnNumber : 2
|
|
functionName : foo
|
|
lineNumber : 6
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
parent : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 2
|
|
functionName : test
|
|
lineNumber : 10
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
[1] : {
|
|
columnNumber : 0
|
|
functionName :
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
url : expr.js
|
|
}
|
|
]
|
|
description : setTimeout
|
|
}
|
|
}
|
|
timestamp : <timestamp>
|
|
type : trace
|
|
}
|