MCPcopy Create free account
hub / github.com/1jehuang/jcode / extract_timing_lines

Function extract_timing_lines

scripts/profile_single_spawn.py:105–110  ·  view source on GitHub ↗
(log_path: Path)

Source from the content-addressed store, hash-verified

103
104
105def extract_timing_lines(log_path: Path) -> list[str]:
106 timing_lines = []
107 for line in log_path.read_text(errors="replace").splitlines():
108 if "[TIMING]" in line or "Startup Profile (" in line:
109 timing_lines.append(line)
110 return timing_lines
111
112
113def profile_single_spawn(binary: str, cwd: str, timeout_s: float) -> dict:

Callers 1

profile_single_spawnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected