Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventFilter ¶
type EventFilter struct { // MinTs prints events with a timestamp >= MinTs. The unit is nanoseconds. MinTs trace.Timestamp // MaxTS prints events with a timestamp <= MaxTs. The unit is nanoseconds. // If MaxTs is -1, there is no upper limit. MaxTs trace.Timestamp // Only prints events from this proc. If P is -1 events from all procs are // printed. P int64 // Only prints events from this goroutine. If G is -1 events from all // goroutines are printed. G int64 // Verbose prints stack traces for all events. Verbose bool // StackIDs prints events with these stack ids. If StackIDs is empty, all // events are printed. StackIDs []uint32 }
EventFilter is used to filter events.
func DefaultEventFilter ¶
func DefaultEventFilter() EventFilter
DefaultEventFilter returns a filter that matches all events.
type StackFilter ¶
type StackFilter struct {
StackIDs []uint32
}
StackFilter is used to filter stacks.
func DefaultStackFilter ¶
func DefaultStackFilter() StackFilter
DefaultStackFilter returns a filter that matches all stacks.
Click to show internal directories.
Click to hide internal directories.