Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/rocky/python-uncompyle6
/ __mem_sage
Function
__mem_sage
uncompyle6/main.py:512–516 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
510
if
sys.platform.startswith(
"linux"
) and os.uname()[2][:2] in [
"2."
,
"3."
,
"4."
]:
511
512
def
__mem_sage():
513
mi = open(
"/proc/self/stat"
,
"r"
)
514
mu = mi.readline().split()[22]
515
mi.close()
516
return
int(mu) / 1000000
517
518
else
:
519
Callers
nothing calls this directly
Calls
2
open
Function · 0.85
close
Method · 0.45
Tested by
no test coverage detected