Created
August 9, 2023 07:36
-
-
Save cb109/d81477957c84361eb778afc19135b17d to your computer and use it in GitHub Desktop.
Plot memory usage of any python process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://pypi.org/project/memory-profiler/ | |
pip install -U memory_profiler | |
mprof run --include-children --attach <pid> | |
mprof plot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment