---
title: "hasPerformanceProfile(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/processinfo/hasperformanceprofile(_:)"
---

# hasPerformanceProfile(_:)

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

## Declaration

```swift
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

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

- [processorCount](foundation/processinfo/processorcount.md)
- [activeProcessorCount](foundation/processinfo/activeprocessorcount.md)
- [physicalMemory](foundation/processinfo/physicalmemory.md)
- [isDeviceCertified(for:)](foundation/processinfo/isdevicecertified(for:).md)
- [systemUptime](foundation/processinfo/systemuptime.md)
