In [1]:
%pylab inline
import sys
sys.path.append('..')
import trappy.wa
At the end of running an agenda, Workload Automation produces a summary of the results for the workloads. trappy can parse the results and tabulate it in a notebook. Additionally, an optional id argument an be passed which if supplied overrides the id in the results file.
In [2]:
results = trappy.wa.get_results("../tests")
results
Out[2]:
In addition to displaying tabulated results, trappy can graphically plot individual benchmarks as well as all the benchmarks in the result.
In [3]:
results.plot_results_benchmark("antutu")
In [4]:
results.plot_results()
trappy allows combination of results across different agenda runs as well. This is useful if you want to compare / display results from different runs of Workload Automation
In [5]:
unconstrained = trappy.wa.get_results("../tests/unconstrained.csv", name="Unconstrained")
constrained = trappy.wa.get_results("../tests/constrained.csv", name="Constrained")
results = trappy.wa.combine_results([unconstrained, constrained])
results
Out[5]:
In [6]:
results.plot_results()