tracing

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferUsageEvent

type BufferUsageEvent struct {
	PercentFull *float64 `json:"percentFull,omitempty"` // A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
	EventCount  *float64 `json:"eventCount,omitempty"`  // An approximate number of events in the trace log.
	Value       *float64 `json:"value,omitempty"`       // A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
}

type DataCollectedEvent

type DataCollectedEvent struct {
	Value []map[string]string `json:"value"`
}

type EndCommand

type EndCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EndCommand) Initalize

func (c *EndCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EndCommand) Respond

func (c *EndCommand) Respond()

func (*EndCommand) RespondWithError

func (c *EndCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EndCommandFn

type EndCommandFn struct {
	// contains filtered or unexported fields
}

func (*EndCommandFn) Load

func (a *EndCommandFn) Load() func(EndCommand)

func (*EndCommandFn) Store

func (a *EndCommandFn) Store(fn func(EndCommand))

type EndReturn

type EndReturn struct {
}

type GetCategoriesCommand

type GetCategoriesCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetCategoriesCommand) Initalize

func (c *GetCategoriesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetCategoriesCommand) Respond

func (*GetCategoriesCommand) RespondWithError

func (c *GetCategoriesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetCategoriesCommandFn

type GetCategoriesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetCategoriesCommandFn) Load

func (*GetCategoriesCommandFn) Store

func (a *GetCategoriesCommandFn) Store(fn func(GetCategoriesCommand))

type GetCategoriesReturn

type GetCategoriesReturn struct {
	Categories []string `json:"categories"` // A list of supported tracing categories.
}

type MemoryDumpConfig

type MemoryDumpConfig map[string]string

type RecordClockSyncMarkerCommand

type RecordClockSyncMarkerCommand struct {
	DestinationTargetID string

	SyncId string `json:"syncId"` // The ID of this clock sync marker
	// contains filtered or unexported fields
}

func (*RecordClockSyncMarkerCommand) Initalize

func (c *RecordClockSyncMarkerCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RecordClockSyncMarkerCommand) Respond

func (c *RecordClockSyncMarkerCommand) Respond()

func (*RecordClockSyncMarkerCommand) RespondWithError

func (c *RecordClockSyncMarkerCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RecordClockSyncMarkerCommandFn

type RecordClockSyncMarkerCommandFn struct {
	// contains filtered or unexported fields
}

func (*RecordClockSyncMarkerCommandFn) Load

func (*RecordClockSyncMarkerCommandFn) Store

type RecordClockSyncMarkerReturn

type RecordClockSyncMarkerReturn struct {
}

type RequestMemoryDumpCommand

type RequestMemoryDumpCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*RequestMemoryDumpCommand) Initalize

func (c *RequestMemoryDumpCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RequestMemoryDumpCommand) Respond

func (*RequestMemoryDumpCommand) RespondWithError

