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

Add command line utility #750

Closed
techtonik opened this issue Feb 2, 2016 · 2 comments
Closed

Add command line utility #750

techtonik opened this issue Feb 2, 2016 · 2 comments

Comments

@techtonik
Copy link

Add python -m psutil that list the most frequent data that are requested from users while troubleshooting:

RAM:  419/3029 MB
CPU:  Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz
GPU:  Mobile Intel(R) GMA 4500MHD

GPU string for Intel is got from Adapter String, not from Adapter Type, which is "Mobile Intel(R) 4 Series Express Chipset Family".

@giampaolo
Copy link
Owner

I see little value in returning an arbitrary string which is not easily parse-able. If the user wants to do so he/she can simply do, for example:

python -c "import json, psutil; print(json.dumps(psutil.virtual_memory()))"
[10367352832, 4556836864, 56.0, 7951433728, 2415919104, 3891007488, 1778888704, 229965824, 1910951936]

...and decide what info to retrieve and what serialization format to use.
Also, psutil does not provide those stats about CPU and GPU.

@techtonik
Copy link
Author

I see little value in returning an arbitrary string which is not easily parse-able.

Is is not return - it is just a small helper for user space convenience. See godotengine/godot#3546 for an example of how it should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants