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

Method __enter__

memory_profiler.py:518–525  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 self.include_children = include_children
517
518 def __enter__(self):
519 if self.ts is not None:
520 self.ts.current_stack_level += 1
521 self.ts.stack[self.func].append(self.ts.current_stack_level)
522
523 self.timestamps.append(
524 _get_memory(os.getpid(), self.backend, timestamps=True,
525 include_children=self.include_children, filename=self.filename))
526
527 def __exit__(self, *args):
528 if self.ts is not None:

Callers

nothing calls this directly

Calls 1

_get_memoryFunction · 0.85

Tested by

no test coverage detected