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

Method show_results

memory_profiler.py:628–636  ·  view source on GitHub ↗
(self, stream=None)

Source from the content-addressed store, hash-verified

626 self.current_stack_level -= 1
627
628 def show_results(self, stream=None):
629 if stream is None:
630 stream = sys.stdout
631
632 for func, timestamps in self.functions.items():
633 function_name = "%s.%s" % (func.__module__, func.__name__)
634 for ts, level in zip(timestamps, self.stack[func]):
635 stream.write("FUNC %s %.4f %.4f %.4f %.4f %d\n" % (
636 (function_name,) + ts[0] + ts[1] + (level,)))
637
638
639class CodeMap(dict):

Callers 1

memory_profiler.pyFile · 0.80

Calls 2

itemsMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected