cdproto: github.com/chromedp/cdproto/profiler Index | Files

package profiler

import "github.com/chromedp/cdproto/profiler"

Package profiler provides the Chrome DevTools Protocol commands, types, and events for the Profiler domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go profiler.go types.go

Constants

const (
    CommandDisable                 = "Profiler.disable"
    CommandEnable                  = "Profiler.enable"
    CommandGetBestEffortCoverage   = "Profiler.getBestEffortCoverage"
    CommandSetSamplingInterval     = "Profiler.setSamplingInterval"
    CommandStart                   = "Profiler.start"
    CommandStartPreciseCoverage    = "Profiler.startPreciseCoverage"
    CommandStartTypeProfile        = "Profiler.startTypeProfile"
    CommandStop                    = "Profiler.stop"
    CommandStopPreciseCoverage     = "Profiler.stopPreciseCoverage"
    CommandStopTypeProfile         = "Profiler.stopTypeProfile"
    CommandTakePreciseCoverage     = "Profiler.takePreciseCoverage"
    CommandTakeTypeProfile         = "Profiler.takeTypeProfile"
    CommandEnableCounters          = "Profiler.enableCounters"
    CommandDisableCounters         = "Profiler.disableCounters"
    CommandGetCounters             = "Profiler.getCounters"
    CommandEnableRuntimeCallStats  = "Profiler.enableRuntimeCallStats"
    CommandDisableRuntimeCallStats = "Profiler.disableRuntimeCallStats"
    CommandGetRuntimeCallStats     = "Profiler.getRuntimeCallStats"
)

Command names.

type CounterInfo Uses

type CounterInfo struct {
    Name  string `json:"name"`  // Counter name.
    Value int64  `json:"value"` // Counter value.
}

CounterInfo collected counter information.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-CounterInfo

func (CounterInfo) MarshalEasyJSON Uses

func (v CounterInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CounterInfo) MarshalJSON Uses

func (v CounterInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CounterInfo) UnmarshalEasyJSON Uses

func (v *CounterInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CounterInfo) UnmarshalJSON Uses

func (v *CounterInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CoverageRange Uses

type CoverageRange struct {
    StartOffset int64 `json:"startOffset"` // JavaScript script source offset for the range start.
    EndOffset   int64 `json:"endOffset"`   // JavaScript script source offset for the range end.
    Count       int64 `json:"count"`       // Collected execution count of the source range.
}

CoverageRange coverage data for a source range.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-CoverageRange

func (CoverageRange) MarshalEasyJSON Uses

func (v CoverageRange) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CoverageRange) MarshalJSON Uses

func (v CoverageRange) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CoverageRange) UnmarshalEasyJSON Uses

func (v *CoverageRange) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CoverageRange) UnmarshalJSON Uses

func (v *CoverageRange) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableCountersParams Uses

type DisableCountersParams struct{}

DisableCountersParams disable counters collection.

func DisableCounters Uses

func DisableCounters() *DisableCountersParams

DisableCounters disable counters collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-disableCounters

func (*DisableCountersParams) Do Uses

func (p *DisableCountersParams) Do(ctx context.Context) (err error)

Do executes Profiler.disableCounters against the provided context.

func (DisableCountersParams) MarshalEasyJSON Uses

func (v DisableCountersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableCountersParams) MarshalJSON Uses

func (v DisableCountersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableCountersParams) UnmarshalEasyJSON Uses

func (v *DisableCountersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableCountersParams) UnmarshalJSON Uses

