52 for filename
in os.listdir(path):
53 if filename.startswith(config)
and filename.endswith(
"time"):
54 ff = open(os.path.join(path, filename))
55 time = ff.read().rstrip(
"\n")
57 timings.append(timing)
61 ax = fig.add_subplot(111)
64 for timing
in timings:
65 if timing.events == 1:
66 times.append(timing.time)
67 algos.append(timing.algos)
69 plt.xlabel(
"Max algos in parallel")
70 plt.ylabel(
"runtime (s)")
71 plt.title(
"Brunel / CPUCruncher profiling.")
73 plt.savefig(
"timing.pdf")
def prepareTimingPlots(config="BrunelScenario", path="../options")