Updating to latest protocol.json
This commit is contained in:
parent
bf1d5ecfbc
commit
6ab485c766
24
cdp/cdp.go
24
cdp/cdp.go
|
@ -400,10 +400,6 @@ const (
|
|||
CommandRuntimeSetCustomObjectFormatterEnabled MethodType = "Runtime.setCustomObjectFormatterEnabled"
|
||||
CommandRuntimeCompileScript MethodType = "Runtime.compileScript"
|
||||
CommandRuntimeRunScript MethodType = "Runtime.runScript"
|
||||
CommandRuntimeStartPreciseCoverage MethodType = "Runtime.startPreciseCoverage"
|
||||
CommandRuntimeStopPreciseCoverage MethodType = "Runtime.stopPreciseCoverage"
|
||||
CommandRuntimeTakePreciseCoverage MethodType = "Runtime.takePreciseCoverage"
|
||||
CommandRuntimeGetBestEffortCoverage MethodType = "Runtime.getBestEffortCoverage"
|
||||
EventDebuggerScriptParsed MethodType = "Debugger.scriptParsed"
|
||||
EventDebuggerScriptFailedToParse MethodType = "Debugger.scriptFailedToParse"
|
||||
EventDebuggerBreakpointResolved MethodType = "Debugger.breakpointResolved"
|
||||
|
@ -440,6 +436,10 @@ const (
|
|||
CommandProfilerSetSamplingInterval MethodType = "Profiler.setSamplingInterval"
|
||||
CommandProfilerStart MethodType = "Profiler.start"
|
||||
CommandProfilerStop MethodType = "Profiler.stop"
|
||||
CommandProfilerStartPreciseCoverage MethodType = "Profiler.startPreciseCoverage"
|
||||
CommandProfilerStopPreciseCoverage MethodType = "Profiler.stopPreciseCoverage"
|
||||
CommandProfilerTakePreciseCoverage MethodType = "Profiler.takePreciseCoverage"
|
||||
CommandProfilerGetBestEffortCoverage MethodType = "Profiler.getBestEffortCoverage"
|
||||
EventHeapProfilerAddHeapSnapshotChunk MethodType = "HeapProfiler.addHeapSnapshotChunk"
|
||||
EventHeapProfilerResetProfiles MethodType = "HeapProfiler.resetProfiles"
|
||||
EventHeapProfilerReportHeapSnapshotProgress MethodType = "HeapProfiler.reportHeapSnapshotProgress"
|
||||
|
@ -1173,14 +1173,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
*t = CommandRuntimeCompileScript
|
||||
case CommandRuntimeRunScript:
|
||||
*t = CommandRuntimeRunScript
|
||||
case CommandRuntimeStartPreciseCoverage:
|
||||
*t = CommandRuntimeStartPreciseCoverage
|
||||
case CommandRuntimeStopPreciseCoverage:
|
||||
*t = CommandRuntimeStopPreciseCoverage
|
||||
case CommandRuntimeTakePreciseCoverage:
|
||||
*t = CommandRuntimeTakePreciseCoverage
|
||||
case CommandRuntimeGetBestEffortCoverage:
|
||||
*t = CommandRuntimeGetBestEffortCoverage
|
||||
case EventDebuggerScriptParsed:
|
||||
*t = EventDebuggerScriptParsed
|
||||
case EventDebuggerScriptFailedToParse:
|
||||
|
@ -1253,6 +1245,14 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
*t = CommandProfilerStart
|
||||
case CommandProfilerStop:
|
||||
*t = CommandProfilerStop
|
||||
case CommandProfilerStartPreciseCoverage:
|
||||
*t = CommandProfilerStartPreciseCoverage
|
||||
case CommandProfilerStopPreciseCoverage:
|
||||
*t = CommandProfilerStopPreciseCoverage
|
||||
case CommandProfilerTakePreciseCoverage:
|
||||
*t = CommandProfilerTakePreciseCoverage
|
||||
case CommandProfilerGetBestEffortCoverage:
|
||||
*t = CommandProfilerGetBestEffortCoverage
|
||||
case EventHeapProfilerAddHeapSnapshotChunk:
|
||||
*t = EventHeapProfilerAddHeapSnapshotChunk
|
||||
case EventHeapProfilerResetProfiles:
|
||||
|
|
|
@ -1078,18 +1078,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.CommandRuntimeRunScript:
|
||||
v = new(runtime.RunScriptReturns)
|
||||
|
||||
case cdp.CommandRuntimeStartPreciseCoverage:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandRuntimeStopPreciseCoverage:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandRuntimeTakePreciseCoverage:
|
||||
v = new(runtime.TakePreciseCoverageReturns)
|
||||
|
||||
case cdp.CommandRuntimeGetBestEffortCoverage:
|
||||
v = new(runtime.GetBestEffortCoverageReturns)
|
||||
|
||||
case cdp.EventRuntimeExecutionContextCreated:
|
||||
v = new(runtime.EventExecutionContextCreated)
|
||||
|
||||
|
@ -1213,6 +1201,18 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.CommandProfilerStop:
|
||||
v = new(profiler.StopReturns)
|
||||
|
||||
case cdp.CommandProfilerStartPreciseCoverage:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandProfilerStopPreciseCoverage:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandProfilerTakePreciseCoverage:
|
||||
v = new(profiler.TakePreciseCoverageReturns)
|
||||
|
||||
case cdp.CommandProfilerGetBestEffortCoverage:
|
||||
v = new(profiler.GetBestEffortCoverageReturns)
|
||||
|
||||
case cdp.EventProfilerConsoleProfileStarted:
|
||||
v = new(profiler.EventConsoleProfileStarted)
|
||||
|
||||
|
|
|
@ -242,8 +242,9 @@ func (p *RemoveBreakpointParams) Do(ctxt context.Context, h cdp.Handler) (err er
|
|||
// GetPossibleBreakpointsParams returns possible locations for breakpoint.
|
||||
// scriptId in start and end range locations should be the same.
|
||||
type GetPossibleBreakpointsParams struct {
|
||||
Start *Location `json:"start"` // Start of range to search possible breakpoint locations in.
|
||||
End *Location `json:"end,omitempty"` // End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range.
|
||||
Start *Location `json:"start"` // Start of range to search possible breakpoint locations in.
|
||||
End *Location `json:"end,omitempty"` // End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range.
|
||||
RestrictToFunction bool `json:"restrictToFunction,omitempty"` // Only consider locations which are in the same (non-nested) function as start.
|
||||
}
|
||||
|
||||
// GetPossibleBreakpoints returns possible locations for breakpoint. scriptId
|
||||
|
@ -264,6 +265,13 @@ func (p GetPossibleBreakpointsParams) WithEnd(end *Location) *GetPossibleBreakpo
|
|||
return &p
|
||||
}
|
||||
|
||||
// WithRestrictToFunction only consider locations which are in the same
|
||||
// (non-nested) function as start.
|
||||
func (p GetPossibleBreakpointsParams) WithRestrictToFunction(restrictToFunction bool) *GetPossibleBreakpointsParams {
|
||||
p.RestrictToFunction = restrictToFunction
|
||||
return &p
|
||||
}
|
||||
|
||||
// GetPossibleBreakpointsReturns return values.
|
||||
type GetPossibleBreakpointsReturns struct {
|
||||
Locations []*Location `json:"locations,omitempty"` // List of the possible breakpoint locations.
|
||||
|
|
|
@ -2721,6 +2721,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(in *jlexer.Lexer, o
|
|||
}
|
||||
(*out.End).UnmarshalEasyJSON(in)
|
||||
}
|
||||
case "restrictToFunction":
|
||||
out.RestrictToFunction = bool(in.Bool())
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
|
@ -2757,6 +2759,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(out *jwriter.Writer
|
|||
(*in.End).MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
if in.RestrictToFunction {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"restrictToFunction\":")
|
||||
out.Bool(bool(in.RestrictToFunction))
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -105,3 +105,100 @@ func (p *StopParams) Do(ctxt context.Context, h cdp.Handler) (profile *Profile,
|
|||
|
||||
return res.Profile, nil
|
||||
}
|
||||
|
||||
// StartPreciseCoverageParams enable precise code coverage. Coverage data for
|
||||
// JavaScript executed before enabling precise code coverage may be incomplete.
|
||||
// Enabling prevents running optimized code and resets execution counters.
|
||||
type StartPreciseCoverageParams struct{}
|
||||
|
||||
// StartPreciseCoverage enable precise code coverage. Coverage data for
|
||||
// JavaScript executed before enabling precise code coverage may be incomplete.
|
||||
// Enabling prevents running optimized code and resets execution counters.
|
||||
func StartPreciseCoverage() *StartPreciseCoverageParams {
|
||||
return &StartPreciseCoverageParams{}
|
||||
}
|
||||
|
||||
// Do executes Profiler.startPreciseCoverage against the provided context and
|
||||
// target handler.
|
||||
func (p *StartPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandProfilerStartPreciseCoverage, nil, nil)
|
||||
}
|
||||
|
||||
// StopPreciseCoverageParams disable precise code coverage. Disabling
|
||||
// releases unnecessary execution count records and allows executing optimized
|
||||
// code.
|
||||
type StopPreciseCoverageParams struct{}
|
||||
|
||||
// StopPreciseCoverage disable precise code coverage. Disabling releases
|
||||
// unnecessary execution count records and allows executing optimized code.
|
||||
func StopPreciseCoverage() *StopPreciseCoverageParams {
|
||||
return &StopPreciseCoverageParams{}
|
||||
}
|
||||
|
||||
// Do executes Profiler.stopPreciseCoverage against the provided context and
|
||||
// target handler.
|
||||
func (p *StopPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandProfilerStopPreciseCoverage, nil, nil)
|
||||
}
|
||||
|
||||
// TakePreciseCoverageParams collect coverage data for the current isolate,
|
||||
// and resets execution counters. Precise code coverage needs to have started.
|
||||
type TakePreciseCoverageParams struct{}
|
||||
|
||||
// TakePreciseCoverage collect coverage data for the current isolate, and
|
||||
// resets execution counters. Precise code coverage needs to have started.
|
||||
func TakePreciseCoverage() *TakePreciseCoverageParams {
|
||||
return &TakePreciseCoverageParams{}
|
||||
}
|
||||
|
||||
// TakePreciseCoverageReturns return values.
|
||||
type TakePreciseCoverageReturns struct {
|
||||
Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate.
|
||||
}
|
||||
|
||||
// Do executes Profiler.takePreciseCoverage against the provided context and
|
||||
// target handler.
|
||||
//
|
||||
// returns:
|
||||
// result - Coverage data for the current isolate.
|
||||
func (p *TakePreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) {
|
||||
// execute
|
||||
var res TakePreciseCoverageReturns
|
||||
err = h.Execute(ctxt, cdp.CommandProfilerTakePreciseCoverage, nil, &res)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Result, nil
|
||||
}
|
||||
|
||||
// GetBestEffortCoverageParams collect coverage data for the current isolate.
|
||||
// The coverage data may be incomplete due to garbage collection.
|
||||
type GetBestEffortCoverageParams struct{}
|
||||
|
||||
// GetBestEffortCoverage collect coverage data for the current isolate. The
|
||||
// coverage data may be incomplete due to garbage collection.
|
||||
func GetBestEffortCoverage() *GetBestEffortCoverageParams {
|
||||
return &GetBestEffortCoverageParams{}
|
||||
}
|
||||
|
||||
// GetBestEffortCoverageReturns return values.
|
||||
type GetBestEffortCoverageReturns struct {
|
||||
Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate.
|
||||
}
|
||||
|
||||
// Do executes Profiler.getBestEffortCoverage against the provided context and
|
||||
// target handler.
|
||||
//
|
||||
// returns:
|
||||
// result - Coverage data for the current isolate.
|
||||
func (p *GetBestEffortCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) {
|
||||
// execute
|
||||
var res GetBestEffortCoverageReturns
|
||||
err = h.Execute(ctxt, cdp.CommandProfilerGetBestEffortCoverage, nil, &res)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Result, nil
|
||||
}
|
||||
|
|
|
@ -30,3 +30,25 @@ type PositionTickInfo struct {
|
|||
Line int64 `json:"line,omitempty"` // Source line number (1-based).
|
||||
Ticks int64 `json:"ticks,omitempty"` // Number of samples attributed to the source line.
|
||||
}
|
||||
|
||||
// CoverageRange coverage data for a source range.
|
||||
type CoverageRange struct {
|
||||
StartLineNumber int64 `json:"startLineNumber,omitempty"` // JavaScript script line number (0-based) for the range start.
|
||||
StartColumnNumber int64 `json:"startColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range start.
|
||||
EndLineNumber int64 `json:"endLineNumber,omitempty"` // JavaScript script line number (0-based) for the range end.
|
||||
EndColumnNumber int64 `json:"endColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range end.
|
||||
Count int64 `json:"count,omitempty"` // Collected execution count of the source range.
|
||||
}
|
||||
|
||||
// FunctionCoverage coverage data for a JavaScript function.
|
||||
type FunctionCoverage struct {
|
||||
FunctionName string `json:"functionName,omitempty"` // JavaScript function name.
|
||||
Ranges []*CoverageRange `json:"ranges,omitempty"` // Source ranges inside the function with coverage data.
|
||||
}
|
||||
|
||||
// ScriptCoverage coverage data for a JavaScript script.
|
||||
type ScriptCoverage struct {
|
||||
ScriptID runtime.ScriptID `json:"scriptId,omitempty"` // JavaScript script id.
|
||||
URL string `json:"url,omitempty"` // JavaScript script name or url.
|
||||
Functions []*FunctionCoverage `json:"functions,omitempty"` // Functions contained in the script that has coverage data.
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -603,100 +603,3 @@ func (p *RunScriptParams) Do(ctxt context.Context, h cdp.Handler) (result *Remot
|
|||
|
||||
return res.Result, res.ExceptionDetails, nil
|
||||
}
|
||||
|
||||
// StartPreciseCoverageParams enable precise code coverage. Coverage data for
|
||||
// JavaScript executed before enabling precise code coverage may be incomplete.
|
||||
// Enabling prevents running optimized code and resets execution counters.
|
||||
type StartPreciseCoverageParams struct{}
|
||||
|
||||
// StartPreciseCoverage enable precise code coverage. Coverage data for
|
||||
// JavaScript executed before enabling precise code coverage may be incomplete.
|
||||
// Enabling prevents running optimized code and resets execution counters.
|
||||
func StartPreciseCoverage() *StartPreciseCoverageParams {
|
||||
return &StartPreciseCoverageParams{}
|
||||
}
|
||||
|
||||
// Do executes Runtime.startPreciseCoverage against the provided context and
|
||||
// target handler.
|
||||
func (p *StartPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandRuntimeStartPreciseCoverage, nil, nil)
|
||||
}
|
||||
|
||||
// StopPreciseCoverageParams disable precise code coverage. Disabling
|
||||
// releases unnecessary execution count records and allows executing optimized
|
||||
// code.
|
||||
type StopPreciseCoverageParams struct{}
|
||||
|
||||
// StopPreciseCoverage disable precise code coverage. Disabling releases
|
||||
// unnecessary execution count records and allows executing optimized code.
|
||||
func StopPreciseCoverage() *StopPreciseCoverageParams {
|
||||
return &StopPreciseCoverageParams{}
|
||||
}
|
||||
|
||||
// Do executes Runtime.stopPreciseCoverage against the provided context and
|
||||
// target handler.
|
||||
func (p *StopPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandRuntimeStopPreciseCoverage, nil, nil)
|
||||
}
|
||||
|
||||
// TakePreciseCoverageParams collect coverage data for the current isolate,
|
||||
// and resets execution counters. Precise code coverage needs to have started.
|
||||
type TakePreciseCoverageParams struct{}
|
||||
|
||||
// TakePreciseCoverage collect coverage data for the current isolate, and
|
||||
// resets execution counters. Precise code coverage needs to have started.
|
||||
func TakePreciseCoverage() *TakePreciseCoverageParams {
|
||||
return &TakePreciseCoverageParams{}
|
||||
}
|
||||
|
||||
// TakePreciseCoverageReturns return values.
|
||||
type TakePreciseCoverageReturns struct {
|
||||
Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate.
|
||||
}
|
||||
|
||||
// Do executes Runtime.takePreciseCoverage against the provided context and
|
||||
// target handler.
|
||||
//
|
||||
// returns:
|
||||
// result - Coverage data for the current isolate.
|
||||
func (p *TakePreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) {
|
||||
// execute
|
||||
var res TakePreciseCoverageReturns
|
||||
err = h.Execute(ctxt, cdp.CommandRuntimeTakePreciseCoverage, nil, &res)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Result, nil
|
||||
}
|
||||
|
||||
// GetBestEffortCoverageParams collect coverage data for the current isolate.
|
||||
// The coverage data may be incomplete due to garbage collection.
|
||||
type GetBestEffortCoverageParams struct{}
|
||||
|
||||
// GetBestEffortCoverage collect coverage data for the current isolate. The
|
||||
// coverage data may be incomplete due to garbage collection.
|
||||
func GetBestEffortCoverage() *GetBestEffortCoverageParams {
|
||||
return &GetBestEffortCoverageParams{}
|
||||
}
|
||||
|
||||
// GetBestEffortCoverageReturns return values.
|
||||
type GetBestEffortCoverageReturns struct {
|
||||
Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate.
|
||||
}
|
||||
|
||||
// Do executes Runtime.getBestEffortCoverage against the provided context and
|
||||
// target handler.
|
||||
//
|
||||
// returns:
|
||||
// result - Coverage data for the current isolate.
|
||||
func (p *GetBestEffortCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) {
|
||||
// execute
|
||||
var res GetBestEffortCoverageReturns
|
||||
err = h.Execute(ctxt, cdp.CommandRuntimeGetBestEffortCoverage, nil, &res)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Result, nil
|
||||
}
|
||||
|
|
|
@ -206,28 +206,6 @@ type StackTrace struct {
|
|||
PromiseCreationFrame *CallFrame `json:"promiseCreationFrame,omitempty"` // Creation frame of the Promise which produced the next synchronous trace when resolved, if available.
|
||||
}
|
||||
|
||||
// CoverageRange coverage data for a source range.
|
||||
type CoverageRange struct {
|
||||
StartLineNumber int64 `json:"startLineNumber,omitempty"` // JavaScript script line number (0-based) for the range start.
|
||||
StartColumnNumber int64 `json:"startColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range start.
|
||||
EndLineNumber int64 `json:"endLineNumber,omitempty"` // JavaScript script line number (0-based) for the range end.
|
||||
EndColumnNumber int64 `json:"endColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range end.
|
||||
Count int64 `json:"count,omitempty"` // Collected execution count of the source range.
|
||||
}
|
||||
|
||||
// FunctionCoverage coverage data for a JavaScript function.
|
||||
type FunctionCoverage struct {
|
||||
FunctionName string `json:"functionName,omitempty"` // JavaScript function name.
|
||||
Ranges []*CoverageRange `json:"ranges,omitempty"` // Source ranges inside the function with coverage data.
|
||||
}
|
||||
|
||||
// ScriptCoverage coverage data for a JavaScript script.
|
||||
type ScriptCoverage struct {
|
||||
ScriptID ScriptID `json:"scriptId,omitempty"` // JavaScript script id.
|
||||
URL string `json:"url,omitempty"` // JavaScript script name or url.
|
||||
Functions []*FunctionCoverage `json:"functions,omitempty"` // Functions contained in the script that has coverage data.
|
||||
}
|
||||
|
||||
// Type object type.
|
||||
type Type string
|
||||
|
||||
|
|
|
@ -10716,86 +10716,6 @@
|
|||
"description": "Creation frame of the Promise which produced the next synchronous trace when resolved, if available."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "CoverageRange",
|
||||
"type": "object",
|
||||
"description": "Coverage data for a source range.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "startLineNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script line number (0-based) for the range start."
|
||||
},
|
||||
{
|
||||
"name": "startColumnNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script column number (0-based) for the range start."
|
||||
},
|
||||
{
|
||||
"name": "endLineNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script line number (0-based) for the range end."
|
||||
},
|
||||
{
|
||||
"name": "endColumnNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script column number (0-based) for the range end."
|
||||
},
|
||||
{
|
||||
"name": "count",
|
||||
"type": "integer",
|
||||
"description": "Collected execution count of the source range."
|
||||
}
|
||||
],
|
||||
"experimental": "true"
|
||||
},
|
||||
{
|
||||
"id": "FunctionCoverage",
|
||||
"type": "object",
|
||||
"description": "Coverage data for a JavaScript function.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "functionName",
|
||||
"type": "string",
|
||||
"description": "JavaScript function name."
|
||||
},
|
||||
{
|
||||
"name": "ranges",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "CoverageRange"
|
||||
},
|
||||
"description": "Source ranges inside the function with coverage data."
|
||||
}
|
||||
],
|
||||
"experimental": "true"
|
||||
},
|
||||
{
|
||||
"id": "ScriptCoverage",
|
||||
"type": "object",
|
||||
"description": "Coverage data for a JavaScript script.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "scriptId",
|
||||
"$ref": "ScriptId",
|
||||
"description": "JavaScript script id."
|
||||
},
|
||||
{
|
||||
"name": "url",
|
||||
"type": "string",
|
||||
"description": "JavaScript script name or url."
|
||||
},
|
||||
{
|
||||
"name": "functions",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "FunctionCoverage"
|
||||
},
|
||||
"description": "Functions contained in the script that has coverage data."
|
||||
}
|
||||
],
|
||||
"experimental": "true"
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
|
@ -11190,46 +11110,6 @@
|
|||
}
|
||||
],
|
||||
"description": "Runs script with given id in a given context."
|
||||
},
|
||||
{
|
||||
"name": "startPreciseCoverage",
|
||||
"description": "Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "stopPreciseCoverage",
|
||||
"description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "takePreciseCoverage",
|
||||
"returns": [
|
||||
{
|
||||
"name": "result",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ScriptCoverage"
|
||||
},
|
||||
"description": "Coverage data for the current isolate."
|
||||
}
|
||||
],
|
||||
"description": "Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "getBestEffortCoverage",
|
||||
"returns": [
|
||||
{
|
||||
"name": "result",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ScriptCoverage"
|
||||
},
|
||||
"description": "Coverage data for the current isolate."
|
||||
}
|
||||
],
|
||||
"description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.",
|
||||
"experimental": true
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
|
@ -11662,6 +11542,12 @@
|
|||
"$ref": "Location",
|
||||
"optional": true,
|
||||
"description": "End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range."
|
||||
},
|
||||
{
|
||||
"name": "restrictToFunction",
|
||||
"type": "boolean",
|
||||
"optional": true,
|
||||
"description": "Only consider locations which are in the same (non-nested) function as start."
|
||||
}
|
||||
],
|
||||
"returns": [
|
||||
|
@ -12437,6 +12323,86 @@
|
|||
"description": "Number of samples attributed to the source line."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "CoverageRange",
|
||||
"type": "object",
|
||||
"description": "Coverage data for a source range.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "startLineNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script line number (0-based) for the range start."
|
||||
},
|
||||
{
|
||||
"name": "startColumnNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script column number (0-based) for the range start."
|
||||
},
|
||||
{
|
||||
"name": "endLineNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script line number (0-based) for the range end."
|
||||
},
|
||||
{
|
||||
"name": "endColumnNumber",
|
||||
"type": "integer",
|
||||
"description": "JavaScript script column number (0-based) for the range end."
|
||||
},
|
||||
{
|
||||
"name": "count",
|
||||
"type": "integer",
|
||||
"description": "Collected execution count of the source range."
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"id": "FunctionCoverage",
|
||||
"type": "object",
|
||||
"description": "Coverage data for a JavaScript function.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "functionName",
|
||||
"type": "string",
|
||||
"description": "JavaScript function name."
|
||||
},
|
||||
{
|
||||
"name": "ranges",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "CoverageRange"
|
||||
},
|
||||
"description": "Source ranges inside the function with coverage data."
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"id": "ScriptCoverage",
|
||||
"type": "object",
|
||||
"description": "Coverage data for a JavaScript script.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "scriptId",
|
||||
"$ref": "Runtime.ScriptId",
|
||||
"description": "JavaScript script id."
|
||||
},
|
||||
{
|
||||
"name": "url",
|
||||
"type": "string",
|
||||
"description": "JavaScript script name or url."
|
||||
},
|
||||
{
|
||||
"name": "functions",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "FunctionCoverage"
|
||||
},
|
||||
"description": "Functions contained in the script that has coverage data."
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
|
@ -12469,6 +12435,46 @@
|
|||
"description": "Recorded profile."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "startPreciseCoverage",
|
||||
"description": "Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "stopPreciseCoverage",
|
||||
"description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "takePreciseCoverage",
|
||||
"returns": [
|
||||
{
|
||||
"name": "result",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ScriptCoverage"
|
||||
},
|
||||
"description": "Coverage data for the current isolate."
|
||||
}
|
||||
],
|
||||
"description": "Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "getBestEffortCoverage",
|
||||
"returns": [
|
||||
{
|
||||
"name": "result",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "ScriptCoverage"
|
||||
},
|
||||
"description": "Coverage data for the current isolate."
|
||||
}
|
||||
],
|
||||
"description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.",
|
||||
"experimental": true
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
|
|
Loading…
Reference in New Issue
Block a user