Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ memory
Function
memory
recipes/Python/286222_Memory_usage/recipe-286222.py:28–31 ·
view source on GitHub ↗
Return memory usage in bytes.
(since=0.0)
Source
from the content-addressed store, hash-verified
26
27
28
def
memory(since=0.0):
29
''
&
#x27;Return memory usage in bytes.
30
''
&
#x27;
31
return
_VmB(
'VmSize:'
) - since
32
33
34
def
resident(since=0.0):
Callers
nothing calls this directly
Calls
1
_VmB
Function · 0.85
Tested by
no test coverage detected