gpurawcounter

package
v0.6.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gpurawcounter provides Go bindings for the gpurawcounter framework.

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFunc

func BindFunc(fptr any, name string) (err error)

BindFunc binds the gpurawcounter symbol name into fptr, which must be a pointer to a func variable.

The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.

func NewUint64Uint64Uint64Block

func NewUint64Uint64Uint64Block(handler Uint64Uint64Uint64Handler) (objc.ID, func())

NewUint64Uint64Uint64Block wraps a Go Uint64Uint64Uint64Handler as an Objective-C block. The caller must defer the returned cleanup function.

Used by:

func NewVoidBlock

func NewVoidBlock(handler VoidHandler) (objc.ID, func())

NewVoidBlock wraps a Go VoidHandler as an Objective-C block. The caller must defer the returned cleanup function.

Used by:

func SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in gpurawcounter, whether or not this package generated a binding for it.

What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.

The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.

Types

type GPURawCounter

type GPURawCounter struct {
	objectivec.Object
}

Methods

func GPURawCounterFromID

func GPURawCounterFromID(id objc.ID) GPURawCounter

GPURawCounterFromID constructs a GPURawCounter from an objc.ID.

func NewGPURawCounter

func NewGPURawCounter() GPURawCounter

NewGPURawCounter creates a new GPURawCounter instance.

func NewGPURawCounterWithNameDescriptionValueType

func NewGPURawCounterWithNameDescriptionValueType(name objectivec.IObject, description objectivec.IObject, type_ uint64) GPURawCounter

func (GPURawCounter) Autorelease

func (g GPURawCounter) Autorelease() GPURawCounter

Autorelease adds the receiver to the current autorelease pool.

func (GPURawCounter) CounterValueType

func (g GPURawCounter) CounterValueType() uint64

func (GPURawCounter) Description

func (g GPURawCounter) Description() string

func (GPURawCounter) Init

func (g GPURawCounter) Init() GPURawCounter

Init initializes the instance.

func (GPURawCounter) InitWithNameDescriptionValueType

func (g GPURawCounter) InitWithNameDescriptionValueType(name objectivec.IObject, description objectivec.IObject, type_ uint64) GPURawCounter

func (GPURawCounter) Name

func (g GPURawCounter) Name() string

type GPURawCounterClass

type GPURawCounterClass struct {
	// contains filtered or unexported fields
}

func GetGPURawCounterClass

func GetGPURawCounterClass() GPURawCounterClass

GetGPURawCounterClass returns the class object for _GPURawCounter.

func (GPURawCounterClass) Alloc

func (gc GPURawCounterClass) Alloc() GPURawCounter

Alloc allocates memory for a new instance of the class.

func (GPURawCounterClass) Class

func (gc GPURawCounterClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type GPURawCounterProtocol

type GPURawCounterProtocol interface {
	objectivec.IObject

	// CounterValueType protocol.
	CounterValueType() uint64

	// Description protocol.
	Description() objectivec.IObject

	// Name protocol.
	Name() objectivec.IObject
}

GPURawCounter protocol.

type GPURawCounterProtocolObject

type GPURawCounterProtocolObject struct {
	objectivec.Object
}

GPURawCounterProtocolObject wraps an existing Objective-C object that conforms to the GPURawCounterProtocol protocol.

func GPURawCounterProtocolObjectFromID

func GPURawCounterProtocolObjectFromID(id objc.ID) GPURawCounterProtocolObject

GPURawCounterProtocolObjectFromID constructs a GPURawCounterProtocolObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (GPURawCounterProtocolObject) BaseObject

func (GPURawCounterProtocolObject) CounterValueType

func (o GPURawCounterProtocolObject) CounterValueType() uint64

func (GPURawCounterProtocolObject) Description

func (GPURawCounterProtocolObject) Name

type GPURawCounterSelect

type GPURawCounterSelect struct {
	objectivec.Object
}

Methods

func GPURawCounterSelectFromID

func GPURawCounterSelectFromID(id objc.ID) GPURawCounterSelect

GPURawCounterSelectFromID constructs a GPURawCounterSelect from an objc.ID.

func NewGPURawCounterSelect

func NewGPURawCounterSelect() GPURawCounterSelect

NewGPURawCounterSelect creates a new GPURawCounterSelect instance.

func NewGPURawCounterSelectWithNameOptions

func NewGPURawCounterSelectWithNameOptions(name objectivec.IObject, options objectivec.IObject) GPURawCounterSelect

func (GPURawCounterSelect) Autorelease

func (g GPURawCounterSelect) Autorelease() GPURawCounterSelect

Autorelease adds the receiver to the current autorelease pool.

func (GPURawCounterSelect) Init

Init initializes the instance.

func (GPURawCounterSelect) InitWithNameOptions

func (g GPURawCounterSelect) InitWithNameOptions(name objectivec.IObject, options objectivec.IObject) GPURawCounterSelect

func (GPURawCounterSelect) Name

func (g GPURawCounterSelect) Name() string

func (GPURawCounterSelect) Options

type GPURawCounterSelectClass

type GPURawCounterSelectClass struct {
	// contains filtered or unexported fields
}

func GetGPURawCounterSelectClass

func GetGPURawCounterSelectClass() GPURawCounterSelectClass

GetGPURawCounterSelectClass returns the class object for GPURawCounterSelect.

func (GPURawCounterSelectClass) Alloc

Alloc allocates memory for a new instance of the class.

func (GPURawCounterSelectClass) Class

func (gc GPURawCounterSelectClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (GPURawCounterSelectClass) SelectWithNameOptions

func (_GPURawCounterSelectClass GPURawCounterSelectClass) SelectWithNameOptions(name objectivec.IObject, options objectivec.IObject) objectivec.IObject

type GPURawCounterSource

type GPURawCounterSource struct {
	objectivec.Object
}

Methods

func GPURawCounterSourceFromID

func GPURawCounterSourceFromID(id objc.ID) GPURawCounterSource

GPURawCounterSourceFromID constructs a GPURawCounterSource from an objc.ID.

func NewGPURawCounterSource

func NewGPURawCounterSource() GPURawCounterSource

NewGPURawCounterSource creates a new GPURawCounterSource instance.

func NewGPURawCounterSourceWithSourceGroupName

func NewGPURawCounterSourceWithSourceGroupName(group objectivec.IObject, name objectivec.IObject) GPURawCounterSource

func (GPURawCounterSource) Autorelease

func (g GPURawCounterSource) Autorelease() GPURawCounterSource

Autorelease adds the receiver to the current autorelease pool.

func (GPURawCounterSource) AvailableCounters

func (g GPURawCounterSource) AvailableCounters() objectivec.IObject

func (GPURawCounterSource) AvailableTriggers

func (g GPURawCounterSource) AvailableTriggers() objectivec.IObject

func (GPURawCounterSource) DebugDescription

func (g GPURawCounterSource) DebugDescription() string

func (GPURawCounterSource) Description

func (g GPURawCounterSource) Description() string

func (GPURawCounterSource) DrainRingBufferAtIndexDataSize

func (g GPURawCounterSource) DrainRingBufferAtIndexDataSize(index uint32, size uint32) uint32

func (GPURawCounterSource) DrainRingBufferAtIndexDataSizeError

func (g GPURawCounterSource) DrainRingBufferAtIndexDataSizeError(index uint32, size uint32) (uint32, error)

func (GPURawCounterSource) Features

func (GPURawCounterSource) FlushRingBuffers

func (g GPURawCounterSource) FlushRingBuffers()

func (GPURawCounterSource) Hash

func (g GPURawCounterSource) Hash() uint64

func (GPURawCounterSource) Init

Init initializes the instance.

func (GPURawCounterSource) InitWithSourceGroupName

func (g GPURawCounterSource) InitWithSourceGroupName(group objectivec.IObject, name objectivec.IObject) GPURawCounterSource

func (GPURawCounterSource) IsEnabled

func (g GPURawCounterSource) IsEnabled() bool

func (GPURawCounterSource) Name

func (g GPURawCounterSource) Name() string

func (GPURawCounterSource) Options

func (GPURawCounterSource) PollCountersAtBufferIndexWithBlock

func (g GPURawCounterSource) PollCountersAtBufferIndexWithBlock(index uint32, block VoidHandler) bool

func (GPURawCounterSource) PollCountersAtBufferIndexWithBlockError

func (g GPURawCounterSource) PollCountersAtBufferIndexWithBlockError(index uint32, block func()) (bool, error)

func (GPURawCounterSource) PollCountersAtBufferIndexWithBlockSync

func (g GPURawCounterSource) PollCountersAtBufferIndexWithBlockSync(ctx context.Context, index uint32) error

PollCountersAtBufferIndexWithBlockSync is a synchronous wrapper around GPURawCounterSource.PollCountersAtBufferIndexWithBlock. It blocks until the completion handler fires or the context is cancelled.

func (GPURawCounterSource) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast

func (g GPURawCounterSource) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)

func (GPURawCounterSource) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError

func (g GPURawCounterSource) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)

