Load build information from a JSON file. Args: build_info_path (Path): Path to the build_info.json file. Returns: dict: Parsed JSON data.
(build_info_path: Path)
| 90 | |
| 91 | |
| 92 | def load_build_info(build_info_path: Path) -> dict[str, Any]: |
| 93 | """ |
| 94 | Load build information from a JSON file. |
| 95 | |
| 96 | Args: |
| 97 | build_info_path (Path): Path to the build_info.json file. |
| 98 | |
| 99 | Returns: |
| 100 | dict: Parsed JSON data. |
| 101 | """ |
| 102 | if not build_info_path.exists(): |
| 103 | raise FileNotFoundError(f"Build info JSON not found at '{build_info_path}'") |
| 104 | return json.loads(build_info_path.read_text()) |
| 105 | |
| 106 | |
| 107 | def display_function_sizes( |