Skip to content

Instantly share code, notes, and snippets.

@brunokim
Created June 9, 2022 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunokim/ac705a5907c8ec145009788a0fcb98a2 to your computer and use it in GitHub Desktop.
Save brunokim/ac705a5907c8ec145009788a0fcb98a2 to your computer and use it in GitHub Desktop.
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