func (GPURawCounterSource) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast

func (g GPURawCounterSource) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)

func (GPURawCounterSource) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError

func (g GPURawCounterSource) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)

func (GPURawCounterSource) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast

func (g GPURawCounterSource) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, bool)

func (GPURawCounterSource) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError

func (g GPURawCounterSource) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, error)

func (GPURawCounterSource) RequestCountersFirstErrorIndex

func (g GPURawCounterSource) RequestCountersFirstErrorIndex(counters objectivec.IObject) (uint64, bool)

func (GPURawCounterSource) RequestCountersFirstErrorIndexError

func (g GPURawCounterSource) RequestCountersFirstErrorIndexError(counters objectivec.IObject) (uint64, error)

func (GPURawCounterSource) RequestTriggersFirstErrorIndex

func (g GPURawCounterSource) RequestTriggersFirstErrorIndex(triggers objectivec.IObject) (uint64, bool)

func (GPURawCounterSource) RequestTriggersFirstErrorIndexError

func (g GPURawCounterSource) RequestTriggersFirstErrorIndexError(triggers objectivec.IObject) (uint64, error)

func (GPURawCounterSource) ResetRawDataPostProcessor

func (g GPURawCounterSource) ResetRawDataPostProcessor()

func (GPURawCounterSource) RingBufferInfoAtIndexBaseSizeDataOffsetDataSize

func (g GPURawCounterSource) RingBufferInfoAtIndexBaseSizeDataOffsetDataSize(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) bool

func (GPURawCounterSource) RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError

func (g GPURawCounterSource) RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) (bool, error)

func (GPURawCounterSource) RingBufferNum

func (g GPURawCounterSource) RingBufferNum() uint32

func (GPURawCounterSource) SelectedCounters

func (g GPURawCounterSource) SelectedCounters() objectivec.IObject

func (GPURawCounterSource) SelectedTriggers

func (g GPURawCounterSource) SelectedTriggers() objectivec.IObject

func (GPURawCounterSource) SetEnabled

func (g GPURawCounterSource) SetEnabled(enabled bool) bool

func (GPURawCounterSource) SetEnabledError

func (g GPURawCounterSource) SetEnabledError(enabled bool) (bool, error)

func (GPURawCounterSource) SetOptions

func (g GPURawCounterSource) SetOptions(value foundation.INSDictionary)

func (GPURawCounterSource) SourceGroup

func (g GPURawCounterSource) SourceGroup() unsafe.Pointer

func (GPURawCounterSource) Superclass

func (g GPURawCounterSource) Superclass() objc.Class

type GPURawCounterSourceClass

type GPURawCounterSourceClass struct {
	// contains filtered or unexported fields
}

func GetGPURawCounterSourceClass

func GetGPURawCounterSourceClass() GPURawCounterSourceClass

GetGPURawCounterSourceClass returns the class object for _GPURawCounterSource.

func (GPURawCounterSourceClass) Alloc

Alloc allocates memory for a new instance of the class.

func (GPURawCounterSourceClass) Class

