64 for filename
in os.listdir(path):
65 if filename.startswith(config)
and filename.endswith(
"time"):
66 ff = open(os.path.join(path, filename))
67 time = ff.read().rstrip(
"\n")
68 timing = TimingInfo(filename, time)
69 timings.append(timing)
73 ax = fig.add_subplot(111)
76 for timing
in timings:
77 if timing.events == 1:
78 times.append(timing.time)
79 algos.append(timing.algos)
81 plt.xlabel(
"Max algos in parallel")
82 plt.ylabel(
"runtime (s)")
83 plt.title(
"Brunel / CPUCruncher profiling.")
85 plt.savefig(
"timing.pdf")