Stop timing and resource monitoring.
(self)
| 88 | self._launch_monitor() |
| 89 | |
| 90 | def stop(self) -> None: |
| 91 | """Stop timing and resource monitoring.""" |
| 92 | self._t_end = time.perf_counter() |
| 93 | self._stop_evt.set() |
| 94 | if self._mon_thread: |
| 95 | self._mon_thread.join(timeout=2.0) |
| 96 | if self._cpu_samples: |
| 97 | self.avg_cpu_percent = sum(self._cpu_samples) / len(self._cpu_samples) |
| 98 | |
| 99 | |
| 100 | def record_files( |
no outgoing calls
no test coverage detected