performancetrace

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: 9 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 performancetrace provides Go bindings for the performancetrace 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 performancetrace 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 NewErrorBlock

func NewErrorBlock(handler ErrorHandler) (objc.ID, func())

NewErrorBlock wraps a Go ErrorHandler 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 performancetrace, 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 ErrorHandler

type ErrorHandler = func(error)

ErrorHandler is the signature for a completion handler block.

Used by:

type IPTPassiveTraceArchiveHandle

type IPTPassiveTraceArchiveHandle interface {
	objectivec.IObject

	AarPath() string
	SandboxToken() int64
}

An interface definition for the PTPassiveTraceArchiveHandle class.

Methods

type IPTPassiveTraceConfig

type IPTPassiveTraceConfig interface {
	objectivec.IObject

	ApplySetting(setting uint64) objectivec.IObject
	CancelCurrentSettingWithoutCollecting() objectivec.IObject
	CollectLookbackIntervalWithTraceNamePrefixTriggerUserNotificationErrorOut(prefix objectivec.IObject, notification bool, out *objc.ID) objectivec.IObject
	CollectThenClearCurrentSettingWithTraceNamePrefixTriggerUserNotificationErrorOut(prefix objectivec.IObject, notification bool, out *objc.ID) objectivec.IObject
	CollectWithStartDateEndDateTraceNamePrefixTriggerUserNotificationErrorOut(date objectivec.IObject, date2 objectivec.IObject, prefix objectivec.IObject, notification bool, out *objc.ID) objectivec.IObject
	ConnectionInvalidated() bool
	FetchCollectAppInFocus(focus *objc.ID) objectivec.IObject
	FetchCollectLoggingAppLaunch(launch *objc.ID) objectivec.IObject
	FetchCollectLoggingHangs(hangs *objc.ID) objectivec.IObject
	FetchCollectLoggingMetalFramePacing(pacing *objc.ID) objectivec.IObject
	FetchCollectLoggingPerfPowerMetrics(metrics *objc.ID) objectivec.IObject
	FetchCollectLoggingScrolling(scrolling *objc.ID) objectivec.IObject
	FetchCollectLoggingUserInteraction(interaction *objc.ID) objectivec.IObject
	FetchCollectLookbackInterval(interval *objc.ID) objectivec.IObject
	FetchCollectMSS(mss *objc.ID) objectivec.IObject
	FetchCurrentSetting(setting *objc.ID) objectivec.IObject
	FetchMSSPMICycleInterval(interval *objc.ID) objectivec.IObject
	FetchMetalPerDrawableSignpostsEnabled(enabled *objc.ID) objectivec.IObject
	FetchPerfPowerMetricMonitorEnabled(enabled *objc.ID) objectivec.IObject
	FetchPerfPowerMetricMonitoredProcesses(processes *objc.ID) objectivec.IObject
	FetchRecordingStartDate(date *objc.ID) objectivec.IObject
	InstrumentationConfigLocked(locked *objc.ID) objectivec.IObject
	PingServiceErrorOut(service objectivec.IObject, out *objc.ID) objectivec.IObject
	ResetPassiveCollectionSettings(settings *objc.ID) bool
	UpdateCollectAppInFocus(focus objectivec.IObject) objectivec.IObject
	UpdateCollectLoggingAppLaunch(launch objectivec.IObject) objectivec.IObject
	UpdateCollectLoggingHangs(hangs objectivec.IObject) objectivec.IObject
	UpdateCollectLoggingMetalFramePacing(pacing objectivec.IObject) objectivec.IObject
	UpdateCollectLoggingPerfPowerMetrics(metrics objectivec.IObject) objectivec.IObject
	UpdateCollectLoggingScrolling(scrolling objectivec.IObject) objectivec.IObject
	UpdateCollectLoggingUserInteraction(interaction objectivec.IObject) objectivec.IObject
	UpdateCollectLookbackInterval(interval objectivec.IObject) objectivec.IObject
	UpdateCollectMSS(mss objectivec.IObject) objectivec.IObject
	UpdateMSSPMICycleInterval(interval objectivec.IObject) objectivec.IObject
	UpdateMetalPerDrawableSignpostsEnabled(enabled objectivec.IObject) objectivec.IObject
	UpdatePerfPowerMetricMonitorEnabled(enabled objectivec.IObject) objectivec.IObject
	UpdatePerfPowerMetricMonitoredProcesses(processes objectivec.IObject) objectivec.IObject
	UpdateRecordingStartDate(date objectivec.IObject) objectivec.IObject
}

An interface definition for the PTPassiveTraceConfig class.

Methods

type IPTTraceConfig

