I want something that will receive me the processes details, like I receive with ‘ps’ command in linux,
get 2 basically types- CPU usage and Memory Used.
today to get this I am using uncomfortable way:
subprocess.check_output(["ps", "aux"])
……..
and parse the output of this..
any idea or solution way is acceptable!
Thanks!
I would suggest that you use psutil
Typical usage and example for a process:
To get all processes
I think you can also get more information like this from this module.