[GHC] #13686: Compile a few modules for profiling unconditionally

GHC ghc-devs at haskell.org
Thu May 11 05:10:02 UTC 2017


#13686: Compile a few modules for profiling unconditionally
-------------------------------------+-------------------------------------
        Reporter:  dfeuer            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Build System      |              Version:  8.2.1-rc2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by dfeuer:

@@ -13,1 +13,1 @@
- and the `Data.Typeable.Internal` for profiling in all cases.
+ and `Data.Typeable.Internal` for profiling in all cases.

New description:

 When GHC is built without enabling profiling of the libraries, it is
 utterly impossible to compile anything ''with'' profiling. I would like to
 compile just enough libraries with profiling, unconditionally, to be able
 to compile any module with profiling as long as it satisfies approximately
 three conditions:

 1. It uses `NoImplicitPrelude`.
 2. It does not import any modules from a boot package.
 3. It does not use `TemplateHaskell` (I'm not sure if this is necessary,
 but I wouldn't be surprised if it were).

 To make this work, I think we would need to compile at least `GHC.Types`
 and `Data.Typeable.Internal` for profiling in all cases.

 The point of this is that it would be convenient to be able to work on
 small profiling issues without having to build a tree specifically for the
 job: a `devel2` or `quick` build would be sufficient.

--

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


More information about the ghc-tickets mailing list