(directory: Path)
| 26 | |
| 27 | @staticmethod |
| 28 | def load(directory: Path) -> "ClusterReport": |
| 29 | cluster_file = directory / CLUSTER_FILENAME |
| 30 | with open(cluster_file) as f: |
| 31 | cluster = Cluster.deserialize(f) |
| 32 | monitoring = load_monitoring_data(directory, cluster) |
| 33 | profiling_data = load_profiling_data(cluster) |
| 34 | return ClusterReport( |
| 35 | cluster=cluster, |
| 36 | monitoring=monitoring, |
| 37 | profiling_data=profiling_data, |
| 38 | directory=directory, |
| 39 | ) |
| 40 | |
| 41 | |
| 42 | def load_profiling_data(cluster: Cluster) -> ProfilingData: |