// IsAvailable returns true if the given event is available on the current
// system.
IsAvailable returns true if the given event is available on the current
system.
// IsAvailable returns true if the given event is available on the current // system .
func IsAvailable(ev perf.Configurator) bool {
	fa := &perf.Attr{}
	ev.Configure(fa)
	p, err := perf.Open(fa, perf.CallingThread, perf.AnyCPU, nil)
	if err == nil {
		p.Close()
		return true
	}
	return false
}
func IsAvailable ( ev perf . Configurator ) bool { fa := & perf . Attr { } ev . Configure ( fa ) p , err := perf . Open ( fa , perf . CallingThread , perf . AnyCPU , nil ) if err == nil { p . Close ( ) return true } return false }
IsAvailable returns true if the given event is available on the current
system.
IsAvailable returns true if the given event is available on the current system .