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

Method call_on_stack

memory_profiler.py:620–626  ·  view source on GitHub ↗
(self, func, *args, **kwds)

Source from the content-addressed store, hash-verified

618
619 @contextmanager
620 def call_on_stack(self, func, *args, **kwds):
621 self.current_stack_level += 1
622 self.stack[func].append(self.current_stack_level)
623
624 yield func(*args, **kwds)
625
626 self.current_stack_level -= 1
627
628 def show_results(self, stream=None):
629 if stream is None:

Callers 1

fMethod · 0.95

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected