// NewGroupProfiler creates a profiler for measuring the set of given perf
// events as a group (no multiplexing).
NewGroupProfiler creates a profiler for measuring the set of given perf
events as a group (no multiplexing).
// NewGroupProfiler creates a profiler for measuring the set of given perf // events as a group ( no multiplexing ) .
func NewGroupProfiler(attrs []*perf.Attr, pid, cpu int) (*GroupProfiler, error) {
	var g perf.Group
	for i, attr := range attrs {
		if i != 0 {
			attr.Options.Disabled = false
		}
		g.Add(attr)
	}
	hw, err := g.Open(pid, cpu)
	return &GroupProfiler{
		Event: hw,
	}, err
}
func NewGroupProfiler ( attrs [ ] * perf . Attr , pid , cpu int ) ( * GroupProfiler , error ) { var g perf . Group for i , attr := range attrs { if i != 0 { attr . Options . Disabled = false } g . Add ( attr ) } hw , err := g . Open ( pid , cpu ) return & GroupProfiler { Event : hw , } , err }
NewGroupProfiler creates a profiler for measuring the set of given perf
events as a group (no multiplexing).
NewGroupProfiler creates a profiler for measuring the set of given perf events as a group ( no multiplexing ) .