profiler

package
v0.0.0-...-7421a99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

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

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

Functions

This section is empty.

Types

type DisableParams

type DisableParams struct{}

DisableParams [no description].

func Disable

func Disable() *DisableParams

Disable [no description].

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)

Do executes Profiler.disable.

func (DisableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams [no description].

func Enable

func Enable() *EnableParams

Enable [no description].

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)

Do executes Profiler.enable.

func (EnableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventConsoleProfileFinished

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

EventConsoleProfileFinished [no description].

func (EventConsoleProfileFinished) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventConsoleProfileFinished) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventConsoleProfileFinished) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventConsoleProfileFinished) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventConsoleProfileStarted

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

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

func (EventConsoleProfileStarted) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventConsoleProfileStarted) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventConsoleProfileStarted) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventConsoleProfileStarted) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type PositionTickInfo

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.
}

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

func (PositionTickInfo) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PositionTickInfo) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PositionTickInfo) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PositionTickInfo) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Profile

type Profile struct {
	Nodes      []*ProfileNode `json:"nodes,omitempty"`      // The list of profile nodes. First item is the root node.
	StartTime  float64        `json:"startTime,omitempty"`  // Profiling start timestamp in microseconds.
	EndTime    float64        `json:"endTime,omitempty"`    // 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.

func (Profile) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Profile) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Profile) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Profile) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ProfileNode

type ProfileNode struct {
	ID            int64               `json:"id,omitempty"`            // Unique id of the node.
	CallFrame     *runtime.CallFrame  `json:"callFrame,omitempty"`     // 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.

func (ProfileNode) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileNode) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfileNode) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileNode) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetSamplingIntervalParams

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

func SetSamplingInterval(interval int64) *SetSamplingIntervalParams

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

parameters:

interval - New sampling interval in microseconds.

func (*SetSamplingIntervalParams) Do

Do executes Profiler.setSamplingInterval.

func (SetSamplingIntervalParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetSamplingIntervalParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetSamplingIntervalParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetSamplingIntervalParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StartParams

type StartParams struct{}

StartParams [no description].

func Start

func Start() *StartParams

Start [no description].

func (*StartParams) Do

func (p *StartParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)

Do executes Profiler.start.

func (StartParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StartParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StopParams

type StopParams struct{}

StopParams [no description].

func Stop

func Stop() *StopParams

Stop [no description].

func (*StopParams) Do

func (p *StopParams) Do(ctxt context.Context, h cdp.FrameHandler) (profile *Profile, err error)

Do executes Profiler.stop.

returns:

profile - Recorded profile.

func (StopParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StopParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StopReturns

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

StopReturns return values.

func (StopReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StopReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL