Class
ProcessInfo
A collection of information about the current process.
final class ProcessInfo
Topics
Instance Properties
var activeProcessorCount: IntThe number of active processing cores available on the computer.var arguments: [String]Array of strings with the command-line arguments for the process.var environment: [String : String]The variable names (keys) and their values in the environment from which the process was launched.var fullUserName: StringReturns the full name of the current user.var globallyUniqueString: StringGlobal unique identifier for the process.var hostName: StringThe name of the host computer on which the process is executing.var operatingSystemVersion: OperatingSystemVersionThe version of the operating system on which the process is executing.var operatingSystemVersionString: StringA string containing the version of the operating system on which the process is executing.var physicalMemory: UInt64The amount of physical memory on the computer in bytes.var processIdentifier: Int32The identifier of the process (often called process ID).var processName: StringThe name of the process.var processorCount: IntThe number of processing cores available on the computer.var systemUptime: TimeIntervalThe amount of time the system has been awake since the last time it was restarted.var userName: StringReturns the account name of the current user.
Instance Methods
func isOperatingSystemAtLeast(OperatingSystemVersion) -> BoolReturns a Boolean value indicating whether the version of the operating system on which the process is executing is the same or later than the given version.
Type Properties
static let processInfo: ProcessInfoReturns the process information agent for the process.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype