[commit: ghc] ghc-8.0: ErrUtils: Add timings to compiler phases (11d5727)

git at git.haskell.org git at git.haskell.org
Thu Mar 24 22:00:08 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/11d572729693b08215a0b3606b274b625d87f2a2/ghc

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

commit 11d572729693b08215a0b3606b274b625d87f2a2
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)


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

11d572729693b08215a0b3606b274b625d87f2a2
 compiler/cmm/CmmParse.y          |  3 +-
 compiler/coreSyn/CoreLint.hs     |  9 +-----
 compiler/coreSyn/CorePrep.hs     | 16 ++++++----
 compiler/deSugar/Desugar.hs      |  9 +++---
 compiler/ghci/ByteCodeGen.hs     | 15 +++++-----
 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  | 39 ++++++++++++++-----------
 compiler/typecheck/TcRnDriver.hs | 12 ++++----
 compiler/utils/Outputable.hs     |  8 ++++-
 docs/users_guide/debugging.rst   | 10 ++++++-
 docs/users_guide/using.rst       |  4 +--
 17 files changed, 197 insertions(+), 108 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 11d572729693b08215a0b3606b274b625d87f2a2


More information about the ghc-commits mailing list