MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / stop

Method stop

src/pyspector/stats.py:90–97  ·  view source on GitHub ↗

Stop timing and resource monitoring.

(self)

Source from the content-addressed store, hash-verified

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(

Callers 2

_execute_scanFunction · 0.95
watch_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected