[commit: ghc] wip/ghc-7.10-with-timings: ErrUtils: Add timings to compiler phases (fb40d41)

git at git.haskell.org git at git.haskell.org
Sat Oct 29 01:25:42 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ghc-7.10-with-timings
Link       : http://ghc.haskell.org/trac/ghc/changeset/fb40d415b947805ac33690f63317dd3b8c3e85d6/ghc

>---------------------------------------------------------------

commit fb40d415b947805ac33690f63317dd3b8c3e85d6
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Wed Mar 23 16:11:45 2016 +0100

    ErrUtils: Add timings to compiler phases
    
    This adds timings and allocation figures to the compiler's output when
    run with `-v2` in an effort to ease performance analysis.
    
    Todo:
      * Documentation
      * Where else should we add these?
      * Perhaps we should remove some of the now-arguably-redundant
        `showPass` occurrences where they are
      * Must we force more?
      * Perhaps we should place this behind a `-ftimings` instead of `-v2`
    
    Test Plan: `ghc -v2 Test.hs`, look at the output
    
    Reviewers: hvr, goldfire, simonmar, austin
    
    Reviewed By: simonmar
    
    Subscribers: angerman, michalt, niteria, ezyang, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1959
    
    (cherry picked from commit 8048d51be0676627b417c128af0b0c352b75c537)


>---------------------------------------------------------------

fb40d415b947805ac33690f63317dd3b8c3e85d6
 compiler/cmm/CmmParse.y          |  3 +-
 compiler/coreSyn/CoreLint.hs     |  9 +-----
 compiler/coreSyn/CorePrep.hs     | 16 ++++++----
 compiler/deSugar/Desugar.hs      |  9 +++---
 compiler/ghci/ByteCodeGen.hs     |  8 +++--
 compiler/llvmGen/LlvmCodeGen.hs  |  3 +-
 compiler/llvmGen/LlvmMangler.hs  |  7 +++--
 compiler/main/CodeOutput.hs      |  7 +++--
 compiler/main/ErrUtils.hs        | 58 +++++++++++++++++++++++++++++++++++-
 compiler/main/GhcMake.hs         | 19 ++++++------
 compiler/main/HscMain.hs         | 63 +++++++++++++++++++++-------------------
 compiler/main/TidyPgm.hs         | 23 ++++++++++-----
 compiler/simplCore/SimplCore.hs  | 31 +++++++++++---------
 compiler/typecheck/TcRnDriver.hs | 12 ++++----
 compiler/utils/Outputable.hs     |  8 ++++-
 docs/users_guide/debugging.xml   | 10 ++++++-
 16 files changed, 189 insertions(+), 97 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc fb40d415b947805ac33690f63317dd3b8c3e85d6


More information about the ghc-commits mailing list