func (gc GPURawCounterSourceClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type GPURawCounterSourceGroup

type GPURawCounterSourceGroup struct {
	objectivec.Object
}

Methods

func GPURawCounterSourceGroupFromID

func GPURawCounterSourceGroupFromID(id objc.ID) GPURawCounterSourceGroup

GPURawCounterSourceGroupFromID constructs a GPURawCounterSourceGroup from an objc.ID.

func NewGPURawCounterSourceGroup

func NewGPURawCounterSourceGroup() GPURawCounterSourceGroup

NewGPURawCounterSourceGroup creates a new GPURawCounterSourceGroup instance.

func NewGPURawCounterSourceGroupWithAcceleratorPort

func NewGPURawCounterSourceGroupWithAcceleratorPort(port uint32) GPURawCounterSourceGroup

func (GPURawCounterSourceGroup) AcceleratorPort

func (g GPURawCounterSourceGroup) AcceleratorPort() uint32

func (GPURawCounterSourceGroup) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (GPURawCounterSourceGroup) DebugDescription

func (g GPURawCounterSourceGroup) DebugDescription() string

func (GPURawCounterSourceGroup) Description

func (g GPURawCounterSourceGroup) Description() string

func (GPURawCounterSourceGroup) Features

func (GPURawCounterSourceGroup) Hash

func (GPURawCounterSourceGroup) Init

Init initializes the instance.

func (GPURawCounterSourceGroup) InitWithAcceleratorPort

func (g GPURawCounterSourceGroup) InitWithAcceleratorPort(port uint32) GPURawCounterSourceGroup

func (GPURawCounterSourceGroup) Name

func (GPURawCounterSourceGroup) Options

func (GPURawCounterSourceGroup) SampleMarker

func (g GPURawCounterSourceGroup) SampleMarker() uint64

func (GPURawCounterSourceGroup) SetOptions

func (GPURawCounterSourceGroup) SourceList

func (GPURawCounterSourceGroup) StartSampling

func (g GPURawCounterSourceGroup) StartSampling() bool

func (GPURawCounterSourceGroup) StartSamplingWithError

func (g GPURawCounterSourceGroup) StartSamplingWithError() (bool, error)

func (GPURawCounterSourceGroup) StopSampling

func (g GPURawCounterSourceGroup) StopSampling() bool

func (GPURawCounterSourceGroup) StopSamplingWithError

func (g GPURawCounterSourceGroup) StopSamplingWithError() (bool, error)

func (GPURawCounterSourceGroup) SubDivideCounterListWithOptions

func (g GPURawCounterSourceGroup) SubDivideCounterListWithOptions(list objectivec.IObject, options objectivec.IObject) objectivec.IObject

func (GPURawCounterSourceGroup) Superclass

func (g GPURawCounterSourceGroup) Superclass() objc.Class

type GPURawCounterSourceGroupClass

type GPURawCounterSourceGroupClass struct {
	// contains filtered or unexported fields
}

func GetGPURawCounterSourceGroupClass

func GetGPURawCounterSourceGroupClass() GPURawCounterSourceGroupClass

GetGPURawCounterSourceGroupClass returns the class object for _GPURawCounterSourceGroup.

func (GPURawCounterSourceGroupClass) Alloc

Alloc allocates memory for a new instance of the class.

func (GPURawCounterSourceGroupClass) Class

Class returns the underlying Objective-C class pointer.

type GPURawCounterSourceGroupProtocol

type GPURawCounterSourceGroupProtocol interface {
	objectivec.IObject

	// AcceleratorPort protocol.
	AcceleratorPort() uint32

	// Features protocol.
	Features() objectivec.IObject

	// Name protocol.
	Name() objectivec.IObject

	// Options protocol.
	Options() objectivec.IObject

	// SampleMarker protocol.
	SampleMarker() uint64

	// SetOptions protocol.
	SetOptions(options objectivec.IObject)

	// SourceList protocol.
	SourceList() objectivec.IObject

	// StartSampling protocol.
	StartSampling() bool

	// StartSamplingWithError protocol.
	StartSamplingWithError() (bool, error)

	// StopSampling protocol.
	StopSampling() bool

	// StopSamplingWithError protocol.
	StopSamplingWithError() (bool, error)

	// SubDivideCounterListWithOptions protocol.
	SubDivideCounterListWithOptions(list objectivec.IObject, options objectivec.IObject) objectivec.IObject
}

GPURawCounterSourceGroup protocol.

type GPURawCounterSourceGroupProtocolObject

type GPURawCounterSourceGroupProtocolObject struct {
	objectivec.Object
}

GPURawCounterSourceGroupProtocolObject wraps an existing Objective-C object that conforms to the GPURawCounterSourceGroupProtocol protocol.

func GPURawCounterSourceGroupProtocolObjectFromID

func GPURawCounterSourceGroupProtocolObjectFromID(id objc.ID) GPURawCounterSourceGroupProtocolObject

GPURawCounterSourceGroupProtocolObjectFromID constructs a GPURawCounterSourceGroupProtocolObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (GPURawCounterSourceGroupProtocolObject) AcceleratorPort

func (o GPURawCounterSourceGroupProtocolObject) AcceleratorPort() uint32

func (GPURawCounterSourceGroupProtocolObject) BaseObject

func (GPURawCounterSourceGroupProtocolObject) Features

func (GPURawCounterSourceGroupProtocolObject) Name

func (GPURawCounterSourceGroupProtocolObject) Options

func (GPURawCounterSourceGroupProtocolObject) SampleMarker

func (GPURawCounterSourceGroupProtocolObject) SetOptions

func (GPURawCounterSourceGroupProtocolObject) SourceList

func (GPURawCounterSourceGroupProtocolObject) StartSampling

func (o GPURawCounterSourceGroupProtocolObject) StartSampling() bool

func (GPURawCounterSourceGroupProtocolObject) StartSamplingWithError

func (o GPURawCounterSourceGroupProtocolObject) StartSamplingWithError() (bool, error)

func (GPURawCounterSourceGroupProtocolObject) StopSampling

func (GPURawCounterSourceGroupProtocolObject) StopSamplingWithError

func (o GPURawCounterSourceGroupProtocolObject) StopSamplingWithError() (bool, error)

func (GPURawCounterSourceGroupProtocolObject) SubDivideCounterListWithOptions

func (o GPURawCounterSourceGroupProtocolObject) SubDivideCounterListWithOptions(list objectivec.IObject, options objectivec.IObject) objectivec.IObject

type GPURawCounterSourceProtocol

type GPURawCounterSourceProtocol interface {
	objectivec.IObject

	// AvailableCounters protocol.
	AvailableCounters() objectivec.IObject

	// AvailableTriggers protocol.
	AvailableTriggers() objectivec.IObject

	// DrainRingBufferAtIndexDataSize protocol.
	DrainRingBufferAtIndexDataSize(index uint32, size uint32) uint32

	// DrainRingBufferAtIndexDataSizeError protocol.
	DrainRingBufferAtIndexDataSizeError(index uint32, size uint32) (uint32, error)

	// Features protocol.
	Features() objectivec.IObject

	// FlushRingBuffers protocol.
	FlushRingBuffers()

	// IsEnabled protocol.
	IsEnabled() bool

	// Name protocol.
	Name() objectivec.IObject

	// Options protocol.
	Options() objectivec.IObject

	// PollCountersAtBufferIndexWithBlock protocol.
	PollCountersAtBufferIndexWithBlock(index uint32, block Uint64Uint64Uint64Handler) bool

	// PollCountersAtBufferIndexWithBlockError protocol.
	PollCountersAtBufferIndexWithBlockError(index uint32, block func(*uint64, uint64, uint64)) (bool, error)

	// PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast protocol.
	PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)

	// PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError protocol.
	PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)

	// PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast protocol.
	PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)

	// PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError protocol.
	PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)

	// PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast protocol.
	PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, bool)

	// PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError protocol.
	PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, error)

	// RequestCountersFirstErrorIndex protocol.
	RequestCountersFirstErrorIndex(counters objectivec.IObject) (uint64, bool)

	// RequestCountersFirstErrorIndexError protocol.
	RequestCountersFirstErrorIndexError(counters objectivec.IObject) (uint64, error)

	// RequestTriggersFirstErrorIndex protocol.
	RequestTriggersFirstErrorIndex(triggers objectivec.IObject) (uint64, bool)

	// RequestTriggersFirstErrorIndexError protocol.
	RequestTriggersFirstErrorIndexError(triggers objectivec.IObject) (uint64, error)

	// ResetRawDataPostProcessor protocol.
	ResetRawDataPostProcessor()

	// RingBufferInfoAtIndexBaseSizeDataOffsetDataSize protocol.
	RingBufferInfoAtIndexBaseSizeDataOffsetDataSize(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) bool

	// RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError protocol.
	RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) (bool, error)

	// RingBufferNum protocol.
	RingBufferNum() uint32

	// SelectedCounters protocol.
	SelectedCounters() objectivec.IObject

	// SelectedTriggers protocol.
	SelectedTriggers() objectivec.IObject

	// SetEnabled protocol.
	SetEnabled(enabled bool) bool

	// SetEnabledError protocol.
	SetEnabledError(enabled bool) (bool, error)

	// SetOptions protocol.
	SetOptions(options objectivec.IObject)

	// SourceGroup protocol.
	SourceGroup() objectivec.IObject
}

