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

Function load_profiling_data

benchmarks/src/postprocessing/report.py:42–57  ·  view source on GitHub ↗
(cluster: Cluster)

Source from the content-addressed store, hash-verified

40
41
42def load_profiling_data(cluster: Cluster) -> ProfilingData:
43 data = {}
44
45 for _, process in cluster.processes():
46 if PROFILER_METADATA_KEY in process.metadata:
47 records = process.metadata[PROFILER_METADATA_KEY]
48 process_records = {}
49
50 for tag, file in records.items():
51 file = Path(file)
52 if file.is_file():
53 process_records[tag] = file
54 else:
55 logging.warning(f"Profiler record `{tag}` for `{process.key}` not found at {file}")
56 data[process.key] = process_records
57 return data
58
59
60def load_monitoring_data(directory: Path, cluster: Cluster) -> MonitoringData:

Callers 1

loadMethod · 0.85

Calls 1

processesMethod · 0.80

Tested by

no test coverage detected