type IPTTraceConfig interface {
	objectivec.IObject

	CallstackSamplingRateMS() uint64
	SetCallstackSamplingRateMS(value uint64)
	CompressWhenFinished() bool
	SetCompressWhenFinished(value bool)
	Connection() foundation.NSXPCConnection
	SetConnection(value foundation.NSXPCConnection)
	EnableSwiftUITracing() bool
	SetEnableSwiftUITracing(value bool)
	EncodeWithCoder(coder foundation.INSCoder)
	IncludeKernelStacks() bool
	SetIncludeKernelStacks(value bool)
	IncludeOSLogs() bool
	SetIncludeOSLogs(value bool)
	IncludeOSSignposts() bool
	SetIncludeOSSignposts(value bool)
	KernelBufferDrainQoS() uint32
	SetKernelBufferDrainQoS(value uint32)
	KernelBufferDrainRateMS() uint64
	SetKernelBufferDrainRateMS(value uint64)
	KernelBufferSizeMB() uint64
	SetKernelBufferSizeMB(value uint64)
	OverrideIncludeOSLogs() bool
	SetOverrideIncludeOSLogs(value bool)
	OverrideIncludeOSSignposts() bool
	SetOverrideIncludeOSSignposts(value bool)
	OverrideSymbolicate() bool
	SetOverrideSymbolicate(value bool)
	OwnerName() string
	SetOwnerName(value string)
	OwnerPID() int32
	SetOwnerPID(value int32)
	PlanNameOrPath() string
	SetPlanNameOrPath(value string)
	SkipNotification() bool
	SetSkipNotification(value bool)
	Source() uint64
	SetSource(value uint64)
	StoreConfig() bool
	Symbolicate() bool
	SetSymbolicate(value bool)
	TraceDirectoryURL() foundation.NSURL
	SetTraceDirectoryURL(value foundation.NSURL)
	TraceDurationSecs() uint64
	SetTraceDurationSecs(value uint64)
	TraceGroups() foundation.INSArray
	SetTraceGroups(value foundation.INSArray)
	TraceName() string
	SetTraceName(value string)
	TraceRecordArgs() foundation.INSArray
	SetTraceRecordArgs(value foundation.INSArray)
	TraceRecordEndNotificationName() string
	SetTraceRecordEndNotificationName(value string)
	TraceTimeoutS() uint64
	SetTraceTimeoutS(value uint64)
	TraceType() uint64
	SetTraceType(value uint64)
	TracingActiveTransaction() objectivec.Object
	SetTracingActiveTransaction(value objectivec.Object)
	UseTraceRecord() bool
	SetUseTraceRecord(value bool)
	ValidateConfig() bool
	InitWithCoder(coder foundation.INSCoder) PTTraceConfig
	// contains filtered or unexported methods
}

An interface definition for the PTTraceConfig class.

Methods

type IPTTraceSession

type IPTTraceSession interface {
	objectivec.IObject

	Config() IPTTraceConfig
	SetConfig(value IPTTraceConfig)
	Connection() foundation.NSXPCConnection
	SetConnection(value foundation.NSXPCConnection)
	Delegate() unsafe.Pointer
	SetDelegate(value unsafe.Pointer)
	DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecsCompletionHandler(url foundation.NSURL, info objectivec.IObject, secs objectivec.IObject, handler ErrorHandler)
	IsValid() bool
	PerformanceTraceDidCompleteWithTokenWithError(complete objectivec.IObject, token objectivec.IObject, error_ objectivec.IObject)
	PerformanceTraceDidStart(start objectivec.IObject)
	PerformanceTraceDidStop(stop objectivec.IObject)
	StartPerformanceTrace()
	StopPerformanceTrace()
	// contains filtered or unexported methods
}

An interface definition for the PTTraceSession class.

Methods

type NSCopying

type NSCopying interface {
	objectivec.IObject
}

NSCopying protocol.

type NSCopyingObject

type NSCopyingObject struct {
	objectivec.Object
}

NSCopyingObject wraps an existing Objective-C object that conforms to the NSCopying protocol.

func NSCopyingObjectFromID

func NSCopyingObjectFromID(id objc.ID) NSCopyingObject

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

func (NSCopyingObject) BaseObject

func (o NSCopyingObject) BaseObject() objectivec.Object

type NSSecureCoding

type NSSecureCoding interface {
	objectivec.IObject

	// SupportsSecureCoding protocol.
	SupportsSecureCoding() bool
}

NSSecureCoding protocol.

type NSSecureCodingObject

type NSSecureCodingObject struct {
	objectivec.Object
}

NSSecureCodingObject wraps an existing Objective-C object that conforms to the NSSecureCoding protocol.

func NSSecureCodingObjectFromID

func NSSecureCodingObjectFromID(id objc.ID) NSSecureCodingObject

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

func (NSSecureCodingObject) BaseObject

func (o NSSecureCodingObject) BaseObject() objectivec.Object

func (NSSecureCodingObject) SupportsSecureCoding

func (o NSSecureCodingObject) SupportsSecureCoding() bool

type PTGlobalStateChangeMonitor

type PTGlobalStateChangeMonitor struct {
	objectivec.Object
}

Methods

func NewPTGlobalStateChangeMonitor

func NewPTGlobalStateChangeMonitor() PTGlobalStateChangeMonitor

NewPTGlobalStateChangeMonitor creates a new PTGlobalStateChangeMonitor instance.

