JSON profiler reports
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 23 Feb 2017 18:22:48 +0000 (13:22 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Feb 2017 22:26:44 +0000 (17:26 -0500)
commita20433326eabd759502d9c170c3cc44ce6128a04
tree72ba807d45f05460dcfad02d437d9b79c0518481
parent0a77cedb914a67b8bd7c4af1f87714dc497fec3e
JSON profiler reports

This introduces a JSON output format for cost-centre profiler reports.
It's not clear whether this is really something we want to introduce
given that we may also move to a more Haskell-driven output pipeline in
the future, but I nevertheless found this helpful, so I thought I would
put it up.

Test Plan: Compile a program with `-prof -fprof-auto`; run with `+RTS
-pj`

Reviewers: austin, erikd, simonmar

Reviewed By: simonmar

Subscribers: duncan, maoe, thomie, simonmar

Differential Revision: https://phabricator.haskell.org/D3132
docs/users_guide/profiling.rst
includes/rts/Flags.h
libraries/base/GHC/RTS/Flags.hsc
libraries/base/changelog.md
rts/ProfilerReport.c
rts/ProfilerReportJson.c [new file with mode: 0644]
rts/ProfilerReportJson.h [new file with mode: 0644]
rts/Profiling.c
rts/RtsFlags.c