rts/Profiling: Factor out report generation
authorBen Gamari <bgamari.foss@gmail.com>
Sun, 12 Feb 2017 00:21:22 +0000 (19:21 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 12 Feb 2017 00:58:34 +0000 (19:58 -0500)
commit56c9bb39246f9ffd8ed41a0656bfe8e60d23be57
tree1887b6def9a39b52b99c9f10eb4416e4fe65fd14
parent1a14d384136ce91d3469f462d192c3721b27fbd5
rts/Profiling: Factor out report generation

Here we move the actual report generation logic to
`rts/ProfilerReport.c`. This break is actually quite clean,

    void writeCCSReport( FILE *prof_file, CostCentreStack const *ccs,
                         ProfilerTotals totals );

This is more profiler refactoring in preparation for machine-readable
output.

Test Plan: Validate

Reviewers: austin, erikd, simonmar

Reviewed By: simonmar

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3097
rts/ProfilerReport.c [new file with mode: 0644]
rts/ProfilerReport.h [new file with mode: 0644]
rts/Profiling.c
rts/Profiling.h