Documentation ¶
Index ¶
- type BufferUsageEvent
- type DataCollectedEvent
- type EndCommand
- type EndCommandFn
- type EndReturn
- type GetCategoriesCommand
- type GetCategoriesCommandFn
- type GetCategoriesReturn
- type MemoryDumpConfig
- type RecordClockSyncMarkerCommand
- type RecordClockSyncMarkerCommandFn
- type RecordClockSyncMarkerReturn
- type RequestMemoryDumpCommand
- type RequestMemoryDumpCommandFn
- type RequestMemoryDumpReturn
- type StartCommand
- type StartCommandFn
- type StartReturn
- type StartTransferModeEnum
- type TraceConfig
- type TraceConfigRecordModeEnum
- type TracingAgent
- func (agent *TracingAgent) FireBufferUsage(event BufferUsageEvent)
- func (agent *TracingAgent) FireBufferUsageOnTarget(targetId string, event BufferUsageEvent)
- func (agent *TracingAgent) FireDataCollected(event DataCollectedEvent)
- func (agent *TracingAgent) FireDataCollectedOnTarget(targetId string, event DataCollectedEvent)
- func (agent *TracingAgent) FireTracingComplete(event TracingCompleteEvent)
- func (agent *TracingAgent) FireTracingCompleteOnTarget(targetId string, event TracingCompleteEvent)
- func (agent *TracingAgent) Name() string
- func (agent *TracingAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *TracingAgent) SetEndHandler(handler func(EndCommand))
- func (agent *TracingAgent) SetGetCategoriesHandler(handler func(GetCategoriesCommand))
- func (agent *TracingAgent) SetRecordClockSyncMarkerHandler(handler func(RecordClockSyncMarkerCommand))
- func (agent *TracingAgent) SetRequestMemoryDumpHandler(handler func(RequestMemoryDumpCommand))
- func (agent *TracingAgent) SetStartHandler(handler func(StartCommand))
- type TracingCompleteEvent
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 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 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 (c *GetCategoriesCommand) Respond(r *GetCategoriesReturn)
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 (a *GetCategoriesCommandFn) Load() func(GetCategoriesCommand)
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 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 (a *RecordClockSyncMarkerCommandFn) Load() func(RecordClockSyncMarkerCommand)
func (*RecordClockSyncMarkerCommandFn) Store ¶
func (a *RecordClockSyncMarkerCommandFn) Store(fn func(RecordClockSyncMarkerCommand))
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 (c *RequestMemoryDumpCommand) Respond(r *RequestMemoryDumpReturn)
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 (a *RequestMemoryDumpCommandFn) Load() func(RequestMemoryDumpCommand)
func (*RequestMemoryDumpCommandFn) Store ¶
func (a *RequestMemoryDumpCommandFn) Store(fn func(RequestMemoryDumpCommand))
type RequestMemoryDumpReturn ¶
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.
}
Click to show internal directories.
Click to hide internal directories.