-
Notifications
You must be signed in to change notification settings - Fork 114
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
Make CpuInfo iterable #276
Comments
Hi 👋 Sorry, I'm not quite understanding your use-case, and why it's cumbersome with the current API. Can you elaborate? It's not obvious to me why iterating over |
Iterating over the public Vec |
I have a use case where I want to check all cores in
/proc/cpuinfo
for certain properties.While it is currently possible to iterate over the cores by iterating over the range of CPUs and then accessing each one with the respective getter functions that take the index, this is very ugly and cumbersome.
Hence, I suggest to implement an iterator for
CpuInfo
that yields structs representing information of the respective core.The text was updated successfully, but these errors were encountered: