Access RTS flag values from inside Haskell programs
|Reported by:||ezyang||Owned by:|
|Type of failure:||None/Unknown||Difficulty:|
|Test Case:||Blocked By:|
Strictly speaking, it is already possible to do this since includes/rts/Flags.h exports RtsFlags?, which can be accessed with a mini wrapper function. We should add this wrapper function so we can import it, and then write code which reads out the contents of all the various parameters so that users can introspect this at runtime. Maybe put them in the GHC.RTS module.