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

Method record_response_time

tests/performance/test_load.py:89–95  ·  view source on GitHub ↗

Record response time for operation.

(self, operation: str, latency: float)

Source from the content-addressed store, hash-verified

87 return self.get_summary()
88
89 def record_response_time(self, operation: str, latency: float):
90 """Record response time for operation."""
91 self.metrics["response_times"].append({
92 "operation": operation,
93 "latency": latency,
94 "timestamp": time.perf_counter()
95 })
96
97 def record_error(self, error_type: str):
98 """Record error occurrence."""

Callers 15

client_load_patternMethod · 0.80
client_messagingMethod · 0.80
active_messagingMethod · 0.80
sustained_client_loadMethod · 0.80
connect_clientMethod · 0.80
send_burst_messageMethod · 0.80
client_reconnectionMethod · 0.80
join_leave_cycleMethod · 0.80
send_overflow_messageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected