mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Update chromedp to fix console errors (#1521)
This commit is contained in:
26
vendor/github.com/chromedp/cdproto/tracing/tracing.go
generated
vendored
26
vendor/github.com/chromedp/cdproto/tracing/tracing.go
generated
vendored
@@ -81,7 +81,8 @@ func (p *RecordClockSyncMarkerParams) Do(ctx context.Context) (err error) {
|
||||
|
||||
// RequestMemoryDumpParams request a global memory dump.
|
||||
type RequestMemoryDumpParams struct {
|
||||
Deterministic bool `json:"deterministic,omitempty"` // Enables more deterministic results by forcing garbage collection
|
||||
Deterministic bool `json:"deterministic,omitempty"` // Enables more deterministic results by forcing garbage collection
|
||||
LevelOfDetail MemoryDumpLevelOfDetail `json:"levelOfDetail,omitempty"` // Specifies level of details in memory dump. Defaults to "detailed".
|
||||
}
|
||||
|
||||
// RequestMemoryDump request a global memory dump.
|
||||
@@ -100,6 +101,13 @@ func (p RequestMemoryDumpParams) WithDeterministic(deterministic bool) *RequestM
|
||||
return &p
|
||||
}
|
||||
|
||||
// WithLevelOfDetail specifies level of details in memory dump. Defaults to
|
||||
// "detailed".
|
||||
func (p RequestMemoryDumpParams) WithLevelOfDetail(levelOfDetail MemoryDumpLevelOfDetail) *RequestMemoryDumpParams {
|
||||
p.LevelOfDetail = levelOfDetail
|
||||
return &p
|
||||
}
|
||||
|
||||
// RequestMemoryDumpReturns return values.
|
||||
type RequestMemoryDumpReturns struct {
|
||||
DumpGUID string `json:"dumpGuid,omitempty"` // GUID of the resulting global memory dump.
|
||||
@@ -129,6 +137,8 @@ type StartParams struct {
|
||||
StreamFormat StreamFormat `json:"streamFormat,omitempty"` // Trace data format to use. This only applies when using ReturnAsStream transfer mode (defaults to json).
|
||||
StreamCompression StreamCompression `json:"streamCompression,omitempty"` // Compression format to use. This only applies when using ReturnAsStream transfer mode (defaults to none)
|
||||
TraceConfig *TraceConfig `json:"traceConfig,omitempty"`
|
||||
PerfettoConfig string `json:"perfettoConfig,omitempty"` // Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored.
|
||||
TracingBackend Backend `json:"tracingBackend,omitempty"` // Backend type (defaults to auto)
|
||||
}
|
||||
|
||||
// Start start trace events collection.
|
||||
@@ -174,6 +184,20 @@ func (p StartParams) WithTraceConfig(traceConfig *TraceConfig) *StartParams {
|
||||
return &p
|
||||
}
|
||||
|
||||
// WithPerfettoConfig base64-encoded serialized perfetto.protos.TraceConfig
|
||||
// protobuf message When specified, the parameters categories, options,
|
||||
// traceConfig are ignored.
|
||||
func (p StartParams) WithPerfettoConfig(perfettoConfig string) *StartParams {
|
||||
p.PerfettoConfig = perfettoConfig
|
||||
return &p
|
||||
}
|
||||
|
||||
// WithTracingBackend backend type (defaults to auto).
|
||||
func (p StartParams) WithTracingBackend(tracingBackend Backend) *StartParams {
|
||||
p.TracingBackend = tracingBackend
|
||||
return &p
|
||||
}
|
||||
|
||||
// Do executes Tracing.start against the provided context.
|
||||
func (p *StartParams) Do(ctx context.Context) (err error) {
|
||||
return cdp.Execute(ctx, CommandStart, p, nil)
|
||||
|
||||
Reference in New Issue
Block a user