<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/ProcessInfo/hasPerformanceProfile(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSProcessInfo(im)hasPerformanceProfile:"
  },
  "title" : "hasPerformanceProfile(_:)"
}
-->

# hasPerformanceProfile(_:)

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

```
func hasPerformanceProfile(_ performanceProfile: NSProcessPerformanceProfile) -> Bool
```

## Parameters

`performanceProfile`

The desired performance profile. Choose between: <doc://com.apple.documentation/documentation/Metal/NSProcessPerformanceProfile/default> and <doc://com.apple.documentation/documentation/Metal/NSProcessPerformanceProfile/sustained>.

## Return Value

True if the system is running under the given performance profile. If the profile isn’t <doc://com.apple.documentation/documentation/Metal/NSProcessPerformanceProfile/sustained>, the app might cause the device to throttle under a heavy workload.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)