GPURawCounterSource protocol.

type GPURawCounterSourceProtocolObject

type GPURawCounterSourceProtocolObject struct {
	objectivec.Object
}

GPURawCounterSourceProtocolObject wraps an existing Objective-C object that conforms to the GPURawCounterSourceProtocol protocol.

func GPURawCounterSourceProtocolObjectFromID

func GPURawCounterSourceProtocolObjectFromID(id objc.ID) GPURawCounterSourceProtocolObject

GPURawCounterSourceProtocolObjectFromID constructs a GPURawCounterSourceProtocolObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (GPURawCounterSourceProtocolObject) AvailableCounters

func (GPURawCounterSourceProtocolObject) AvailableTriggers

func (GPURawCounterSourceProtocolObject) BaseObject

func (GPURawCounterSourceProtocolObject) DrainRingBufferAtIndexDataSize

func (o GPURawCounterSourceProtocolObject) DrainRingBufferAtIndexDataSize(index uint32, size uint32) uint32

func (GPURawCounterSourceProtocolObject) DrainRingBufferAtIndexDataSizeError

func (o GPURawCounterSourceProtocolObject) DrainRingBufferAtIndexDataSizeError(index uint32, size uint32) (uint32, error)

func (GPURawCounterSourceProtocolObject) Features

