[GHC] #5364: Access RTS flag values from inside Haskell programs
GHC
cvs-ghc at haskell.org
Sun Jul 31 01:31:12 CEST 2011
#5364: Access RTS flag values from inside Haskell programs
---------------------------------+------------------------------------------
Reporter: ezyang | Owner:
Type: feature request | Status: new
Priority: normal | Component: libraries/base
Version: 7.3 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
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://hackage.haskell.org/trac/ghc/ticket/5364>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list