diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-08-13 19:22:30 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-08-13 19:22:30 +0200 |
| commit | c4347a4dc5ea8e87cf6230addcdff5a5b54ab82b (patch) | |
| tree | df9c6e3ac2d535b26191d9c937c2efea5fcdfb99 | |
| parent | 694dc9c80887c143a546b7988399a38e452d4bb6 (diff) | |
| download | allocbench-c4347a4dc5ea8e87cf6230addcdff5a5b54ab82b.tar.gz allocbench-c4347a4dc5ea8e87cf6230addcdff5a5b54ab82b.zip | |
fix parsing of chattymallocs output
| -rw-r--r-- | mysql.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -155,7 +155,12 @@ class Benchmark_MYSQL( Benchmark ): with open(log, "rb") as f: hist = {} for l in f.readlines(): - n = int(str(l).replace("chattymalloc: ", "")) + l = str(l, "utf-8").replace("chattymalloc: ", "") + try: + n = int(l) + except ValueError: + continue + if not n in hist: hist[n] = 0 hist[n] += 1 |
