[GHC] #881: Improve space profiling for references

GHC cvs-ghc at haskell.org
Fri Feb 22 11:19:31 CET 2013


#881: Improve space profiling for references
---------------------------------+------------------------------------------
    Reporter:  simonpj           |       Owner:                  
        Type:  feature request   |      Status:  new             
    Priority:  normal            |   Milestone:  _|_             
   Component:  Profiling         |     Version:  6.4.2           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by simonmar):

 The example still reports "SYSTEM", but I don't see an obvious reason why,
 so not closing this ticket.

 Updated code:
 {{{
 {-# OPTIONS_GHC -fprof-auto #-}
 import Control.Monad
 import Data.IORef
 import System.Environment

 main = do
   [n] <- getArgs
   replicateM (read n) (newIORef [1,2,3])
 }}}

 {{{
 $ ./881 10000000 +RTS -hr -K1g -S
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/881#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list