Versions in this module Expand all Collapse all v1 v1.1.1 Sep 18, 2021 v1.1.0 Jul 19, 2021 v1.0.2 May 27, 2021 v1.0.1 Mar 15, 2021 v1.0.0 Mar 15, 2021 v0 v0.1.3 Mar 15, 2021 v0.1.2 Mar 15, 2021 v0.1.1 Feb 21, 2021 v0.1.0 Feb 14, 2021 Changes in this version + const ALIGN_SIZE — linux/amd64 + const BUFFER_SIZE — linux/amd64 + var AvailableEvents events = nil + var AvailableMetrics metrics = nil + var CTX = context.Background() + var Config = &cuptiConfig + var DefaultActivities = []string + var DefaultCUDALibraryPath string — linux/amd64 + var DefaultCUPTILibraryPath string — linux/amd64 + var DefaultCallbacks = []string + var DefaultDomains = []string + var DefaultEvents = []string + var DefaultMetrics = []string + var FS = webdav.NewMemFS() + var FileEventMappingJSON = []byte(...) + var FileMetricMappingJSON = []byte(...) + var HTTP http.FileSystem = new(HTTPFS) + var Handler *webdav.Handler + func GetAvailableEvents() events + func GetAvailableMetrics() metrics + func ReadFile(path string) ([]byte, error) + func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error) + func WriteFile(filename string, data []byte, perm os.FileMode) error + type CUPTI noopCloser — darwin/amd64, js/wasm, windows/amd64 + func New(opts ...Option) (*CUPTI, error) + func (c *CUPTI) Close() error + func (c *CUPTI) SetContext(ctx context.Context) + func (c *CUPTI) Subscribe() error + func (c *CUPTI) Unsubscribe() error + func (c *CUPTI) Wait() error + type CUPTI struct — linux/amd64 + func (c *CUPTI) Wait() + func (ti *CUPTI) DeviceReset() (time.Time, error) + type Error struct — linux/amd64 + Code types.CUptiResult + func (e *Error) Error() string + type Event struct + Category string + DomainID int + Event int + ID int + LongDescription string + Name string + ShortDescription string + func FindEventByName(s0 string) (Event, error) + func (v *Event) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Event) UnmarshalJSON(data []byte) error + func (v Event) MarshalEasyJSON(w *jwriter.Writer) + func (v Event) MarshalJSON() ([]byte, error) + type HTTPFS struct + Prefix string + func (hfs *HTTPFS) Open(path string) (http.File, error) + type Metric struct + ID int + LongDescription string + Metric int + Name string + ShortDescription string + func FindMetricByName(s0 string) (Metric, error) + func (v *Metric) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Metric) UnmarshalJSON(data []byte) error + func (v Metric) MarshalEasyJSON(w *jwriter.Writer) + func (v Metric) MarshalJSON() ([]byte, error) + type Option func(o *Options) + func Activities(activities []string) Option + func Callbacks(callbacks []string) Option + func Context(ctx context.Context) Option + func Domains(domains []string) Option + func Events(events []string) Option + func Metrics(metrics []string) Option + func SamplingPeriod(s int) Option + type Options struct + func NewOptions(opts ...Option) *Options + type VersionInfo struct — linux/amd64 + Version int + func Version() (VersionInfo, error) + func (v VersionInfo) String() string