| 63 | print('%d,%f' % sample) |
| 64 | |
| 65 | def plot_time(self, name): |
| 66 | if not name in self.samples: |
| 67 | return |
| 68 | |
| 69 | x = [] |
| 70 | y = [] |
| 71 | |
| 72 | any_valid_samples = False |
| 73 | |
| 74 | for sample in self.samples[name]: |
| 75 | if sample[1] == 0: |
| 76 | continue |
| 77 | |
| 78 | x.append(sample[0]) |
| 79 | y.append(sample[1]) |
| 80 | any_valid_samples = True |
| 81 | |
| 82 | if not any_valid_samples: |
| 83 | return |
| 84 | |
| 85 | pylab.loglog(x, y, marker='o', label=name) |
| 86 | pylab.xlabel("Size") |
| 87 | pylab.ylabel("Time (ms)") |
| 88 | pylab.title(self.name) |
| 89 | |
| 90 | def plot_rate(self, name): |
| 91 | if not name in self.samples: |