Apple launches Apple Store app in India

The Apple Store app provides customers with the most personalized way to shop for Apple’s innovative lineup of products and services. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I need information specific to CPU core. Is there any api exposed for mac

Suppose we have one CPU with 2 core , then I need information about

no.of.Processes , IO time,IDLE Time, System Time, Name of core for

specific core Level and not to CPU Level etc.

So I would you like to know is there any api expose for mac.

Mac mini 2018 or later

Posted on Dec 4, 2019 10:48 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 5, 2019 12:47 PM

You want the kernel proc APIs.


These are the include files:

#import <libproc.h>

#import <sys/proc_info.h>

#import <sys/types.h>


The functions you need are “host_processor_info” , “host_statistics”, and “proc_pidinfo”. This may not be exactly what you are looking for, but it’s all there is.


1 reply

I need information specific to CPU core. Is there any api exposed for mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.