MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / ClusterReport

Class ClusterReport

benchmarks/src/postprocessing/report.py:21–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20@dataclasses.dataclass(frozen=True)
21class ClusterReport:
22 cluster: Cluster
23 monitoring: MonitoringData
24 profiling_data: ProfilingData
25 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
42def load_profiling_data(cluster: Cluster) -> ProfilingData:

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected