Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pythonprofilers/memory_profiler
/ level_to_saturation
Function
level_to_saturation
mprof.py:574–575 ·
view source on GitHub ↗
(level)
Source
from the content-addressed store, hash-verified
572
else
:
573
stack_size = 0
574
def
level_to_saturation(level):
575
return
1 - 0.75 * level / stack_size
576
577
colors = [
578
itertools.cycle([
Callers
1
flame_plotter
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected