Documentation ¶
Index ¶
Constants ¶
const ( PerlTracer tracerType = iota PHPTracer PythonTracer HotspotTracer RubyTracer V8Tracer DotnetTracer )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncludedTracers ¶
type IncludedTracers uint16
IncludedTracers holds information about which tracers are enabled.
func AllTracers ¶
func AllTracers() IncludedTracers
AllTracers is a shortcut that returns an element with all tracers enabled.
func Parse ¶
func Parse(tracers string) (IncludedTracers, error)
Parse parses a string that specifies one or more eBPF tracers to enable. Valid inputs are 'all', or any comma-delimited combination of names listed in tracerTypeToName. The return value holds the information whether a tracer has been set or not. E.g. to check if the Python tracer was requested: `if result.Has(tracertypes.PythonTracer)...`.
func (*IncludedTracers) Disable ¶
func (t *IncludedTracers) Disable(tracer tracerType)
Disable disables the given tracer.
func (*IncludedTracers) Enable ¶
func (t *IncludedTracers) Enable(tracer tracerType)
Enable enables the given tracer.
func (*IncludedTracers) Has ¶
func (t *IncludedTracers) Has(tracer tracerType) bool
Has returns true if the given tracer is enabled.
func (*IncludedTracers) String ¶
func (t *IncludedTracers) String() string
String returns a comma-separated list of enabled tracers.