MCPcopy Index your code
hub / github.com/pythonprofilers/memory_profiler / set_state_for

Function set_state_for

mprof.py:731–736  ·  view source on GitHub ↗
(function_names, level)

Source from the content-addressed store, hash-verified

729 state = {}
730
731 def set_state_for(function_names, level):
732 for fn in function_names:
733 label = ".".join(fn.split(".")[-level:])
734 label_state = state.setdefault(label, {"functions": [],
735 "level": level})
736 label_state["functions"].append(fn)
737
738 set_state_for(dotted_function_names, 1)
739

Callers 1

function_labelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected