how can I get
- CPU cores and type
- GPU core and type
- storage and memory
- current wifi, recieved&sent packages
- etc
in swift on macOS?
how can I get
in swift on macOS?
get CPU, GPU, Internet connection, etc
What’s your goal here? To display to the user? To capture in some sort of log? Or something else?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
OK I've already find out all about CPU, Storage, Battery, thermal state in github
I also found out that you can use airport to find out the current WiFi connected and its password.
How to get package recieved/sent from the device?
Now how can I get the GPU's parameters? Using Metal?
I also found out that you can use airport to find out the current WiFi connected and its password.
You mean the command-line tool? If so, I recommend that you switch to using the CoreWLAN framework.
How to get package recieved/sent from the device?
There isn’t a great API for that. Search DevForums for ifi_ibytes
/ ifi_obytes
for a bunch of background to this. If you have questions, start a new thread, making sure to tag it with Network so that I see it.
Now how can I get the GPU's parameters? Using Metal?
I can’t help you with that because it’s far outside my area of expertise. Again, I recommend a new thread, this time tagged with Metal.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"