We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import psutil, os, subprocess
pid = /find process pid/
for i in range(10000): print(round(psutil.Process(pid).cpu_percent(interval = 0.2), 1), round(psutil.Process(pid).memory_percent(memtype="rss"), 1)) }
{{{ When I run this script, I always get the same values: CPU 0.0 and Memory 0.3, why? what am I doing wrong? thank you }}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
#!/urs/bin/python
import psutil, os, subprocess
pid = /find process pid/
for i in range(10000):
print(round(psutil.Process(pid).cpu_percent(interval = 0.2), 1), round(psutil.Process(pid).memory_percent(memtype="rss"), 1))
}
Description
{{{
When I run this script, I always get the same values: CPU 0.0 and Memory 0.3, why? what am I doing wrong?
thank you
}}}
The text was updated successfully, but these errors were encountered: