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

Function load_monitoring_data

benchmarks/src/postprocessing/report.py:60–71  ·  view source on GitHub ↗
(directory: Path, cluster: Cluster)

Source from the content-addressed store, hash-verified

58
59
60def load_monitoring_data(directory: Path, cluster: Cluster) -> MonitoringData:
61 data = {}
62
63 for node, process in cluster.processes():
64 if "monitor" == process.key:
65 trace_file = node_monitoring_trace(directory, node.hostname)
66 if trace_file.exists():
67 with open(trace_file) as f:
68 data[node] = MonitoringRecord.deserialize_records(f)
69 else:
70 logging.warning(f"Monitoring trace for {node.hostname} not found at {trace_file}")
71 return data

Callers 1

loadMethod · 0.85

Calls 3

node_monitoring_traceFunction · 0.85
processesMethod · 0.80
deserialize_recordsMethod · 0.80

Tested by

no test coverage detected