When wrapped, logs memory statistics of the Popen process argument. This base-class version can be used as a null object to turn off the feature, yielding null-object stats.
(self, process)
| 46 | class EmptyProcessLogger: |
| 47 | @contextmanager |
| 48 | def log_stats(self, process): |
| 49 | """When wrapped, logs memory statistics of the Popen process argument. |
| 50 | |
| 51 | This base-class version can be used as a null object to turn off the |
| 52 | feature, yielding null-object stats. |
| 53 | """ |
| 54 | yield ProcessStats() |
| 55 | |
| 56 | @contextmanager |
| 57 | def log_system_memory(self, log_path): |