Re: [GHC] #5364: Access RTS flag values from inside Haskell programs

#5364: Access RTS flag values from inside Haskell programs -------------------------------------+------------------------------------ Reporter: ezyang | Owner: Type: feature request | Status: new Priority: normal | Milestone: 7.6.2 Component: libraries/base | Version: 7.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by ezyang): * cc: hvr (added) * difficulty: => Unknown Old description:
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.
New description: 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. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/5364#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC