[commit: ghc] master: ErrUtils: Ensure timing dumps are always output on one line (c11f145)
git at git.haskell.org
git at git.haskell.org
Wed Nov 22 14:38:37 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/c11f145cf6a32337c005b0f9185e228c9ade0a64/ghc
>---------------------------------------------------------------
commit c11f145cf6a32337c005b0f9185e228c9ade0a64
Author: Ben Gamari <ben at smart-cactus.org>
Date: Tue Nov 21 22:59:28 2017 -0500
ErrUtils: Ensure timing dumps are always output on one line
This output is supposed to be machine-readable; having random line-breaks
defeats this.
>---------------------------------------------------------------
c11f145cf6a32337c005b0f9185e228c9ade0a64
compiler/main/ErrUtils.hs | 1 +
1 file changed, 1 insertion(+)
diff --git a/compiler/main/ErrUtils.hs b/compiler/main/ErrUtils.hs
index 43eb925..13ff017 100644
--- a/compiler/main/ErrUtils.hs
+++ b/compiler/main/ErrUtils.hs
@@ -646,6 +646,7 @@ withTiming getDFlags what force_result action
<+> text "megabytes")
liftIO $ dumpIfSet_dyn dflags Opt_D_dump_timings ""
+ $ text $ showSDocOneLine dflags
$ hsep [ what <> colon
, text "alloc=" <> ppr alloc
, text "time=" <> doublePrec 3 time
More information about the ghc-commits
mailing list