func (c *RequestMemoryDumpCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RequestMemoryDumpCommandFn

type RequestMemoryDumpCommandFn struct {
	// contains filtered or unexported fields
}

func (*RequestMemoryDumpCommandFn) Load

func (*RequestMemoryDumpCommandFn) Store

type RequestMemoryDumpReturn

type RequestMemoryDumpReturn struct {
	DumpGuid string `json:"dumpGuid"` // GUID of the resulting global memory dump.
	Success  bool   `json:"success"`  // True iff the global memory dump succeeded.
}

type StartCommand

type StartCommand struct {
	DestinationTargetID string

	Categories                   *string                `json:"categories,omitempty"`                   // Category/tag filter
	Options                      *string                `json:"options,omitempty"`                      // Tracing options
	BufferUsageReportingInterval *float64               `json:"bufferUsageReportingInterval,omitempty"` // If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
	TransferMode                 *StartTransferModeEnum `json:"transferMode,omitempty"`                 // Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to <code>ReportEvents</code>).
	TraceConfig                  *TraceConfig           `json:"traceConfig,omitempty"`
	// contains filtered or unexported fields
}

func (*StartCommand) Initalize

func (c *StartCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StartCommand) Respond

func (c *StartCommand) Respond()

func (*StartCommand) RespondWithError

func (c *StartCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StartCommandFn

type StartCommandFn struct {
	// contains filtered or unexported fields
}

func (*StartCommandFn) Load

func (a *StartCommandFn) Load() func(StartCommand)

func (*StartCommandFn) Store

func (a *StartCommandFn) Store(fn func(StartCommand))

type StartReturn

type StartReturn struct {
}

type StartTransferModeEnum

type StartTransferModeEnum string
const (
	StartTransferModeReportEvents   StartTransferModeEnum = "ReportEvents"
	StartTransferModeReturnAsStream StartTransferModeEnum = "ReturnAsStream"
)

type TraceConfig

type TraceConfig struct {
	RecordMode           *TraceConfigRecordModeEnum `json:"recordMode,omitempty"`           // Controls how the trace buffer stores data.
	EnableSampling       *bool                      `json:"enableSampling,omitempty"`       // Turns on JavaScript stack sampling.
	EnableSystrace       *bool                      `json:"enableSystrace,omitempty"`       // Turns on system tracing.
	EnableArgumentFilter *bool                      `json:"enableArgumentFilter,omitempty"` // Turns on argument filter.
	IncludedCategories   *[]string                  `json:"includedCategories,omitempty"`   // Included category filters.
	ExcludedCategories   *[]string                  `json:"excludedCategories,omitempty"`   // Excluded category filters.
	SyntheticDelays      *[]string                  `json:"syntheticDelays,omitempty"`      // Configuration to synthesize the delays in tracing.
	MemoryDumpConfig     *MemoryDumpConfig          `json:"memoryDumpConfig,omitempty"`     // Configuration for memory dump triggers. Used only when "memory-infra" category is enabled.
}

type TraceConfigRecordModeEnum

type TraceConfigRecordModeEnum string
const (
	TraceConfigRecordModeRecordUntilFull        TraceConfigRecordModeEnum = "recordUntilFull"
	TraceConfigRecordModeRecordContinuously     TraceConfigRecordModeEnum = "recordContinuously"
	TraceConfigRecordModeRecordAsMuchAsPossible TraceConfigRecordModeEnum = "recordAsMuchAsPossible"
	TraceConfigRecordModeEchoToConsole          TraceConfigRecordModeEnum = "echoToConsole"
)

type TracingAgent

type TracingAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *TracingAgent

func (*TracingAgent) FireBufferUsage

func (agent *TracingAgent) FireBufferUsage(event BufferUsageEvent)

func (*TracingAgent) FireBufferUsageOnTarget

func (agent *TracingAgent) FireBufferUsageOnTarget(targetId string, event BufferUsageEvent)

func (*TracingAgent) FireDataCollected

func (agent *TracingAgent) FireDataCollected(event DataCollectedEvent)

Dispatchable Events

func (*TracingAgent) FireDataCollectedOnTarget

func (agent *TracingAgent) FireDataCollectedOnTarget(targetId string, event DataCollectedEvent)

func (*TracingAgent) FireTracingComplete

func (agent *TracingAgent) FireTracingComplete(event TracingCompleteEvent)

func (*TracingAgent) FireTracingCompleteOnTarget

func (agent *TracingAgent) FireTracingCompleteOnTarget(targetId string, event TracingCompleteEvent)

func (*TracingAgent) Name

func (agent *TracingAgent) Name() string

func (*TracingAgent) ProcessCommand

func (agent *TracingAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*TracingAgent) SetEndHandler

func (agent *TracingAgent) SetEndHandler(handler func(EndCommand))

func (*TracingAgent) SetGetCategoriesHandler

func (agent *TracingAgent) SetGetCategoriesHandler(handler func(GetCategoriesCommand))

func (*TracingAgent) SetRecordClockSyncMarkerHandler

func (agent *TracingAgent) SetRecordClockSyncMarkerHandler(handler func(RecordClockSyncMarkerCommand))

func (*TracingAgent) SetRequestMemoryDumpHandler

func (agent *TracingAgent) SetRequestMemoryDumpHandler(handler func(RequestMemoryDumpCommand))

func (*TracingAgent) SetStartHandler

func (agent *TracingAgent) SetStartHandler(handler func(StartCommand))

Commands Sent From Frontend

type TracingCompleteEvent

type TracingCompleteEvent struct {
	Stream *io.StreamHandle `json:"stream,omitempty"` // A handle of the stream that holds resulting trace data.
}

Jump to

Keyboard shortcuts

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