Make the profiling detail level configurable with a flag
New flags: --profiling-detail and --library-profiling-detail. When profiling is enabled (by the existing flags) then these flags are taken into account to set the profiling detail level. The levels are: none default exported-functions toplevel-functions all-functions The default value for ghc for libraries is exported-functions and for exes is toplevel-functions. On GHC these levels correspond to the -fprof-auto* flags. The ghc-prof-options will override this (just because it's passed to ghc at the end).
Showing
- Cabal/Distribution/Simple/Compiler.hs 48 additions, 1 deletionCabal/Distribution/Simple/Compiler.hs
- Cabal/Distribution/Simple/Configure.hs 34 additions, 8 deletionsCabal/Distribution/Simple/Configure.hs
- Cabal/Distribution/Simple/GHC.hs 6 additions, 3 deletionsCabal/Distribution/Simple/GHC.hs
- Cabal/Distribution/Simple/GHC/Internal.hs 16 additions, 3 deletionsCabal/Distribution/Simple/GHC/Internal.hs
- Cabal/Distribution/Simple/LocalBuildInfo.hs 3 additions, 1 deletionCabal/Distribution/Simple/LocalBuildInfo.hs
- Cabal/Distribution/Simple/Program/GHC.hs 2 additions, 0 deletionsCabal/Distribution/Simple/Program/GHC.hs
- Cabal/Distribution/Simple/Setup.hs 36 additions, 1 deletionCabal/Distribution/Simple/Setup.hs
- cabal-install/Distribution/Client/Config.hs 2 additions, 0 deletionscabal-install/Distribution/Client/Config.hs
- cabal-install/Distribution/Client/Setup.hs 7 additions, 2 deletionscabal-install/Distribution/Client/Setup.hs
Loading
Please register or sign in to comment