(log_path: Path)
| 103 | |
| 104 | |
| 105 | def 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 | |
| 113 | def profile_single_spawn(binary: str, cwd: str, timeout_s: float) -> dict: |
no outgoing calls
no test coverage detected