diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-08-22 19:12:43 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-08-22 19:12:43 +0200 |
| commit | 51ba31ed4a2548fb12d9e1e2f2115213a0aaa1f4 (patch) | |
| tree | bc4b87db25e6105f22e66e80d93f232e6da411e4 /mysql.py | |
| parent | d0dc05ff16dcc9e591d3c8c65ea04c5ceaa3fbcc (diff) | |
| download | allocbench-51ba31ed4a2548fb12d9e1e2f2115213a0aaa1f4.tar.gz allocbench-51ba31ed4a2548fb12d9e1e2f2115213a0aaa1f4.zip | |
add histogram results to the results dict and fix summary
Diffstat (limited to 'mysql.py')
| -rw-r--r-- | mysql.py | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -186,10 +186,10 @@ class Benchmark_MYSQL( Benchmark ): result["rssmax"] = l.replace("VmHWM:", "").strip().split()[0] break - if not thread in self.results: - self.results[tname][thread] = [result] - else: - self.results[tname][thread].append(result) + if not thread in self.results: + self.results[tname][thread] = [result] + else: + self.results[tname][thread].append(result) print() @@ -246,16 +246,17 @@ class Benchmark_MYSQL( Benchmark ): plt.clf() # Histogram - for mid, measures in self.results.items(): - if mid[0] == "chattymalloc": - hist = [(n, s) for s,n in measures[0]["hist"].items()] - hist.sort() - print("Histogram for", mid[1], "threads:") - print(hist) + del(self.results["chattymalloc"]["heap_start"]) + for thread, measures in self.results["chattymalloc"].items(): + print(measures) + hist = [(n, s) for s, n in measures[0]["hist"].items()] + hist.sort() + print("Histogram for", thread, "threads:") + print(hist) # Memusage y_mapping = {v : i for i, v in enumerate(nthreads)} - for target in targets: + for target in [t for t in targets if t != "chattymalloc"]: y_vals = [0] * len(nthreads) for thread, measures in [(t, d) for t, d in self.results[target].items() if t != "heap_start"]: d = [int(m["rssmax"]) for m in measures] |
