MCPcopy Create free account
hub / github.com/nlweb-ai/NLWeb / stop_monitoring

Method stop_monitoring

tests/performance/test_load.py:81–87  ·  view source on GitHub ↗

Stop monitoring and return final metrics.

(self)

Source from the content-addressed store, hash-verified

79 self.monitor_task = asyncio.create_task(monitor_loop())
80
81 def stop_monitoring(self):
82 """Stop monitoring and return final metrics."""
83 self.monitoring = False
84 if hasattr(self, 'monitor_task'):
85 self.monitor_task.cancel()
86
87 return self.get_summary()
88
89 def record_response_time(self, operation: str, latency: float):
90 """Record response time for operation."""

Calls 1

get_summaryMethod · 0.95

Tested by

no test coverage detected