Documentation ¶
Overview ¶
Package tracing implements the Tracing domain.
Index ¶
- func NewClient(conn *rpcc.Conn) *domainClient
- type BufferUsageClient
- type BufferUsageReply
- type CompleteClient
- type CompleteReply
- type DataCollectedClient
- type DataCollectedReply
- type GetCategoriesReply
- type MemoryDumpConfig
- type RecordClockSyncMarkerArgs
- type RequestMemoryDumpReply
- type StartArgs
- func (a *StartArgs) SetBufferUsageReportingInterval(bufferUsageReportingInterval float64) *StartArgs
- func (a *StartArgs) SetCategories(categories string) *StartArgs
- func (a *StartArgs) SetOptions(options string) *StartArgs
- func (a *StartArgs) SetTraceConfig(traceConfig TraceConfig) *StartArgs
- func (a *StartArgs) SetTransferMode(transferMode string) *StartArgs
- type TraceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferUsageClient ¶
type BufferUsageClient interface { // Recv calls RecvMsg on rpcc.Stream, blocks until the event is // triggered, context canceled or connection closed. Recv() (*BufferUsageReply, error) rpcc.Stream }
BufferUsageClient is a client for BufferUsage events.
type BufferUsageReply ¶
type BufferUsageReply 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. }
BufferUsageReply is the reply for BufferUsage events.
type CompleteClient ¶
type CompleteClient interface { // Recv calls RecvMsg on rpcc.Stream, blocks until the event is // triggered, context canceled or connection closed. Recv() (*CompleteReply, error) rpcc.Stream }
CompleteClient is a client for TracingComplete events. Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
type CompleteReply ¶
type CompleteReply struct {
Stream *io.StreamHandle `json:"stream,omitempty"` // A handle of the stream that holds resulting trace data.
}
CompleteReply is the reply for TracingComplete events.
type DataCollectedClient ¶
type DataCollectedClient interface { // Recv calls RecvMsg on rpcc.Stream, blocks until the event is // triggered, context canceled or connection closed. Recv() (*DataCollectedReply, error) rpcc.Stream }
DataCollectedClient is a client for DataCollected events. Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.
type DataCollectedReply ¶
type DataCollectedReply struct {
Value []json.RawMessage `json:"value"` //
}
DataCollectedReply is the reply for DataCollected events.
type GetCategoriesReply ¶
type GetCategoriesReply struct {
Categories []string `json:"categories"` // A list of supported tracing categories.
}
GetCategoriesReply represents the return values for GetCategories in the Tracing domain.
type MemoryDumpConfig ¶
type MemoryDumpConfig []byte
MemoryDumpConfig Configuration for memory dump. Used only when "memory-infra" category is enabled.
func (MemoryDumpConfig) MarshalJSON ¶
func (m MemoryDumpConfig) MarshalJSON() ([]byte, error)
MarshalJSON copies behavior of json.RawMessage.
func (*MemoryDumpConfig) UnmarshalJSON ¶
func (m *MemoryDumpConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON copies behavior of json.RawMessage.
type RecordClockSyncMarkerArgs ¶
type RecordClockSyncMarkerArgs struct {
SyncID string `json:"syncId"` // The ID of this clock sync marker
}
RecordClockSyncMarkerArgs represents the arguments for RecordClockSyncMarker in the Tracing domain.
func NewRecordClockSyncMarkerArgs ¶
func NewRecordClockSyncMarkerArgs(syncID string) *RecordClockSyncMarkerArgs
NewRecordClockSyncMarkerArgs initializes RecordClockSyncMarkerArgs with the required arguments.
type RequestMemoryDumpReply ¶
type RequestMemoryDumpReply struct { DumpGUID string `json:"dumpGuid"` // GUID of the resulting global memory dump. Success bool `json:"success"` // True iff the global memory dump succeeded. }
RequestMemoryDumpReply represents the return values for RequestMemoryDump in the Tracing domain.
type StartArgs ¶
type StartArgs struct { 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 *string `json:"transferMode,omitempty"` // Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents). TraceConfig *TraceConfig `json:"traceConfig,omitempty"` // }
StartArgs represents the arguments for Start in the Tracing domain.
func NewStartArgs ¶
func NewStartArgs() *StartArgs
NewStartArgs initializes StartArgs with the required arguments.
func (*StartArgs) SetBufferUsageReportingInterval ¶
func (a *StartArgs) SetBufferUsageReportingInterval(bufferUsageReportingInterval float64) *StartArgs
SetBufferUsageReportingInterval sets the BufferUsageReportingInterval optional argument. If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
func (*StartArgs) SetCategories ¶
SetCategories sets the Categories optional argument. Category/tag filter
func (*StartArgs) SetOptions ¶
SetOptions sets the Options optional argument. Tracing options
func (*StartArgs) SetTraceConfig ¶
func (a *StartArgs) SetTraceConfig(traceConfig TraceConfig) *StartArgs
SetTraceConfig sets the TraceConfig optional argument.
func (*StartArgs) SetTransferMode ¶
SetTransferMode sets the TransferMode optional argument. Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents).
type TraceConfig ¶
type TraceConfig struct { RecordMode *string `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. }
TraceConfig