MCPcopy Index your code
hub / github.com/python/mypy / dump_timing_stats

Function dump_timing_stats

mypy/build.py:4196–4200  ·  view source on GitHub ↗

Dump timing stats for each file in the given graph.

(path: str, graph: Graph)

Source from the content-addressed store, hash-verified

4194
4195
4196def dump_timing_stats(path: str, graph: Graph) -> None:
4197 """Dump timing stats for each file in the given graph."""
4198 with open(path, "w") as f:
4199 for id in sorted(graph):
4200 f.write(f"{id} {graph[id].time_spent_us}\n")
4201
4202
4203def dump_line_checking_stats(path: str, graph: Graph) -> None:

Callers 1

build_innerFunction · 0.85

Calls 2

sortedFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…