rts/Profiling: Kill a few globals and add consts
authorBen Gamari <bgamari.foss@gmail.com>
Sun, 12 Feb 2017 00:20:56 +0000 (19:20 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 12 Feb 2017 00:21:04 +0000 (19:21 -0500)
commit1a14d384136ce91d3469f462d192c3721b27fbd5
treeb4dbbb38925ae3cf0d5a75c0d44a150b66110ffa
parent26eaa7ecde288b9dc123f3c120e70b2cf18b4e4a
rts/Profiling: Kill a few globals and add consts

Previously it was quite difficult to follow the dataflow through this
file due to global mutation and rather non-descriptive types.

This is a cleanup in preparation for factoring out the report-generating
logic, which is itself in preparation for somedayteaching the profiler
to produce more machine-readable reports (JSON perhaps?).

Test Plan: Validate

Reviewers: austin, erikd, simonmar

Reviewed By: simonmar

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3096
rts/Profiling.c
rts/Profiling.h