goroutines

package
v1.3.19-indexer1.2.25 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPassFilter

func AllPassFilter(_ string) bool

AllPassFilter returns true for all provided strings

func NewGoCounter

func NewGoCounter(filterFunc func(goRoutineData string) bool) *goCounter

NewGoCounter returns an instance of the go counter

func TestsRelevantGoRoutines

func TestsRelevantGoRoutines(goRoutineData string) bool

TestsRelevantGoRoutines returns false for the goroutines that contains ignorable strings

Types

type RoutineInfo

type RoutineInfo struct {
	// contains filtered or unexported fields
}

RoutineInfo holds the relevant information about a go routine

func NewGoRoutine

func NewGoRoutine(data string) (*RoutineInfo, error)

NewGoRoutine parses the input data and returns a new instance. Errors if the input data is in a wrong format

func (*RoutineInfo) ID

func (ri *RoutineInfo) ID() string

ID returns the ID of the go routine

func (*RoutineInfo) String

func (ri *RoutineInfo) String() string

String returns the complete string of the go routine

Jump to

Keyboard shortcuts

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