9758552aa8
1) Let firstNonEmptySourceURL traverse async stack trace (if any). 2) Expose Runtime.setMaxCallStackSizeToCapture API to control the number of frames to capture. Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I72f021c6ae9e317af67c3114fd4860ce0f06d977 Reviewed-on: https://chromium-review.googlesource.com/1085643 Commit-Queue: Hidy Han <hidyhan@chromium.org> Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Pavel Feldman <pfeldman@chromium.org> Cr-Commit-Position: refs/heads/master@{#53506}
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 : log
|
|
}
|
|
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 : log
|
|
}
|
|
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 : log
|
|
}
|