From b73a5bd3d419f3f0854701edf1d6faa94df989ca Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 11 May 2020 14:14:23 +0200 Subject: plots.py: export get_y_data --- allocbench/benchmarks/dj_trace.py | 2 +- allocbench/plots.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/allocbench/benchmarks/dj_trace.py b/allocbench/benchmarks/dj_trace.py index d24a2b5..09adcd4 100644 --- a/allocbench/benchmarks/dj_trace.py +++ b/allocbench/benchmarks/dj_trace.py @@ -384,7 +384,7 @@ class BenchmarkDJTrace(Benchmark): file=summary_file) for perm in self.iterate_args(args=args): - cycles = abplt._get_y_data(self, "{cycles}", allocator, + cycles = abplt.get_y_data(self, "{cycles}", allocator, perm)[0] times = func_times_means[allocator][perm] rss = rss_means[allocator][perm] diff --git a/allocbench/plots.py b/allocbench/plots.py index 2d2bc8c..c73b737 100644 --- a/allocbench/plots.py +++ b/allocbench/plots.py @@ -133,7 +133,7 @@ def _eval_with_stat(bench, evaluation, alloc, perm, stat): return nan -def _get_y_data(bench, expression, allocator, perms, stat="mean", scale=None): +def get_y_data(bench, expression, allocator, perms, stat="mean", scale=None): """Helper to get the y data of an allocator for given permutations""" y_data = [] for perm in perms: -- cgit v1.2.3