summaryrefslogtreecommitdiff
path: root/hwbinder_benchmark
diff options
context:
space:
mode:
authorHsin-Yi Chen <hsinyichen@google.com>2017-05-31 19:55:37 +0800
committerHsin-Yi Chen <hsinyichen@google.com>2017-06-02 19:10:41 +0800
commitd46cbebc67da36d452e4c1ee68e3dd1406789472 (patch)
tree86603f0fa6a42110b6f6477062b2d3612c65c127 /hwbinder_benchmark
parent020c924dfd4b0c4944e34272eb5eae4096748e75 (diff)
downloadperformance-d46cbebc67da36d452e4c1ee68e3dd1406789472.tar.gz
Report benchmark result as table
Add methods to convert hwbinder latency results from JSON object to table. For Google benchmark results, call benchmark_parser to convert. Bug: 38283802 Test: vts-tradefed run commandAndExit vts -m BinderPerformanceTest Change-Id: Iec1db80497b55679fba54e91cc1058de840bbbd7
Diffstat (limited to 'hwbinder_benchmark')
-rw-r--r--hwbinder_benchmark/HwBinderPerformanceTest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/hwbinder_benchmark/HwBinderPerformanceTest.py b/hwbinder_benchmark/HwBinderPerformanceTest.py
index bc5aade..c72f634 100644
--- a/hwbinder_benchmark/HwBinderPerformanceTest.py
+++ b/hwbinder_benchmark/HwBinderPerformanceTest.py
@@ -130,12 +130,14 @@ class HwBinderPerformanceTest(base_test.BaseTestClass):
"HwBinderPerformanceTest failed.")
parser = benchmark_parser.GoogleBenchmarkJsonParser(
results[const.STDOUT][1])
- label_result = parser.getArguments()
- value_result = parser.getRealTime()
+ label_result = parser.GetArguments()
+ value_result = parser.GetRealTime()
+ table_name = "hwbinder_vector_roundtrip_latency_benchmark_%sbits" % bits
+ self.addTableToResult(table_name, parser.ToTable())
# To upload to the web DB.
self.web.AddProfilingDataLabeledVector(
- "hwbinder_vector_roundtrip_latency_benchmark_%sbits" % bits,
+ table_name,
label_result,
value_result,
x_axis_label="Message Size (Bytes)",