-
Notifications
You must be signed in to change notification settings - Fork 34
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
System info #98
System info #98
Conversation
…gging. Refactored code for getting screen resolution to remove deprecations.
…se parameters are needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I added some suggestions
------- | ||
(width, height) | ||
""" | ||
screen = pyglet.canvas.get_display().get_default_screen() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to change slightly to work with the updated dependencies
|
||
mem = psutil.virtual_memory() | ||
def get_system_info() -> dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - this is exactly what Barry et al. asked for!
'platform-version': platform.version(), | ||
'architecture': platform.machine(), | ||
'processor': platform.processor(), | ||
'cpu_count': os.cpu_count(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we can get the CPU name in most cases. It would be worth adding! https://github.com/workhorsy/py-cpuinfo#raw-fields
Overview
Code spike to log more detailed system information.
Ticket
https://www.pivotaltracker.com/story/show/175193913
Contributions
Test