benchtests: Improve readability of JSON output
authorWill Newton <will.newton@linaro.org>
Tue, 8 Apr 2014 09:18:16 +0000 (10:18 +0100)
committerWill Newton <will.newton@linaro.org>
Fri, 11 Apr 2014 15:05:03 +0000 (16:05 +0100)
commit970c602aa60bb29845c445c18d7b20f7c4552b78
tree734a1f22c1c51cf3cd9d8c94e42a0f0e4a41ab5a
parent36875b06e0ed7f137190b9228bef553adfc338ba
benchtests: Improve readability of JSON output

Add a small library to print JSON values and use it to improve the
readability of the benchmark output and the readability of the
benchmark code.

ChangeLog:

2014-04-11  Will Newton  <will.newton@linaro.org>

* benchtests/Makefile (extra-objs): Add json-lib.o.
(bench-func): Tidy up JSON output.
* benchtests/bench-skeleton.c: Include json-lib.h.
(main): Use JSON library functions to do output of
benchmark results.
* benchtests/bench-timing-type.c (main): Output the
timing type simply, leaving formatting to the user.
* benchtests/json-lib.c: New file.
* benchtests/json-lib.h: Likewise.
ChangeLog
benchtests/Makefile
benchtests/bench-skeleton.c
benchtests/bench-timing-type.c
benchtests/json-lib.c [new file with mode: 0644]
benchtests/json-lib.h [new file with mode: 0644]