func (GPURawCounterSourceProtocolObject) FlushRingBuffers

func (o GPURawCounterSourceProtocolObject) FlushRingBuffers()

func (GPURawCounterSourceProtocolObject) IsEnabled

func (GPURawCounterSourceProtocolObject) Name

func (GPURawCounterSourceProtocolObject) Options

func (GPURawCounterSourceProtocolObject) PollCountersAtBufferIndexWithBlock

func (o GPURawCounterSourceProtocolObject) PollCountersAtBufferIndexWithBlock(index uint32, block Uint64Uint64Uint64Handler) bool

func (GPURawCounterSourceProtocolObject) PollCountersAtBufferIndexWithBlockError

func (o GPURawCounterSourceProtocolObject) PollCountersAtBufferIndexWithBlockError(index uint32, block func(*uint64, uint64, uint64)) (bool, error)

func (GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast

func (o GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)

func (GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError

func (o GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)

func (GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast

func (o GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)

func (GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError

func (o GPURawCounterSourceProtocolObject) PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)

func (GPURawCounterSourceProtocolObject) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast

func (o GPURawCounterSourceProtocolObject) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, bool)

func (GPURawCounterSourceProtocolObject) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError

func (o GPURawCounterSourceProtocolObject) PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, error)

func (GPURawCounterSourceProtocolObject) RequestCountersFirstErrorIndex

func (o GPURawCounterSourceProtocolObject) RequestCountersFirstErrorIndex(counters objectivec.IObject) (uint64, bool)

func (GPURawCounterSourceProtocolObject) RequestCountersFirstErrorIndexError

func (o GPURawCounterSourceProtocolObject) RequestCountersFirstErrorIndexError(counters objectivec.IObject) (uint64, error)

func (GPURawCounterSourceProtocolObject) RequestTriggersFirstErrorIndex

func (o GPURawCounterSourceProtocolObject) RequestTriggersFirstErrorIndex(triggers objectivec.IObject) (uint64, bool)

func (GPURawCounterSourceProtocolObject) RequestTriggersFirstErrorIndexError

func (o GPURawCounterSourceProtocolObject) RequestTriggersFirstErrorIndexError(triggers objectivec.IObject) (uint64, error)

func (GPURawCounterSourceProtocolObject) ResetRawDataPostProcessor

func (o GPURawCounterSourceProtocolObject) ResetRawDataPostProcessor()

func (GPURawCounterSourceProtocolObject) RingBufferInfoAtIndexBaseSizeDataOffsetDataSize

func (o GPURawCounterSourceProtocolObject) RingBufferInfoAtIndexBaseSizeDataOffsetDataSize(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) bool

func (GPURawCounterSourceProtocolObject) RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError

func (o GPURawCounterSourceProtocolObject) RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) (bool, error)

func (GPURawCounterSourceProtocolObject) RingBufferNum

func (o GPURawCounterSourceProtocolObject) RingBufferNum() uint32

func (GPURawCounterSourceProtocolObject) SelectedCounters

func (GPURawCounterSourceProtocolObject) SelectedTriggers

func (GPURawCounterSourceProtocolObject) SetEnabled

func (o GPURawCounterSourceProtocolObject) SetEnabled(enabled bool) bool

func (GPURawCounterSourceProtocolObject) SetEnabledError

func (o GPURawCounterSourceProtocolObject) SetEnabledError(enabled bool) (bool, error)

func (GPURawCounterSourceProtocolObject) SetOptions

func (GPURawCounterSourceProtocolObject) SourceGroup

type GPURawCounterSourceTrigger

type GPURawCounterSourceTrigger struct {
	objectivec.Object
}

Methods

func GPURawCounterSourceTriggerFromID