func PTGlobalStateChangeMonitorFromID

func PTGlobalStateChangeMonitorFromID(id objc.ID) PTGlobalStateChangeMonitor

PTGlobalStateChangeMonitorFromID constructs a PTGlobalStateChangeMonitor from an objc.ID.

func (PTGlobalStateChangeMonitor) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (PTGlobalStateChangeMonitor) Init

Init initializes the instance.

func (PTGlobalStateChangeMonitor) InitWithQueueStateChangeBlock

func (p PTGlobalStateChangeMonitor) InitWithQueueStateChangeBlock(queue objectivec.IObject, block VoidHandler) PTGlobalStateChangeMonitor

func (PTGlobalStateChangeMonitor) InitWithQueueStateChangeBlockSync

func (p PTGlobalStateChangeMonitor) InitWithQueueStateChangeBlockSync(ctx context.Context, queue objectivec.IObject) error

InitWithQueueStateChangeBlockSync is a synchronous wrapper around PTGlobalStateChangeMonitor.InitWithQueueStateChangeBlock. It blocks until the completion handler fires or the context is cancelled.

func (PTGlobalStateChangeMonitor) Notify_token

func (PTGlobalStateChangeMonitor) StateChangeBlock

func (p PTGlobalStateChangeMonitor) StateChangeBlock() VoidHandler

func (PTGlobalStateChangeMonitor) TargetQueue

type PTGlobalStateChangeMonitorClass

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

func GetPTGlobalStateChangeMonitorClass

func GetPTGlobalStateChangeMonitorClass() PTGlobalStateChangeMonitorClass

GetPTGlobalStateChangeMonitorClass returns the class object for PTGlobalStateChangeMonitor.

func (PTGlobalStateChangeMonitorClass) Alloc

Alloc allocates memory for a new instance of the class.

func (PTGlobalStateChangeMonitorClass) Class

Class returns the underlying Objective-C class pointer.

type PTPassiveTraceArchiveHandle

type PTPassiveTraceArchiveHandle struct {
	objectivec.Object
}

Methods

func NewPTPassiveTraceArchiveHandle

func NewPTPassiveTraceArchiveHandle() PTPassiveTraceArchiveHandle

NewPTPassiveTraceArchiveHandle creates a new PTPassiveTraceArchiveHandle instance.

func PTPassiveTraceArchiveHandleFromID

func PTPassiveTraceArchiveHandleFromID(id objc.ID) PTPassiveTraceArchiveHandle

PTPassiveTraceArchiveHandleFromID constructs a PTPassiveTraceArchiveHandle from an objc.ID.

func (PTPassiveTraceArchiveHandle) AarPath

func (p PTPassiveTraceArchiveHandle) AarPath() string

func (PTPassiveTraceArchiveHandle) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (PTPassiveTraceArchiveHandle) Init

Init initializes the instance.

func (PTPassiveTraceArchiveHandle) SandboxToken

func (p PTPassiveTraceArchiveHandle) SandboxToken() int64

type PTPassiveTraceArchiveHandleClass

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

func GetPTPassiveTraceArchiveHandleClass

func GetPTPassiveTraceArchiveHandleClass() PTPassiveTraceArchiveHandleClass

GetPTPassiveTraceArchiveHandleClass returns the class object for PTPassiveTraceArchiveHandle.

func (PTPassiveTraceArchiveHandleClass) Alloc

Alloc allocates memory for a new instance of the class.

func (PTPassiveTraceArchiveHandleClass) Class

Class returns the underlying Objective-C class pointer.

type PTPassiveTraceConfig

type PTPassiveTraceConfig struct {
	objectivec.Object
}

Methods

func NewPTPassiveTraceConfig

func NewPTPassiveTraceConfig() PTPassiveTraceConfig

NewPTPassiveTraceConfig creates a new PTPassiveTraceConfig instance.

func PTPassiveTraceConfigFromID

func PTPassiveTraceConfigFromID(id objc.ID) PTPassiveTraceConfig

PTPassiveTraceConfigFromID constructs a PTPassiveTraceConfig from an objc.ID.

func (PTPassiveTraceConfig) ApplySetting

func (p PTPassiveTraceConfig) ApplySetting(setting uint64) objectivec.IObject

func (PTPassiveTraceConfig) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (PTPassiveTraceConfig) CancelCurrentSettingWithoutCollecting

func (p PTPassiveTraceConfig) CancelCurrentSettingWithoutCollecting() objectivec.IObject

func (PTPassiveTraceConfig) CollectLookbackIntervalWithTraceNamePrefixTriggerUserNotificationErrorOut

func (p PTPassiveTraceConfig) CollectLookbackIntervalWithTraceNamePrefixTriggerUserNotificationErrorOut(prefix objectivec.IObject, notification bool, out *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) CollectThenClearCurrentSettingWithTraceNamePrefixTriggerUserNotificationErrorOut

