// NewSingleProfiler opens a new profiler for the given event and process.
NewSingleProfiler opens a new profiler for the given event and process.
// NewSingleProfiler opens a new profiler for the given event and process .
func NewSingleProfiler(attr *perf.Attr, pid, cpu int) (*SingleProfiler, error) {
	p, err := perf.Open(attr, pid, cpu, nil)
	return &SingleProfiler{
		Event: p,
	}, err
}
func NewSingleProfiler ( attr * perf . Attr , pid , cpu int ) ( * SingleProfiler , error ) { p , err := perf . Open ( attr , pid , cpu , nil ) return & SingleProfiler { Event : p , } , err }
NewSingleProfiler opens a new profiler for the given event and process.
NewSingleProfiler opens a new profiler for the given event and process .