Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + type Error int32 + func (e Error) Error() string + type Manager struct + func APerformanceHint_getManager() *Manager + func NewManagerFromPointer(ptr unsafe.Pointer) *Manager + func (h *Manager) CreateSession(threadIds *int32, size uint64, initialTargetWorkDuration time.Duration) *Session + func (h *Manager) Pointer() unsafe.Pointer + func (h *Manager) PreferredUpdateRateNanos() int64 + type Pid_t = capi.Pid_t + type Session struct + func NewSessionFromPointer(ptr unsafe.Pointer) *Session + func (h *Session) APerformanceHint_reportActualWorkDuration2(workDuration *WorkDuration) error + func (h *Session) APerformanceHint_setPreferPowerEfficiency(enabled bool) error + func (h *Session) APerformanceHint_setThreads(threadIds *Pid_t, size uint64) error + func (h *Session) Close() error + func (h *Session) Pointer() unsafe.Pointer + func (h *Session) ReportActualWorkDuration(actualDuration time.Duration) error + func (h *Session) UpdateTargetWorkDuration(targetDuration time.Duration) error + type WorkDuration struct + func NewWorkDuration() *WorkDuration + func NewWorkDurationFromPointer(ptr unsafe.Pointer) *WorkDuration + func (h *WorkDuration) Close() error + func (h *WorkDuration) Pointer() unsafe.Pointer + func (h *WorkDuration) SetActualCpuDurationNanos(actualCpuDurationNanos int64) + func (h *WorkDuration) SetActualGpuDurationNanos(actualGpuDurationNanos int64) + func (h *WorkDuration) SetActualTotalDurationNanos(actualTotalDurationNanos int64) + func (h *WorkDuration) SetWorkPeriodStartTimestampNanos(workPeriodStartTimestampNanos int64)