MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / run_mrc_binary

Function run_mrc_binary

scripts/plot_appr_mrc.py:22–31  ·  view source on GitHub ↗
(binary, cmd)

Source from the content-addressed store, hash-verified

20PLOT_COLORS = ['blue', 'green', 'red', 'purple', 'orange', 'brown']
21
22def run_mrc_binary(binary, cmd):
23
24 print("Running MRC binary with command:")
25 print(" ".join(cmd))
26 result = subprocess.run(cmd)
27 if result.returncode != 0:
28 print("Error: MRC binary exited with code", result.returncode)
29 sys.exit(result.returncode)
30 else:
31 print("MRC binary finished successfully.")
32
33def plot_shards_multirate(out_files, plot_path):
34 plt.figure(figsize=(10,6))

Callers 1

mainFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected