(overall_stats: dict[str, float], new_stats: dict[str, Any])
| 288 | |
| 289 | |
| 290 | def combine_stats(overall_stats: dict[str, float], new_stats: dict[str, Any]) -> dict[str, float]: |
| 291 | INTERESTING_KEYS = ["build_time", "gc_time"] |
| 292 | # For now, we only support float keys |
| 293 | relevant_stats: dict[str, float] = {} |
| 294 | for key in INTERESTING_KEYS: |
| 295 | if key in new_stats: |
| 296 | value = float(new_stats[key]) |
| 297 | relevant_stats[key] = value |
| 298 | overall_stats[key] = overall_stats.get(key, 0.0) + value |
| 299 | return relevant_stats |
| 300 | |
| 301 | |
| 302 | def cleanup(temp_repo_path: str, mypy_cache_path: str) -> None: |
searching dependent graphs…