Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbunt1tled/python-fast-api
/ memory_usage
Function
memory_usage
src/core/service/statistics.py:8–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
7
8
def
memory_usage() -> int:
9
process = psutil.Process(os.getpid())
10
memory_info = process.memory_info()
11
12
return
memory_info.rss
# type: ignore
13
14
15
def
format_memory_size(bytes_count: int) -> str:
Callers
1
render_statistics
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected