How do I read processor name from swift ?

Hi,

Is there any API for reading processor name from swift ?
What do you mean by “processor name”? The CPU? Or the GPU? And are you looking for a stable identifier? Or something to display to the user?

On what platform?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
CPU. Currently I'm using system_profiler for fetching the processor name. This is Hanging on some machines. I'm looking for an alternative method for the same.

Currently I'm using system_profiler for fetching the processor name.

What are you doing with that value? Displaying it to the user? Including it in a log? Changing some runtime behaviour?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
How do I read processor name from swift ?
 
 
Q