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

Memory usage by a program #55

Open
miguelgfierro opened this issue May 26, 2022 · 0 comments
Open

Memory usage by a program #55

miguelgfierro opened this issue May 26, 2022 · 0 comments

Comments

@miguelgfierro
Copy link
Owner

$ python
Python 3.5.6 |Anaconda, Inc.| (default, Jun  4 2021, 13:57:47)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> import os
>>> psutil.Process(os.getpid()).memory_info().rss
13553664
>>> int(psutil.Process(os.getpid()).memory_info().rss)/1024**2 #MB
12.92578125
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

1 participant