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

Method load

benchmarks/src/postprocessing/report.py:28–39  ·  view source on GitHub ↗
(directory: Path)

Source from the content-addressed store, hash-verified

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 14

on_filesFunction · 0.80
test_version_mismatchFunction · 0.80
test_generate_accessFunction · 0.80
render_size_latex_tableFunction · 0.80
cluster_serveFunction · 0.80
cluster_generateFunction · 0.80

Calls 4

load_monitoring_dataFunction · 0.85
load_profiling_dataFunction · 0.85
ClusterReportClass · 0.85
deserializeMethod · 0.45

Tested by 6

test_version_mismatchFunction · 0.64
test_generate_accessFunction · 0.64