MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / log_performance

Method log_performance

utils/structured_logger.py:146–150  ·  view source on GitHub ↗

Log performance metrics.

(self, operation: str, duration: float, correlation_id: str = None, **kwargs)

Source from the content-addressed store, hash-verified

144 event_type=event_type, **kwargs)
145
146 def log_performance(self, operation: str, duration: float, correlation_id: str = None, **kwargs):
147 """Log performance metrics."""
148 self._log(LogType.PERFORMANCE, LogLevel.INFO,
149 f"Operation {operation} completed in {duration:.3f}s",
150 correlation_id, operation=operation, duration=duration, **kwargs)
151
152 def log_workflow_event(self, workflow_id: str, event_type: str, message: str,
153 correlation_id: str = None, **kwargs):

Callers

nothing calls this directly

Calls 1

_logMethod · 0.95

Tested by

no test coverage detected