func (v *DisableCountersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams [no description].

func Disable Uses

func Disable() *DisableParams

Disable [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Profiler.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableRuntimeCallStatsParams Uses

type DisableRuntimeCallStatsParams struct{}

DisableRuntimeCallStatsParams disable run time call stats collection.

func DisableRuntimeCallStats Uses

func DisableRuntimeCallStats() *DisableRuntimeCallStatsParams

DisableRuntimeCallStats disable run time call stats collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-disableRuntimeCallStats

func (*DisableRuntimeCallStatsParams) Do Uses

func (p *DisableRuntimeCallStatsParams) Do(ctx context.Context) (err error)

Do executes Profiler.disableRuntimeCallStats against the provided context.

func (DisableRuntimeCallStatsParams) MarshalEasyJSON Uses

func (v DisableRuntimeCallStatsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableRuntimeCallStatsParams) MarshalJSON Uses

func (v DisableRuntimeCallStatsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableRuntimeCallStatsParams) UnmarshalEasyJSON Uses

func (v *DisableRuntimeCallStatsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableRuntimeCallStatsParams) UnmarshalJSON Uses

func (v *DisableRuntimeCallStatsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableCountersParams Uses

type EnableCountersParams struct{}

EnableCountersParams enable counters collection.

func EnableCounters Uses

func EnableCounters() *EnableCountersParams

EnableCounters enable counters collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-enableCounters

func (*EnableCountersParams) Do Uses

func (p *EnableCountersParams) Do(ctx context.Context) (err error)

Do executes Profiler.enableCounters against the provided context.

func (EnableCountersParams) MarshalEasyJSON Uses

func (v EnableCountersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableCountersParams) MarshalJSON Uses

func (v EnableCountersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableCountersParams) UnmarshalEasyJSON Uses

func (v *EnableCountersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableCountersParams) UnmarshalJSON Uses

func (v *EnableCountersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams [no description].

func Enable Uses

func Enable() *EnableParams

Enable [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Profiler.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableRuntimeCallStatsParams Uses

type EnableRuntimeCallStatsParams struct{}

EnableRuntimeCallStatsParams enable run time call stats collection.

func EnableRuntimeCallStats Uses

func EnableRuntimeCallStats() *EnableRuntimeCallStatsParams

EnableRuntimeCallStats enable run time call stats collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-enableRuntimeCallStats

func (*EnableRuntimeCallStatsParams) Do Uses

func (p *EnableRuntimeCallStatsParams) Do(ctx context.Context) (err error)

Do executes Profiler.enableRuntimeCallStats against the provided context.

func (EnableRuntimeCallStatsParams) MarshalEasyJSON Uses

func (v EnableRuntimeCallStatsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableRuntimeCallStatsParams) MarshalJSON Uses

func (v EnableRuntimeCallStatsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableRuntimeCallStatsParams) UnmarshalEasyJSON Uses

func (v *EnableRuntimeCallStatsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableRuntimeCallStatsParams) UnmarshalJSON Uses

func (v *EnableRuntimeCallStatsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventConsoleProfileFinished Uses

type EventConsoleProfileFinished struct {
    ID       string             `json:"id"`
    Location *debugger.Location `json:"location"` // Location of console.profileEnd().
    Profile  *Profile           `json:"profile"`
    Title    string             `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}

EventConsoleProfileFinished [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileFinished

func (EventConsoleProfileFinished) MarshalEasyJSON Uses

func (v EventConsoleProfileFinished) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventConsoleProfileFinished) MarshalJSON Uses

func (v EventConsoleProfileFinished) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventConsoleProfileFinished) UnmarshalEasyJSON Uses

func (v *EventConsoleProfileFinished) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventConsoleProfileFinished) UnmarshalJSON Uses

func (v *EventConsoleProfileFinished) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventConsoleProfileStarted Uses

type EventConsoleProfileStarted struct {
    ID       string             `json:"id"`
    Location *debugger.Location `json:"location"`        // Location of console.profile().
    Title    string             `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}

EventConsoleProfileStarted sent when new profile recording is started using console.profile() call.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileStarted

func (EventConsoleProfileStarted) MarshalEasyJSON Uses

func (v EventConsoleProfileStarted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventConsoleProfileStarted) MarshalJSON Uses

func (v EventConsoleProfileStarted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventConsoleProfileStarted) UnmarshalEasyJSON Uses

func (v *EventConsoleProfileStarted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventConsoleProfileStarted) UnmarshalJSON Uses

func (v *EventConsoleProfileStarted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventPreciseCoverageDeltaUpdate Uses

type EventPreciseCoverageDeltaUpdate struct {
    Timestamp float64           `json:"timestamp"` // Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
    Occassion string            `json:"occassion"` // Identifier for distinguishing coverage events.
    Result    []*ScriptCoverage `json:"result"`    // Coverage data for the current isolate.
}

EventPreciseCoverageDeltaUpdate reports coverage delta since the last poll (either from an event like this, or from takePreciseCoverage for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-preciseCoverageDeltaUpdate

func (EventPreciseCoverageDeltaUpdate) MarshalEasyJSON Uses

func (v EventPreciseCoverageDeltaUpdate) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventPreciseCoverageDeltaUpdate) MarshalJSON Uses

func (v EventPreciseCoverageDeltaUpdate) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventPreciseCoverageDeltaUpdate) UnmarshalEasyJSON Uses

func (v *EventPreciseCoverageDeltaUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventPreciseCoverageDeltaUpdate) UnmarshalJSON Uses

func (v *EventPreciseCoverageDeltaUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FunctionCoverage Uses

type FunctionCoverage struct {
    FunctionName    string           `json:"functionName"`    // JavaScript function name.
    Ranges          []*CoverageRange `json:"ranges"`          // Source ranges inside the function with coverage data.
    IsBlockCoverage bool             `json:"isBlockCoverage"` // Whether coverage data for this function has block granularity.
}

FunctionCoverage coverage data for a JavaScript function.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-FunctionCoverage

func (FunctionCoverage) MarshalEasyJSON Uses

func (v FunctionCoverage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FunctionCoverage) MarshalJSON Uses

func (v FunctionCoverage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FunctionCoverage) UnmarshalEasyJSON Uses

func (v *FunctionCoverage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FunctionCoverage) UnmarshalJSON Uses

func (v *FunctionCoverage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBestEffortCoverageParams Uses

type GetBestEffortCoverageParams struct{}

GetBestEffortCoverageParams collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

func GetBestEffortCoverage Uses

func GetBestEffortCoverage() *GetBestEffortCoverageParams

GetBestEffortCoverage collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-getBestEffortCoverage

func (*GetBestEffortCoverageParams) Do Uses

func (p *GetBestEffortCoverageParams) Do(ctx context.Context) (result []*ScriptCoverage, err error)

Do executes Profiler.getBestEffortCoverage against the provided context.

returns:

result - Coverage data for the current isolate.

func (GetBestEffortCoverageParams) MarshalEasyJSON Uses

func (v GetBestEffortCoverageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBestEffortCoverageParams) MarshalJSON Uses

func (v GetBestEffortCoverageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBestEffortCoverageParams) UnmarshalEasyJSON Uses

func (v *GetBestEffortCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBestEffortCoverageParams) UnmarshalJSON Uses

func (v *GetBestEffortCoverageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBestEffortCoverageReturns Uses

type GetBestEffortCoverageReturns struct {
    Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate.
}

GetBestEffortCoverageReturns return values.

func (GetBestEffortCoverageReturns) MarshalEasyJSON Uses

func (v GetBestEffortCoverageReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBestEffortCoverageReturns) MarshalJSON Uses

func (v GetBestEffortCoverageReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBestEffortCoverageReturns) UnmarshalEasyJSON Uses

func (v *GetBestEffortCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBestEffortCoverageReturns) UnmarshalJSON Uses

func (v *GetBestEffortCoverageReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCountersParams Uses

type GetCountersParams struct{}

GetCountersParams retrieve counters.

func GetCounters Uses

func GetCounters() *GetCountersParams

GetCounters retrieve counters.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-getCounters

func (*GetCountersParams) Do Uses

func (p *GetCountersParams) Do(ctx context.Context) (result []*CounterInfo, err error)

Do executes Profiler.getCounters against the provided context.

returns:

result - Collected counters information.

func (GetCountersParams) MarshalEasyJSON Uses

func (v GetCountersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCountersParams) MarshalJSON Uses

func (v GetCountersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCountersParams) UnmarshalEasyJSON Uses

func (v *GetCountersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCountersParams) UnmarshalJSON Uses

func (v *GetCountersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCountersReturns Uses

type GetCountersReturns struct {
    Result []*CounterInfo `json:"result,omitempty"` // Collected counters information.
}

GetCountersReturns return values.

func (GetCountersReturns) MarshalEasyJSON Uses

func (v GetCountersReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCountersReturns) MarshalJSON Uses

func (v GetCountersReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCountersReturns) UnmarshalEasyJSON Uses

func (v *GetCountersReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCountersReturns) UnmarshalJSON Uses

func (v *GetCountersReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRuntimeCallStatsParams Uses

type GetRuntimeCallStatsParams struct{}

GetRuntimeCallStatsParams retrieve run time call stats.

func GetRuntimeCallStats Uses

func GetRuntimeCallStats() *GetRuntimeCallStatsParams

GetRuntimeCallStats retrieve run time call stats.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-getRuntimeCallStats

func (*GetRuntimeCallStatsParams) Do Uses

func (p *GetRuntimeCallStatsParams) Do(ctx context.Context) (result []*RuntimeCallCounterInfo, err error)

Do executes Profiler.getRuntimeCallStats against the provided context.

returns:

result - Collected runtime call counter information.

func (GetRuntimeCallStatsParams) MarshalEasyJSON Uses

func (v GetRuntimeCallStatsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRuntimeCallStatsParams) MarshalJSON Uses

func (v GetRuntimeCallStatsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRuntimeCallStatsParams) UnmarshalEasyJSON Uses

func (v *GetRuntimeCallStatsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRuntimeCallStatsParams) UnmarshalJSON Uses

func (v *GetRuntimeCallStatsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRuntimeCallStatsReturns Uses

type GetRuntimeCallStatsReturns struct {
    Result []*RuntimeCallCounterInfo `json:"result,omitempty"` // Collected runtime call counter information.
}

GetRuntimeCallStatsReturns return values.

func (GetRuntimeCallStatsReturns) MarshalEasyJSON Uses

func (v GetRuntimeCallStatsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRuntimeCallStatsReturns) MarshalJSON Uses

func (v GetRuntimeCallStatsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRuntimeCallStatsReturns) UnmarshalEasyJSON Uses

func (v *GetRuntimeCallStatsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRuntimeCallStatsReturns) UnmarshalJSON Uses

func (v *GetRuntimeCallStatsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PositionTickInfo Uses

type PositionTickInfo struct {
    Line  int64 `json:"line"`  // Source line number (1-based).
    Ticks int64 `json:"ticks"` // Number of samples attributed to the source line.
}

PositionTickInfo specifies a number of samples attributed to a certain source position.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-PositionTickInfo

func (PositionTickInfo) MarshalEasyJSON Uses

func (v PositionTickInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PositionTickInfo) MarshalJSON Uses

func (v PositionTickInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PositionTickInfo) UnmarshalEasyJSON Uses

func (v *PositionTickInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PositionTickInfo) UnmarshalJSON Uses

func (v *PositionTickInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Profile Uses

type Profile struct {
    Nodes      []*ProfileNode `json:"nodes"`                // The list of profile nodes. First item is the root node.
    StartTime  float64        `json:"startTime"`            // Profiling start timestamp in microseconds.
    EndTime    float64        `json:"endTime"`              // Profiling end timestamp in microseconds.
    Samples    []int64        `json:"samples,omitempty"`    // Ids of samples top nodes.
    TimeDeltas []int64        `json:"timeDeltas,omitempty"` // Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
}

Profile Profile.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-Profile

func (Profile) MarshalEasyJSON Uses

func (v Profile) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Profile) MarshalJSON Uses

func (v Profile) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Profile) UnmarshalEasyJSON Uses

func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Profile) UnmarshalJSON Uses

func (v *Profile) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProfileNode Uses

type ProfileNode struct {
    ID            int64               `json:"id"`                      // Unique id of the node.
    CallFrame     *runtime.CallFrame  `json:"callFrame"`               // Function location.
    HitCount      int64               `json:"hitCount,omitempty"`      // Number of samples where this node was on top of the call stack.
    Children      []int64             `json:"children,omitempty"`      // Child node ids.
    DeoptReason   string              `json:"deoptReason,omitempty"`   // The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
    PositionTicks []*PositionTickInfo `json:"positionTicks,omitempty"` // An array of source position ticks.
}

ProfileNode profile node. Holds callsite information, execution statistics and child nodes.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ProfileNode

func (ProfileNode) MarshalEasyJSON Uses

func (v ProfileNode) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileNode) MarshalJSON Uses

func (v ProfileNode) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ProfileNode) UnmarshalEasyJSON Uses

func (v *ProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileNode) UnmarshalJSON Uses

func (v *ProfileNode) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RuntimeCallCounterInfo Uses

type RuntimeCallCounterInfo struct {
    Name  string  `json:"name"`  // Counter name.
    Value float64 `json:"value"` // Counter value.
    Time  float64 `json:"time"`  // Counter time in seconds.
}

RuntimeCallCounterInfo runtime call counter information.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-RuntimeCallCounterInfo

func (RuntimeCallCounterInfo) MarshalEasyJSON Uses

func (v RuntimeCallCounterInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RuntimeCallCounterInfo) MarshalJSON Uses

func (v RuntimeCallCounterInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RuntimeCallCounterInfo) UnmarshalEasyJSON Uses

func (v *RuntimeCallCounterInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RuntimeCallCounterInfo) UnmarshalJSON Uses

func (v *RuntimeCallCounterInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScriptCoverage Uses

type ScriptCoverage struct {
    ScriptID  runtime.ScriptID    `json:"scriptId"`  // JavaScript script id.
    URL       string              `json:"url"`       // JavaScript script name or url.
    Functions []*FunctionCoverage `json:"functions"` // Functions contained in the script that has coverage data.
}

ScriptCoverage coverage data for a JavaScript script.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptCoverage

func (ScriptCoverage) MarshalEasyJSON Uses

func (v ScriptCoverage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScriptCoverage) MarshalJSON Uses

func (v ScriptCoverage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScriptCoverage) UnmarshalEasyJSON Uses

func (v *ScriptCoverage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScriptCoverage) UnmarshalJSON Uses

func (v *ScriptCoverage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScriptTypeProfile Uses

type ScriptTypeProfile struct {
    ScriptID runtime.ScriptID    `json:"scriptId"` // JavaScript script id.
    URL      string              `json:"url"`      // JavaScript script name or url.
    Entries  []*TypeProfileEntry `json:"entries"`  // Type profile entries for parameters and return values of the functions in the script.
}

ScriptTypeProfile type profile data collected during runtime for a JavaScript script.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptTypeProfile

func (ScriptTypeProfile) MarshalEasyJSON Uses

func (v ScriptTypeProfile) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScriptTypeProfile) MarshalJSON Uses

func (v ScriptTypeProfile) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScriptTypeProfile) UnmarshalEasyJSON Uses

func (v *ScriptTypeProfile) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScriptTypeProfile) UnmarshalJSON Uses

func (v *ScriptTypeProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetSamplingIntervalParams Uses

type SetSamplingIntervalParams struct {
    Interval int64 `json:"interval"` // New sampling interval in microseconds.
}

SetSamplingIntervalParams changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

func SetSamplingInterval Uses

func SetSamplingInterval(interval int64) *SetSamplingIntervalParams

SetSamplingInterval changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-setSamplingInterval

parameters:

interval - New sampling interval in microseconds.

func (*SetSamplingIntervalParams) Do Uses

func (p *SetSamplingIntervalParams) Do(ctx context.Context) (err error)

Do executes Profiler.setSamplingInterval against the provided context.

func (SetSamplingIntervalParams) MarshalEasyJSON Uses

func (v SetSamplingIntervalParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetSamplingIntervalParams) MarshalJSON Uses

func (v SetSamplingIntervalParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetSamplingIntervalParams) UnmarshalEasyJSON Uses

func (v *SetSamplingIntervalParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetSamplingIntervalParams) UnmarshalJSON Uses

func (v *SetSamplingIntervalParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartParams Uses

type StartParams struct{}

StartParams [no description].

func Start Uses

func Start() *StartParams

Start [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-start

func (*StartParams) Do Uses

func (p *StartParams) Do(ctx context.Context) (err error)

Do executes Profiler.start against the provided context.

func (StartParams) MarshalEasyJSON Uses

func (v StartParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartParams) MarshalJSON Uses

func (v StartParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartParams) UnmarshalEasyJSON Uses

func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartParams) UnmarshalJSON Uses

func (v *StartParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartPreciseCoverageParams Uses

type StartPreciseCoverageParams struct {
    CallCount             bool `json:"callCount,omitempty"`             // Collect accurate call counts beyond simple 'covered' or 'not covered'.
    Detailed              bool `json:"detailed,omitempty"`              // Collect block-based coverage.
    AllowTriggeredUpdates bool `json:"allowTriggeredUpdates,omitempty"` // Allow the backend to send updates on its own initiative
}

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.

func StartPreciseCoverage Uses

func StartPreciseCoverage() *StartPreciseCoverageParams

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-startPreciseCoverage

parameters:

func (*StartPreciseCoverageParams) Do Uses

func (p *StartPreciseCoverageParams) Do(ctx context.Context) (timestamp float64, err error)

Do executes Profiler.startPreciseCoverage against the provided context.

returns:

timestamp - Monotonically increasing time (in seconds) when the coverage update was taken in the backend.

func (StartPreciseCoverageParams) MarshalEasyJSON Uses

func (v StartPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartPreciseCoverageParams) MarshalJSON Uses

func (v StartPreciseCoverageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartPreciseCoverageParams) UnmarshalEasyJSON Uses

func (v *StartPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartPreciseCoverageParams) UnmarshalJSON Uses

func (v *StartPreciseCoverageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (StartPreciseCoverageParams) WithAllowTriggeredUpdates Uses

func (p StartPreciseCoverageParams) WithAllowTriggeredUpdates(allowTriggeredUpdates bool) *StartPreciseCoverageParams

WithAllowTriggeredUpdates allow the backend to send updates on its own initiative.

func (StartPreciseCoverageParams) WithCallCount Uses

func (p StartPreciseCoverageParams) WithCallCount(callCount bool) *StartPreciseCoverageParams

WithCallCount collect accurate call counts beyond simple 'covered' or 'not covered'.

func (StartPreciseCoverageParams) WithDetailed Uses

func (p StartPreciseCoverageParams) WithDetailed(detailed bool) *StartPreciseCoverageParams

WithDetailed collect block-based coverage.

type StartPreciseCoverageReturns Uses

type StartPreciseCoverageReturns struct {
    Timestamp float64 `json:"timestamp,omitempty"` // Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
}

StartPreciseCoverageReturns return values.

func (StartPreciseCoverageReturns) MarshalEasyJSON Uses

func (v StartPreciseCoverageReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartPreciseCoverageReturns) MarshalJSON Uses

func (v StartPreciseCoverageReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartPreciseCoverageReturns) UnmarshalEasyJSON Uses

func (v *StartPreciseCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartPreciseCoverageReturns) UnmarshalJSON Uses

func (v *StartPreciseCoverageReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartTypeProfileParams Uses

type StartTypeProfileParams struct{}

StartTypeProfileParams enable type profile.

func StartTypeProfile Uses

func StartTypeProfile() *StartTypeProfileParams

StartTypeProfile enable type profile.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-startTypeProfile

func (*StartTypeProfileParams) Do Uses

func (p *StartTypeProfileParams) Do(ctx context.Context) (err error)

Do executes Profiler.startTypeProfile against the provided context.

func (StartTypeProfileParams) MarshalEasyJSON Uses

func (v StartTypeProfileParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartTypeProfileParams) MarshalJSON Uses

func (v StartTypeProfileParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartTypeProfileParams) UnmarshalEasyJSON Uses

func (v *StartTypeProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartTypeProfileParams) UnmarshalJSON Uses

func (v *StartTypeProfileParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopParams Uses

type StopParams struct{}

StopParams [no description].

func Stop Uses

func Stop() *StopParams

Stop [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-stop

func (*StopParams) Do Uses

func (p *StopParams) Do(ctx context.Context) (profile *Profile, err error)

Do executes Profiler.stop against the provided context.

returns:

profile - Recorded profile.

func (StopParams) MarshalEasyJSON Uses

func (v StopParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopParams) MarshalJSON Uses

func (v StopParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopParams) UnmarshalEasyJSON Uses

func (v *StopParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopParams) UnmarshalJSON Uses

func (v *StopParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopPreciseCoverageParams Uses

type StopPreciseCoverageParams struct{}

StopPreciseCoverageParams disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.

func StopPreciseCoverage Uses

func StopPreciseCoverage() *StopPreciseCoverageParams

StopPreciseCoverage disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-stopPreciseCoverage

func (*StopPreciseCoverageParams) Do Uses

func (p *StopPreciseCoverageParams) Do(ctx context.Context) (err error)

Do executes Profiler.stopPreciseCoverage against the provided context.

func (StopPreciseCoverageParams) MarshalEasyJSON Uses

func (v StopPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopPreciseCoverageParams) MarshalJSON Uses

func (v StopPreciseCoverageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopPreciseCoverageParams) UnmarshalEasyJSON Uses

func (v *StopPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopPreciseCoverageParams) UnmarshalJSON Uses

func (v *StopPreciseCoverageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopReturns Uses

type StopReturns struct {
    Profile *Profile `json:"profile,omitempty"` // Recorded profile.
}

StopReturns return values.

func (StopReturns) MarshalEasyJSON Uses

func (v StopReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopReturns) MarshalJSON Uses

func (v StopReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopReturns) UnmarshalEasyJSON Uses

func (v *StopReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopReturns) UnmarshalJSON Uses

func (v *StopReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopTypeProfileParams Uses

type StopTypeProfileParams struct{}

StopTypeProfileParams disable type profile. Disabling releases type profile data collected so far.

func StopTypeProfile Uses

func StopTypeProfile() *StopTypeProfileParams

StopTypeProfile disable type profile. Disabling releases type profile data collected so far.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-stopTypeProfile

func (*StopTypeProfileParams) Do Uses

func (p *StopTypeProfileParams) Do(ctx context.Context) (err error)

Do executes Profiler.stopTypeProfile against the provided context.

func (StopTypeProfileParams) MarshalEasyJSON Uses

func (v StopTypeProfileParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopTypeProfileParams) MarshalJSON Uses

func (v StopTypeProfileParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopTypeProfileParams) UnmarshalEasyJSON Uses

func (v *StopTypeProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopTypeProfileParams) UnmarshalJSON Uses

func (v *StopTypeProfileParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakePreciseCoverageParams Uses

type TakePreciseCoverageParams struct{}

TakePreciseCoverageParams collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.

func TakePreciseCoverage Uses

func TakePreciseCoverage() *TakePreciseCoverageParams

TakePreciseCoverage collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-takePreciseCoverage

func (*TakePreciseCoverageParams) Do Uses

func (p *TakePreciseCoverageParams) Do(ctx context.Context) (result []*ScriptCoverage, timestamp float64, err error)

Do executes Profiler.takePreciseCoverage against the provided context.

returns:

result - Coverage data for the current isolate.
timestamp - Monotonically increasing time (in seconds) when the coverage update was taken in the backend.

func (TakePreciseCoverageParams) MarshalEasyJSON Uses

func (v TakePreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakePreciseCoverageParams) MarshalJSON Uses

func (v TakePreciseCoverageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakePreciseCoverageParams) UnmarshalEasyJSON Uses

func (v *TakePreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakePreciseCoverageParams) UnmarshalJSON Uses

func (v *TakePreciseCoverageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakePreciseCoverageReturns Uses

type TakePreciseCoverageReturns struct {
    Result    []*ScriptCoverage `json:"result,omitempty"`    // Coverage data for the current isolate.
    Timestamp float64           `json:"timestamp,omitempty"` // Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
}

TakePreciseCoverageReturns return values.

func (TakePreciseCoverageReturns) MarshalEasyJSON Uses

func (v TakePreciseCoverageReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakePreciseCoverageReturns) MarshalJSON Uses

func (v TakePreciseCoverageReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakePreciseCoverageReturns) UnmarshalEasyJSON Uses

func (v *TakePreciseCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakePreciseCoverageReturns) UnmarshalJSON Uses

func (v *TakePreciseCoverageReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeTypeProfileParams Uses

type TakeTypeProfileParams struct{}

TakeTypeProfileParams collect type profile.

func TakeTypeProfile Uses

func TakeTypeProfile() *TakeTypeProfileParams

TakeTypeProfile collect type profile.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#method-takeTypeProfile

func (*TakeTypeProfileParams) Do Uses

func (p *TakeTypeProfileParams) Do(ctx context.Context) (result []*ScriptTypeProfile, err error)

Do executes Profiler.takeTypeProfile against the provided context.

returns:

result - Type profile for all scripts since startTypeProfile() was turned on.

func (TakeTypeProfileParams) MarshalEasyJSON Uses

func (v TakeTypeProfileParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeTypeProfileParams) MarshalJSON Uses

func (v TakeTypeProfileParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeTypeProfileParams) UnmarshalEasyJSON Uses

func (v *TakeTypeProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeTypeProfileParams) UnmarshalJSON Uses

func (v *TakeTypeProfileParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeTypeProfileReturns Uses

type TakeTypeProfileReturns struct {
    Result []*ScriptTypeProfile `json:"result,omitempty"` // Type profile for all scripts since startTypeProfile() was turned on.
}

TakeTypeProfileReturns return values.

func (TakeTypeProfileReturns) MarshalEasyJSON Uses

func (v TakeTypeProfileReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeTypeProfileReturns) MarshalJSON Uses

func (v TakeTypeProfileReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeTypeProfileReturns) UnmarshalEasyJSON Uses

func (v *TakeTypeProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeTypeProfileReturns) UnmarshalJSON Uses

func (v *TakeTypeProfileReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TypeObject Uses

type TypeObject struct {
    Name string `json:"name"` // Name of a type collected with type profiling.
}

TypeObject describes a type collected during runtime.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-TypeObject

func (TypeObject) MarshalEasyJSON Uses

func (v TypeObject) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TypeObject) MarshalJSON Uses

func (v TypeObject) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TypeObject) UnmarshalEasyJSON Uses

func (v *TypeObject) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TypeObject) UnmarshalJSON Uses

func (v *TypeObject) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TypeProfileEntry Uses

type TypeProfileEntry struct {
    Offset int64         `json:"offset"` // Source offset of the parameter or end of function for return values.
    Types  []*TypeObject `json:"types"`  // The types for this parameter or return value.
}

TypeProfileEntry source offset and types for a parameter or return value.

See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-TypeProfileEntry

func (TypeProfileEntry) MarshalEasyJSON Uses

func (v TypeProfileEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TypeProfileEntry) MarshalJSON Uses

func (v TypeProfileEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TypeProfileEntry) UnmarshalEasyJSON Uses

func (v *TypeProfileEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TypeProfileEntry) UnmarshalJSON Uses

func (v *TypeProfileEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package profiler imports 8 packages (graph) and is imported by 4 packages. Updated 2021-01-07. Refresh now. Tools for package owners.