(self)
| 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: |
nothing calls this directly
no test coverage detected