[GHC] #12111: prof build flavour doesn't work
GHC
ghc-devs at haskell.org
Wed May 25 16:00:23 UTC 2016
#12111: prof build flavour doesn't work
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Build System | Version: 8.0.1
Resolution: invalid | 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: |
-------------------------------------+-------------------------------------
Comment (by thomie):
Actually, you do need to fiddle with `-fprof-auto` a little. See this
comment in `compiler/ghc.mk`:
{{{
# If we're profiling GHC then we want SCCs. However, adding -auto-all
# everywhere tends to give a hard-to-read profile, and adds lots of
# overhead. A better approach is to proceed top-down; identify the
# parts of the compiler of interest, and then add further cost centres
# as necessary. Turn on -fprof-auto for individual modules like this:
# compiler/main/DriverPipeline_HC_OPTS += -fprof-auto
compiler/main/GhcMake_HC_OPTS += -fprof-auto
compiler/main/GHC_HC_OPTS += -fprof-auto
# or alternatively add {-# OPTIONS_GHC -fprof-auto #-} to the top of
# modules you're interested in.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12111#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list