func (p PTPassiveTraceConfig) CollectThenClearCurrentSettingWithTraceNamePrefixTriggerUserNotificationErrorOut(prefix objectivec.IObject, notification bool, out *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) CollectWithStartDateEndDateTraceNamePrefixTriggerUserNotificationErrorOut

func (p PTPassiveTraceConfig) CollectWithStartDateEndDateTraceNamePrefixTriggerUserNotificationErrorOut(date objectivec.IObject, date2 objectivec.IObject, prefix objectivec.IObject, notification bool, out *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) ConnectionInvalidated

func (p PTPassiveTraceConfig) ConnectionInvalidated() bool

func (PTPassiveTraceConfig) FetchCollectAppInFocus

func (p PTPassiveTraceConfig) FetchCollectAppInFocus(focus *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLoggingAppLaunch

func (p PTPassiveTraceConfig) FetchCollectLoggingAppLaunch(launch *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLoggingHangs

func (p PTPassiveTraceConfig) FetchCollectLoggingHangs(hangs *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLoggingMetalFramePacing

func (p PTPassiveTraceConfig) FetchCollectLoggingMetalFramePacing(pacing *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLoggingPerfPowerMetrics

func (p PTPassiveTraceConfig) FetchCollectLoggingPerfPowerMetrics(metrics *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLoggingScrolling

func (p PTPassiveTraceConfig) FetchCollectLoggingScrolling(scrolling *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLoggingUserInteraction

func (p PTPassiveTraceConfig) FetchCollectLoggingUserInteraction(interaction *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectLookbackInterval

func (p PTPassiveTraceConfig) FetchCollectLookbackInterval(interval *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCollectMSS

func (p PTPassiveTraceConfig) FetchCollectMSS(mss *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchCurrentSetting

func (p PTPassiveTraceConfig) FetchCurrentSetting(setting *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchMSSPMICycleInterval

func (p PTPassiveTraceConfig) FetchMSSPMICycleInterval(interval *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchMetalPerDrawableSignpostsEnabled

func (p PTPassiveTraceConfig) FetchMetalPerDrawableSignpostsEnabled(enabled *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchPerfPowerMetricMonitorEnabled

func (p PTPassiveTraceConfig) FetchPerfPowerMetricMonitorEnabled(enabled *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchPerfPowerMetricMonitoredProcesses

func (p PTPassiveTraceConfig) FetchPerfPowerMetricMonitoredProcesses(processes *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) FetchRecordingStartDate

func (p PTPassiveTraceConfig) FetchRecordingStartDate(date *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) Init

Init initializes the instance.

func (PTPassiveTraceConfig) InstrumentationConfigLocked

func (p PTPassiveTraceConfig) InstrumentationConfigLocked(locked *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) PingServiceErrorOut

func (p PTPassiveTraceConfig) PingServiceErrorOut(service objectivec.IObject, out *objc.ID) objectivec.IObject

func (PTPassiveTraceConfig) ResetPassiveCollectionSettings

func (p PTPassiveTraceConfig) ResetPassiveCollectionSettings(settings *objc.ID) bool

func (PTPassiveTraceConfig) UpdateCollectAppInFocus

func (p PTPassiveTraceConfig) UpdateCollectAppInFocus(focus objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLoggingAppLaunch

func (p PTPassiveTraceConfig) UpdateCollectLoggingAppLaunch(launch objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLoggingHangs

func (p PTPassiveTraceConfig) UpdateCollectLoggingHangs(hangs objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLoggingMetalFramePacing

func (p PTPassiveTraceConfig) UpdateCollectLoggingMetalFramePacing(pacing objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLoggingPerfPowerMetrics

func (p PTPassiveTraceConfig) UpdateCollectLoggingPerfPowerMetrics(metrics objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLoggingScrolling

func (p PTPassiveTraceConfig) UpdateCollectLoggingScrolling(scrolling objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLoggingUserInteraction

func (p PTPassiveTraceConfig) UpdateCollectLoggingUserInteraction(interaction objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectLookbackInterval

func (p PTPassiveTraceConfig) UpdateCollectLookbackInterval(interval objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateCollectMSS

func (p PTPassiveTraceConfig) UpdateCollectMSS(mss objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateMSSPMICycleInterval

func (p PTPassiveTraceConfig) UpdateMSSPMICycleInterval(interval objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateMetalPerDrawableSignpostsEnabled

func (p PTPassiveTraceConfig) UpdateMetalPerDrawableSignpostsEnabled(enabled objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdatePerfPowerMetricMonitorEnabled

func (p PTPassiveTraceConfig) UpdatePerfPowerMetricMonitorEnabled(enabled objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdatePerfPowerMetricMonitoredProcesses

func (p PTPassiveTraceConfig) UpdatePerfPowerMetricMonitoredProcesses(processes objectivec.IObject) objectivec.IObject

func (PTPassiveTraceConfig) UpdateRecordingStartDate

func (p PTPassiveTraceConfig) UpdateRecordingStartDate(date objectivec.IObject) objectivec.IObject

type PTPassiveTraceConfigClass

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

func GetPTPassiveTraceConfigClass

func GetPTPassiveTraceConfigClass() PTPassiveTraceConfigClass

GetPTPassiveTraceConfigClass returns the class object for PTPassiveTraceConfig.

func (PTPassiveTraceConfigClass) Alloc

Alloc allocates memory for a new instance of the class.

func (PTPassiveTraceConfigClass) Class

Class returns the underlying Objective-C class pointer.

func (PTPassiveTraceConfigClass) SharedConfig

func (_PTPassiveTraceConfigClass PTPassiveTraceConfigClass) SharedConfig(config *objc.ID) objectivec.IObject

func (PTPassiveTraceConfigClass) SmallMSSPMIInterval

func (_PTPassiveTraceConfigClass PTPassiveTraceConfigClass) SmallMSSPMIInterval() uint64

type PTTraceConfig

type PTTraceConfig struct {
	objectivec.Object
}

Methods

func NewPTTraceConfig

func NewPTTraceConfig() PTTraceConfig

NewPTTraceConfig creates a new PTTraceConfig instance.

func NewPTTraceConfigWithCoder

func NewPTTraceConfigWithCoder(coder objectivec.IObject) PTTraceConfig

func PTTraceConfigFromID

func PTTraceConfigFromID(id objc.ID) PTTraceConfig

PTTraceConfigFromID constructs a PTTraceConfig from an objc.ID.

func (PTTraceConfig) Autorelease

func (p PTTraceConfig) Autorelease() PTTraceConfig

Autorelease adds the receiver to the current autorelease pool.

func (PTTraceConfig) CallstackSamplingRateMS

func (p PTTraceConfig) CallstackSamplingRateMS() uint64

func (PTTraceConfig) CanGetRemoteObjectProxy

func (p PTTraceConfig) CanGetRemoteObjectProxy() bool

CanGetRemoteObjectProxy reports whether the receiver responds to the private selector _getRemoteObjectProxy.

func (PTTraceConfig) CanInitConnection

func (p PTTraceConfig) CanInitConnection() bool

CanInitConnection reports whether the receiver responds to the private selector _initConnection.

func (PTTraceConfig) CanInvalidateSession

func (p PTTraceConfig) CanInvalidateSession() bool

CanInvalidateSession reports whether the receiver responds to the private selector _invalidateSession.

func (PTTraceConfig) CompressWhenFinished

func (p PTTraceConfig) CompressWhenFinished() bool

func (PTTraceConfig) Connection

func (p PTTraceConfig) Connection() foundation.NSXPCConnection

func (PTTraceConfig) EnableSwiftUITracing

func (p PTTraceConfig) EnableSwiftUITracing() bool

func (PTTraceConfig) EncodeWithCoder

func (p PTTraceConfig) EncodeWithCoder(coder foundation.INSCoder)

func (PTTraceConfig) GetRemoteObjectProxy

func (p PTTraceConfig) GetRemoteObjectProxy() (objectivec.IObject, error)

GetRemoteObjectProxy is an exported wrapper for the private method _getRemoteObjectProxy.

func (PTTraceConfig) IncludeKernelStacks

func (p PTTraceConfig) IncludeKernelStacks() bool

func (PTTraceConfig) IncludeOSLogs

func (p PTTraceConfig) IncludeOSLogs() bool

func (PTTraceConfig) IncludeOSSignposts

func (p PTTraceConfig) IncludeOSSignposts() bool

func (PTTraceConfig) Init

func (p PTTraceConfig) Init() PTTraceConfig

Init initializes the instance.

func (PTTraceConfig) InitConnection

func (p PTTraceConfig) InitConnection() error

InitConnection is an exported wrapper for the private method _initConnection.

func (PTTraceConfig) InitWithCoder

func (p PTTraceConfig) InitWithCoder(coder foundation.INSCoder) PTTraceConfig

func (PTTraceConfig) InvalidateSession

func (p PTTraceConfig) InvalidateSession() error

InvalidateSession is an exported wrapper for the private method _invalidateSession.

func (PTTraceConfig) KernelBufferDrainQoS

func (p PTTraceConfig) KernelBufferDrainQoS() uint32

func (PTTraceConfig) KernelBufferDrainRateMS

func (p PTTraceConfig) KernelBufferDrainRateMS() uint64

func (PTTraceConfig) KernelBufferSizeMB

func (p PTTraceConfig) KernelBufferSizeMB() uint64

func (PTTraceConfig) OverrideIncludeOSLogs

func (p PTTraceConfig) OverrideIncludeOSLogs() bool

func (PTTraceConfig) OverrideIncludeOSSignposts

func (p PTTraceConfig) OverrideIncludeOSSignposts() bool

func (PTTraceConfig) OverrideSymbolicate

func (p PTTraceConfig) OverrideSymbolicate() bool

func (PTTraceConfig) OwnerName

func (p PTTraceConfig) OwnerName() string

func (PTTraceConfig) OwnerPID

func (p PTTraceConfig) OwnerPID() int32

func (PTTraceConfig) PlanNameOrPath

func (p PTTraceConfig) PlanNameOrPath() string

func (PTTraceConfig) SetCallstackSamplingRateMS

func (p PTTraceConfig) SetCallstackSamplingRateMS(value uint64)

func (PTTraceConfig) SetCompressWhenFinished

func (p PTTraceConfig) SetCompressWhenFinished(value bool)

func (PTTraceConfig) SetConnection

func (p PTTraceConfig) SetConnection(value foundation.NSXPCConnection)

func (PTTraceConfig) SetEnableSwiftUITracing

func (p PTTraceConfig) SetEnableSwiftUITracing(value bool)

func (PTTraceConfig) SetIncludeKernelStacks

func (p PTTraceConfig) SetIncludeKernelStacks(value bool)

func (PTTraceConfig) SetIncludeOSLogs

func (p PTTraceConfig) SetIncludeOSLogs(value bool)

func (PTTraceConfig) SetIncludeOSSignposts

func (p PTTraceConfig) SetIncludeOSSignposts(value bool)

func (PTTraceConfig) SetKernelBufferDrainQoS

func (p PTTraceConfig) SetKernelBufferDrainQoS(value uint32)

func (PTTraceConfig) SetKernelBufferDrainRateMS

func (p PTTraceConfig) SetKernelBufferDrainRateMS(value uint64)

func (PTTraceConfig) SetKernelBufferSizeMB

func (p PTTraceConfig) SetKernelBufferSizeMB(value uint64)

func (PTTraceConfig) SetOverrideIncludeOSLogs

func (p PTTraceConfig) SetOverrideIncludeOSLogs(value bool)

func (PTTraceConfig) SetOverrideIncludeOSSignposts

func (p PTTraceConfig) SetOverrideIncludeOSSignposts(value bool)

func (PTTraceConfig) SetOverrideSymbolicate

func (p PTTraceConfig) SetOverrideSymbolicate(value bool)

func (PTTraceConfig) SetOwnerName

func (p PTTraceConfig) SetOwnerName(value string)

func (PTTraceConfig) SetOwnerPID

func (p PTTraceConfig) SetOwnerPID(value int32)

func (PTTraceConfig) SetPlanNameOrPath

func (p PTTraceConfig) SetPlanNameOrPath(value string)

func (PTTraceConfig) SetSkipNotification

func (p PTTraceConfig) SetSkipNotification(value bool)

func (PTTraceConfig) SetSource

func (p PTTraceConfig) SetSource(value uint64)

func (PTTraceConfig) SetSymbolicate

func (p PTTraceConfig) SetSymbolicate(value bool)

func (PTTraceConfig) SetTraceDirectoryURL

func (p PTTraceConfig) SetTraceDirectoryURL(value foundation.NSURL)

func (PTTraceConfig) SetTraceDurationSecs

func (p PTTraceConfig) SetTraceDurationSecs(value uint64)

func (PTTraceConfig) SetTraceGroups

func (p PTTraceConfig) SetTraceGroups(value foundation.INSArray)

func (PTTraceConfig) SetTraceName

func (p PTTraceConfig) SetTraceName(value string)

func (PTTraceConfig) SetTraceRecordArgs

func (p PTTraceConfig) SetTraceRecordArgs(value foundation.INSArray)

func (PTTraceConfig) SetTraceRecordEndNotificationName

func (p PTTraceConfig) SetTraceRecordEndNotificationName(value string)

func (PTTraceConfig) SetTraceTimeoutS

func (p PTTraceConfig) SetTraceTimeoutS(value uint64)

func (PTTraceConfig) SetTraceType

func (p PTTraceConfig) SetTraceType(value uint64)

func (PTTraceConfig) SetTracingActiveTransaction

func (p PTTraceConfig) SetTracingActiveTransaction(value objectivec.Object)

func (PTTraceConfig) SetUseTraceRecord

func (p PTTraceConfig) SetUseTraceRecord(value bool)

func (PTTraceConfig) SkipNotification

func (p PTTraceConfig) SkipNotification() bool

func (PTTraceConfig) Source

func (p PTTraceConfig) Source() uint64

func (PTTraceConfig) StoreConfig

func (p PTTraceConfig) StoreConfig() bool

func (PTTraceConfig) Symbolicate

func (p PTTraceConfig) Symbolicate() bool

func (PTTraceConfig) TraceDirectoryURL

func (p PTTraceConfig) TraceDirectoryURL() foundation.NSURL

func (PTTraceConfig) TraceDurationSecs

func (p PTTraceConfig) TraceDurationSecs() uint64

func (PTTraceConfig) TraceGroups

func (p PTTraceConfig) TraceGroups() foundation.INSArray

func (PTTraceConfig) TraceName

func (p PTTraceConfig) TraceName() string

func (PTTraceConfig) TraceRecordArgs

func (p PTTraceConfig) TraceRecordArgs() foundation.INSArray

func (PTTraceConfig) TraceRecordEndNotificationName

func (p PTTraceConfig) TraceRecordEndNotificationName() string

func (PTTraceConfig) TraceTimeoutS

func (p PTTraceConfig) TraceTimeoutS() uint64

func (PTTraceConfig) TraceType

func (p PTTraceConfig) TraceType() uint64

func (PTTraceConfig) TracingActiveTransaction

func (p PTTraceConfig) TracingActiveTransaction() objectivec.Object

func (PTTraceConfig) UseTraceRecord

func (p PTTraceConfig) UseTraceRecord() bool

func (PTTraceConfig) ValidateConfig

func (p PTTraceConfig) ValidateConfig() bool

type PTTraceConfigClass

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

func GetPTTraceConfigClass

func GetPTTraceConfigClass() PTTraceConfigClass

GetPTTraceConfigClass returns the class object for PTTraceConfig.

func (PTTraceConfigClass) Alloc

func (pc PTTraceConfigClass) Alloc() PTTraceConfig

Alloc allocates memory for a new instance of the class.

func (PTTraceConfigClass) AvailableTracePlanNames

func (_PTTraceConfigClass PTTraceConfigClass) AvailableTracePlanNames() objectivec.IObject

func (PTTraceConfigClass) CanDefaultTraceRecordConfig

func (_PTTraceConfigClass PTTraceConfigClass) CanDefaultTraceRecordConfig() bool

CanDefaultTraceRecordConfig reports whether the receiver responds to the private selector _defaultTraceRecordConfig.

func (PTTraceConfigClass) Class

func (pc PTTraceConfigClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (PTTraceConfigClass) ConfigWithDictionary

func (_PTTraceConfigClass PTTraceConfigClass) ConfigWithDictionary(dictionary objectivec.IObject) objectivec.IObject

func (PTTraceConfigClass) ConfigWithTemplate

func (_PTTraceConfigClass PTTraceConfigClass) ConfigWithTemplate(template uint64) objectivec.IObject

func (PTTraceConfigClass) ConfigWithTracePlanName

func (_PTTraceConfigClass PTTraceConfigClass) ConfigWithTracePlanName(name objectivec.IObject) objectivec.IObject

func (PTTraceConfigClass) ConfigWithTracePlanURL

func (_PTTraceConfigClass PTTraceConfigClass) ConfigWithTracePlanURL(url foundation.NSURL) objectivec.IObject

func (PTTraceConfigClass) DefaultTraceRecordConfig

func (_PTTraceConfigClass PTTraceConfigClass) DefaultTraceRecordConfig() (objectivec.IObject, error)

DefaultTraceRecordConfig is an exported wrapper for the private method _defaultTraceRecordConfig.

func (PTTraceConfigClass) DisplayNameForTracePlanName

func (_PTTraceConfigClass PTTraceConfigClass) DisplayNameForTracePlanName(name objectivec.IObject) objectivec.IObject

func (PTTraceConfigClass) GetCurrentConfig

func (_PTTraceConfigClass PTTraceConfigClass) GetCurrentConfig() objectivec.IObject

func (PTTraceConfigClass) GlobalSettingsAreLocked

func (_PTTraceConfigClass PTTraceConfigClass) GlobalSettingsAreLocked() bool

func (PTTraceConfigClass) IsControlCenterModuleAvailable

func (_PTTraceConfigClass PTTraceConfigClass) IsControlCenterModuleAvailable() bool

func (PTTraceConfigClass) IsInRecordingWorkflow

func (_PTTraceConfigClass PTTraceConfigClass) IsInRecordingWorkflow() bool

func (PTTraceConfigClass) ResetConfig

func (_PTTraceConfigClass PTTraceConfigClass) ResetConfig() bool

func (PTTraceConfigClass) SetControlCenterModuleAvailable

func (_PTTraceConfigClass PTTraceConfigClass) SetControlCenterModuleAvailable(available bool)

func (PTTraceConfigClass) SetUserSelectedTracePlanName

func (_PTTraceConfigClass PTTraceConfigClass) SetUserSelectedTracePlanName(name objectivec.IObject)

func (PTTraceConfigClass) SetUserSpecifiedCustomTracePlanArguments

func (_PTTraceConfigClass PTTraceConfigClass) SetUserSpecifiedCustomTracePlanArguments(arguments objectivec.IObject)

func (PTTraceConfigClass) SupportsSecureCoding

func (_PTTraceConfigClass PTTraceConfigClass) SupportsSecureCoding() bool

func (PTTraceConfigClass) UserSelectedTracePlanName

func (_PTTraceConfigClass PTTraceConfigClass) UserSelectedTracePlanName() objectivec.IObject

func (PTTraceConfigClass) UserSpecifiedCustomTracePlanArguments

func (_PTTraceConfigClass PTTraceConfigClass) UserSpecifiedCustomTracePlanArguments() objectivec.IObject

type PTTraceSession

type PTTraceSession struct {
	objectivec.Object
}

Methods

func NewPTTraceSession

func NewPTTraceSession() PTTraceSession

NewPTTraceSession creates a new PTTraceSession instance.

func PTTraceSessionFromID

func PTTraceSessionFromID(id objc.ID) PTTraceSession

PTTraceSessionFromID constructs a PTTraceSession from an objc.ID.

func (PTTraceSession) Autorelease

func (p PTTraceSession) Autorelease() PTTraceSession

Autorelease adds the receiver to the current autorelease pool.

func (PTTraceSession) CanDidPingService

func (p PTTraceSession) CanDidPingService() bool

CanDidPingService reports whether the receiver responds to the private selector _didPingService:.

func (PTTraceSession) CanGetRemoteObjectProxy

func (p PTTraceSession) CanGetRemoteObjectProxy() bool

CanGetRemoteObjectProxy reports whether the receiver responds to the private selector _getRemoteObjectProxy.

func (PTTraceSession) CanInitConnection

func (p PTTraceSession) CanInitConnection() bool

CanInitConnection reports whether the receiver responds to the private selector _initConnection.

func (PTTraceSession) CanInvalidateSession

func (p PTTraceSession) CanInvalidateSession() bool

CanInvalidateSession reports whether the receiver responds to the private selector _invalidateSession.

func (PTTraceSession) CanPing

func (p PTTraceSession) CanPing() bool

CanPing reports whether the receiver responds to the private selector _ping:.

func (PTTraceSession) Config

func (p PTTraceSession) Config() IPTTraceConfig

func (PTTraceSession) Connection

func (p PTTraceSession) Connection() foundation.NSXPCConnection

func (PTTraceSession) Delegate

func (p PTTraceSession) Delegate() unsafe.Pointer

func (PTTraceSession) DidPingService

func (p PTTraceSession) DidPingService(service objectivec.IObject) error

DidPingService is an exported wrapper for the private method _didPingService.

func (PTTraceSession) DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecs

func (p PTTraceSession) DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecs(ctx context.Context, url foundation.NSURL, info objectivec.IObject, secs objectivec.IObject) error

DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecs is a synchronous wrapper around PTTraceSession.DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecsCompletionHandler. It blocks until the completion handler fires or the context is cancelled.

func (PTTraceSession) DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecsCompletionHandler

func (p PTTraceSession) DisplayTraceCompletedAlertWithTraceFileURLAdditionalInfoNotificationTimeoutSecsCompletionHandler(url foundation.NSURL, info objectivec.IObject, secs objectivec.IObject, handler ErrorHandler)

func (PTTraceSession) GetRemoteObjectProxy

func (p PTTraceSession) GetRemoteObjectProxy() (objectivec.IObject, error)

GetRemoteObjectProxy is an exported wrapper for the private method _getRemoteObjectProxy.

func (PTTraceSession) Init

func (p PTTraceSession) Init() PTTraceSession

Init initializes the instance.

func (PTTraceSession) InitConnection

func (p PTTraceSession) InitConnection() error

InitConnection is an exported wrapper for the private method _initConnection.

func (PTTraceSession) InvalidateSession

func (p PTTraceSession) InvalidateSession() error

InvalidateSession is an exported wrapper for the private method _invalidateSession.

func (PTTraceSession) IsValid

func (p PTTraceSession) IsValid() bool

func (PTTraceSession) PerformanceTraceDidCompleteWithTokenWithError

func (p PTTraceSession) PerformanceTraceDidCompleteWithTokenWithError(complete objectivec.IObject, token objectivec.IObject, error_ objectivec.IObject)

func (PTTraceSession) PerformanceTraceDidStart

func (p PTTraceSession) PerformanceTraceDidStart(start objectivec.IObject)

func (PTTraceSession) PerformanceTraceDidStop

func (p PTTraceSession) PerformanceTraceDidStop(stop objectivec.IObject)

func (PTTraceSession) Ping

func (p PTTraceSession) Ping(_ping objectivec.IObject) error

Ping is an exported wrapper for the private method _ping.

func (PTTraceSession) SetConfig

func (p PTTraceSession) SetConfig(value IPTTraceConfig)

func (PTTraceSession) SetConnection

func (p PTTraceSession) SetConnection(value foundation.NSXPCConnection)

func (PTTraceSession) SetDelegate

func (p PTTraceSession) SetDelegate(value unsafe.Pointer)

func (PTTraceSession) StartPerformanceTrace

func (p PTTraceSession) StartPerformanceTrace()

func (PTTraceSession) StopPerformanceTrace

func (p PTTraceSession) StopPerformanceTrace()

type PTTraceSessionClass

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

func GetPTTraceSessionClass

func GetPTTraceSessionClass() PTTraceSessionClass

GetPTTraceSessionClass returns the class object for PTTraceSession.

func (PTTraceSessionClass) Alloc

Alloc allocates memory for a new instance of the class.

func (PTTraceSessionClass) Class

func (pc PTTraceSessionClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (PTTraceSessionClass) InitWithConfig

func (_PTTraceSessionClass PTTraceSessionClass) InitWithConfig(config objectivec.IObject) objectivec.IObject

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