// ParseEventList looks at a comma-separated list of events and returns the
// perf Configurators corresponding to those events.
ParseEventList looks at a comma-separated list of events and returns the
perf Configurators corresponding to those events.
// ParseEventList looks at a comma - separated list of events and returns the // perf Configurators corresponding to those events .
func ParseEventList(s string) ([]perf.Configurator, error) {
	parts := strings.Split(s, ",")
	var configs []perf.Configurator
	var errs []error
	for _, ev := range parts {
		event, err := perforator.NameToConfig(ev)
		if err != nil {
			errs = append(errs, err)
			continue
		}
		configs = append(configs, event)
	}
	return configs, perforator.MultiErr(errs)
}
func ParseEventList ( s string ) ( [ ] perf . Configurator , error ) { parts := strings . Split ( s , " " ) var configs [ ] perf . Configurator var errs [ ] error for _ , ev := range parts { event , err := perforator . NameToConfig ( ev ) if err != nil { errs = append ( errs , err ) continue } configs = append ( configs , event ) } return configs , perforator . MultiErr ( errs ) }
ParseEventList looks at a comma-separated list of events and returns the
perf Configurators corresponding to those events.
ParseEventList looks at a comma - separated list of events and returns the perf Configurators corresponding to those events .