This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/4] Make bench.out in json format
- From: Rich Felker <dalias at aerifal dot cx>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Will Newton <will dot newton at linaro dot org>, libc-alpha <libc-alpha at sourceware dot org>
- Date: Tue, 25 Mar 2014 11:41:47 -0400
- Subject: Re: [PATCH 1/4] Make bench.out in json format
- Authentication-results: sourceware.org; auth=none
- References: <20140325102859 dot GA1850 at spoyarek dot pnq dot redhat dot com> <CANu=DmjwbV-ekyagafSQjan7+HRpZCBu7omCUWU7yMtoo5GJ_g at mail dot gmail dot com> <20140325115813 dot GF1850 at spoyarek dot pnq dot redhat dot com>
On Tue, Mar 25, 2014 at 05:28:13PM +0530, Siddhesh Poyarekar wrote:
> On Tue, Mar 25, 2014 at 11:48:24AM +0000, Will Newton wrote:
> > In principle this seems ok to me, although it does seem to make the
> > output quite ugly for the human reader. Would it be possible to get
> > the layout a bit tidier? i.e. indentation and newlines.
>
> I half-heartedly tried to do it initially and gave up midway. I could
> do a more deliberate pass on top of these patches to get the
> formatting cleaner to read than it currently is.
It should be possible to 'pretty-print' json with a few lines of C (or
if you prefer, awk or perl or something) that just tracks the nesting
depth and adds the appropriate indention.
> Of course, the more important question here is whether there's anyone
> who hates the idea of using JSON as the preferred format. Going
> forward I think we ought to use JSON formats to describe the string
> test outputs as well.
While you're at it, can you change that hideous malloc_info interface
that outputs xml to use json? ;-)
Rich