Created
June 9, 2022 12:46
-
-
Save brunokim/ac705a5907c8ec145009788a0fcb98a2 to your computer and use it in GitHub Desktop.
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
def memory_working_set() -> int: | |
usage = memory_usage() | |
inactive = memory_stats()['inactive_file'] | |
return usage - inactive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment