MCPcopy Index your code
hub / github.com/github/copilot-sdk / log_timing

Function log_timing

python/copilot/_diagnostics.py:14–29  ·  view source on GitHub ↗
(
    logger: logging.Logger,
    level: int,
    message: str,
    start: float,
    *,
    exc_info: bool = False,
    **fields: Any,
)

Source from the content-addressed store, hash-verified

12
13
14def log_timing(
15 logger: logging.Logger,
16 level: int,
17 message: str,
18 start: float,
19 *,
20 exc_info: bool = False,
21 **fields: Any,
22) -> None:
23 if logger.isEnabledFor(level):
24 logger.log(
25 level,
26 message,
27 extra={"elapsed_ms": elapsed_ms(start), **fields},
28 exc_info=exc_info,
29 )

Callers 15

startMethod · 0.85
stopMethod · 0.85
_initialize_sessionMethod · 0.85
create_sessionMethod · 0.85
resume_sessionMethod · 0.85
_start_cli_serverMethod · 0.85
_connect_to_serverMethod · 0.85
_connect_via_tcpMethod · 0.85
sendMethod · 0.85
handlerMethod · 0.85
send_and_waitMethod · 0.85

Calls 2

elapsed_msFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…