func GPURawCounterSourceTriggerFromID(id objc.ID) GPURawCounterSourceTrigger

GPURawCounterSourceTriggerFromID constructs a GPURawCounterSourceTrigger from an objc.ID.

func NewGPURawCounterSourceTrigger

func NewGPURawCounterSourceTrigger() GPURawCounterSourceTrigger

NewGPURawCounterSourceTrigger creates a new GPURawCounterSourceTrigger instance.

func NewGPURawCounterSourceTriggerWithNameDescriptionOptions

func NewGPURawCounterSourceTriggerWithNameDescriptionOptions(name objectivec.IObject, description objectivec.IObject, options objectivec.IObject) GPURawCounterSourceTrigger

func (GPURawCounterSourceTrigger) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (GPURawCounterSourceTrigger) Description

func (g GPURawCounterSourceTrigger) Description() string

func (GPURawCounterSourceTrigger) Init

Init initializes the instance.

func (GPURawCounterSourceTrigger) InitWithNameDescriptionOptions

func (g GPURawCounterSourceTrigger) InitWithNameDescriptionOptions(name objectivec.IObject, description objectivec.IObject, options objectivec.IObject) GPURawCounterSourceTrigger

func (GPURawCounterSourceTrigger) Name

func (GPURawCounterSourceTrigger) Options

type GPURawCounterSourceTriggerClass

type GPURawCounterSourceTriggerClass struct {
	// contains filtered or unexported fields
}

func GetGPURawCounterSourceTriggerClass

func GetGPURawCounterSourceTriggerClass() GPURawCounterSourceTriggerClass

GetGPURawCounterSourceTriggerClass returns the class object for _GPURawCounterSourceTrigger.

func (GPURawCounterSourceTriggerClass) Alloc

Alloc allocates memory for a new instance of the class.

func (GPURawCounterSourceTriggerClass) Class

Class returns the underlying Objective-C class pointer.

type GPURawCounterSourceTriggerProtocol

type GPURawCounterSourceTriggerProtocol interface {
	objectivec.IObject

	// Description protocol.
	Description() objectivec.IObject

	// Name protocol.
	Name() objectivec.IObject

	// Options protocol.
	Options() objectivec.IObject
}

GPURawCounterSourceTrigger protocol.

type GPURawCounterSourceTriggerProtocolObject

type GPURawCounterSourceTriggerProtocolObject struct {
	objectivec.Object
}

GPURawCounterSourceTriggerProtocolObject wraps an existing Objective-C object that conforms to the GPURawCounterSourceTriggerProtocol protocol.

func GPURawCounterSourceTriggerProtocolObjectFromID

func GPURawCounterSourceTriggerProtocolObjectFromID(id objc.ID) GPURawCounterSourceTriggerProtocolObject

GPURawCounterSourceTriggerProtocolObjectFromID constructs a GPURawCounterSourceTriggerProtocolObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (GPURawCounterSourceTriggerProtocolObject) BaseObject

func (GPURawCounterSourceTriggerProtocolObject) Description

func (GPURawCounterSourceTriggerProtocolObject) Name

func (GPURawCounterSourceTriggerProtocolObject) Options

type GPURawCounterSourceTriggerSelect

type GPURawCounterSourceTriggerSelect struct {
	objectivec.Object
}

Methods

func GPURawCounterSourceTriggerSelectFromID

func GPURawCounterSourceTriggerSelectFromID(id objc.ID) GPURawCounterSourceTriggerSelect

GPURawCounterSourceTriggerSelectFromID constructs a GPURawCounterSourceTriggerSelect from an objc.ID.

func NewGPURawCounterSourceTriggerSelect

func NewGPURawCounterSourceTriggerSelect() GPURawCounterSourceTriggerSelect

NewGPURawCounterSourceTriggerSelect creates a new GPURawCounterSourceTriggerSelect instance.

func NewGPURawCounterSourceTriggerSelectWithNameOptions

func NewGPURawCounterSourceTriggerSelectWithNameOptions(name objectivec.IObject, options objectivec.IObject) GPURawCounterSourceTriggerSelect

func (GPURawCounterSourceTriggerSelect) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (GPURawCounterSourceTriggerSelect) Init

Init initializes the instance.

func (GPURawCounterSourceTriggerSelect) InitWithNameOptions

func (GPURawCounterSourceTriggerSelect) Name

func (GPURawCounterSourceTriggerSelect) Options

type GPURawCounterSourceTriggerSelectClass

type GPURawCounterSourceTriggerSelectClass struct {
	// contains filtered or unexported fields
}

func GetGPURawCounterSourceTriggerSelectClass

func GetGPURawCounterSourceTriggerSelectClass() GPURawCounterSourceTriggerSelectClass

GetGPURawCounterSourceTriggerSelectClass returns the class object for GPURawCounterSourceTriggerSelect.

func (GPURawCounterSourceTriggerSelectClass) Alloc

Alloc allocates memory for a new instance of the class.

func (GPURawCounterSourceTriggerSelectClass) Class

Class returns the underlying Objective-C class pointer.

func (GPURawCounterSourceTriggerSelectClass) SelectWithNameOptions

func (_GPURawCounterSourceTriggerSelectClass GPURawCounterSourceTriggerSelectClass) SelectWithNameOptions(name objectivec.IObject, options objectivec.IObject) objectivec.IObject

type IGPURawCounter

type IGPURawCounter interface {
	objectivec.IObject

	CounterValueType() uint64
	Name() string
	InitWithNameDescriptionValueType(name objectivec.IObject, description objectivec.IObject, type_ uint64) GPURawCounter
	Description() string
}

An interface definition for the GPURawCounter class.

Methods

type IGPURawCounterSelect

type IGPURawCounterSelect interface {
	objectivec.IObject

	Name() string
	Options() foundation.INSDictionary
	InitWithNameOptions(name objectivec.IObject, options objectivec.IObject) GPURawCounterSelect
}

An interface definition for the GPURawCounterSelect class.

Methods

type IGPURawCounterSource

type IGPURawCounterSource interface {
	objectivec.IObject

	AvailableCounters() objectivec.IObject
	AvailableTriggers() objectivec.IObject
	DrainRingBufferAtIndexDataSize(index uint32, size uint32) uint32
	DrainRingBufferAtIndexDataSizeError(index uint32, size uint32) (uint32, error)
	Features() foundation.INSDictionary
	FlushRingBuffers()
	IsEnabled() bool
	Name() string
	Options() foundation.INSDictionary
	SetOptions(value foundation.INSDictionary)
	PollCountersAtBufferIndexWithBlock(index uint32, block VoidHandler) bool
	PollCountersAtBufferIndexWithBlockError(index uint32, block func()) (bool, error)
	PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)
	PostProcessRawDataWithRingBufferIndexSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(index uint32, source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)
	PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLast(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, bool)
	PostProcessRawDataWithRingBufferSourceSourceSizeSourceReadSourceWriteOutputOutputSizeOutputReadOutputWriteIsLastError(source string, size uint64, write uint64, output string, size2 uint64, read2 uint64, last bool) (uint64, uint64, error)
	PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLast(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, bool)
	PostProcessRawDataWithSourceSourceSizeSourceReadOutputOutputSizeOutputWrittenIsLastError(source string, size uint64, output string, size2 uint64, last bool) (uint64, uint64, error)
	RequestCountersFirstErrorIndex(counters objectivec.IObject) (uint64, bool)
	RequestCountersFirstErrorIndexError(counters objectivec.IObject) (uint64, error)
	RequestTriggersFirstErrorIndex(triggers objectivec.IObject) (uint64, bool)
	RequestTriggersFirstErrorIndexError(triggers objectivec.IObject) (uint64, error)
	ResetRawDataPostProcessor()
	RingBufferInfoAtIndexBaseSizeDataOffsetDataSize(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) bool
	RingBufferInfoAtIndexBaseSizeDataOffsetDataSizeError(index uint32, base *int8, size *uint32, offset *uint32, size2 *uint32) (bool, error)
	RingBufferNum() uint32
	SelectedCounters() objectivec.IObject
	SelectedTriggers() objectivec.IObject
	SetEnabled(enabled bool) bool
	SetEnabledError(enabled bool) (bool, error)
	SourceGroup() unsafe.Pointer
	InitWithSourceGroupName(group objectivec.IObject, name objectivec.IObject) GPURawCounterSource
	DebugDescription() string
	Description() string
	Hash() uint64
	Superclass() objc.Class
}

An interface definition for the GPURawCounterSource class.

Methods

type Uint64Uint64Uint64Handler

type Uint64Uint64Uint64Handler = func(*uint64, uint64, uint64)

Uint64Uint64Uint64Handler handles completion with primitive and object results.

Used by:

type VoidHandler

type VoidHandler = func()

VoidHandler is the signature for a completion handler block.

Used by:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL