Add residency profiling testing infrastructure to test suite
Record GHC residency when compiling head.hackage and export to the ghc_perf db.
Motivation
Ensuring no regressions / space leaks are introduced with --make mode.
This is the first step: simply collecting the relevant data and making it available for future work.
Rough implementation sketch
- Emit eventlog while building head.hackage
- Ingest log
- Put stats in db (ghc_perf)
import code: (todo: move to ghc/ namespace?) https://gitlab.haskell.org/bgamari/ghc-perf-import