Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sysctl for detecting CPU features in case of macOS #23

Open
zacky1972 opened this issue Nov 15, 2020 · 0 comments
Open

Use sysctl for detecting CPU features in case of macOS #23

zacky1972 opened this issue Nov 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@zacky1972
Copy link
Contributor

sysctl instead of current implementation can show detailed CPU model:

% sysctl machdep.cpu.brand_string
machdep.cpu.brand_string: Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
% sysctl machdep.cpu.core_count  
machdep.cpu.core_count: 6
% sysctl machdep.cpu.thread_count
machdep.cpu.thread_count: 6

So, CpuInfo should adopt it.

@zacky1972 zacky1972 added the enhancement New feature or request label Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant