Contents

hasPerformanceProfile(_:)

Indicates whether an app is running under a known performance profile.

Declaration

func hasPerformanceProfile(_ performanceProfile: NSProcessPerformanceProfile) -> Bool

Parameters

  • performanceProfile:

    The desired performance profile. Choose between: Default and Sustained.

Return Value

True if the system is running under the given performance profile. If the profile isn’t sustained, the app might cause the device to throttle under a heavy workload.

See Also

Getting Computer Information