aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/fd.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 15:54:25 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 15:54:25 +0200
commitfe26e05dfba7b6c4a3e28b2be6dc369426277790 (patch)
treee724a1264ea3e1f07f327d6d27e0c5afafa09d23 /src/benchmarks/fd.py
parent57d94cd47a4a5c187aed2245b0f213ba520f2405 (diff)
downloadallocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.tar.gz
allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.zip
unify plotting code
Now there is only a single plot function which takes a plot type as well as some plot and figure options.
Diffstat (limited to 'src/benchmarks/fd.py')
-rw-r--r--src/benchmarks/fd.py26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/benchmarks/fd.py b/src/benchmarks/fd.py
index 6f88878..1fdd96a 100644
--- a/src/benchmarks/fd.py
+++ b/src/benchmarks/fd.py
@@ -67,19 +67,25 @@ class BenchmarkFd(Benchmark):
os.link(src, dest)
def summary(self):
- plt.barplot_single_arg(self,
- "{task-clock}",
- ylabel="runtime in ms",
- title="fd runtime",
- file_postfix="runtime")
+ plt.plot(self,
+ "{task-clock}",
+ plot_type='bar',
+ fig_options={
+ 'ylabel': "runtime in ms",
+ 'title': "fd runtime",
+ },
+ file_postfix="runtime")
plt.export_stats_to_dataref(self, "task-clock")
- plt.barplot_single_arg(self,
- "{VmHWM}",
- ylabel="VmHWM in KB",
- title="fd memusage",
- file_postfix="memusage")
+ plt.plot(self,
+ "{VmHWM}",
+ plot_type='bar',
+ fig_options={
+ 'ylabel': "VmHWM in KB",
+ 'title': "fd memusage"
+ },
+ file_postfix="memusage")
plt.export_stats_to_dataref(self, "VmHWM")