types

package
v0.0.0-...-0958f0d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
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.

Jump to

Keyboard shortcuts

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