Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pythonprofilers/memory_profiler
/ memory_profiler.py
File
memory_profiler.py
memory_profiler.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"Profile the memory usage of a Python program"
""
2
3
# .. we'll use this to pass it to the child script ..
4
_CLEAN_GLOBALS = globals().copy()
Callers
nothing calls this directly
Calls
8
LineProfiler
Class · 0.90
show_results
Function · 0.90
choose_backend
Function · 0.85
TimeStamper
Class · 0.85
_find_script
Function · 0.85
exec_with_profiler
Function · 0.85
run_module_with_profiler
Function · 0.85
show_results
Method · 0.80
Tested by
no test coverage detected