This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::ops::Drop; | |
| use std::os::unix::io::{AsRawFd, RawFd}; | |
| use std::ptr; | |
| use std::time::Duration; | |
| use libc; | |
| extern { | |
| /// int timerfd_create(int clockid, int flags) | |
| fn timerfd_create(clockid : libc::c_int, flags : libc::c_int) -> libc::c_int; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- This time generated using -O2 optimized libs + GHC. | |
| ================================Data.Digest.Pure.SHA================================= | |
| CodeGen 98003.87 ms 45930.07 mb 86.7% of total time | |
| Simplifier 7897.97 ms 4759.07 mb 7.0% of total time | |
| Demand analysis 4648.55 ms 1654.48 mb 4.1% of total time | |
| Renamer/typechecker 765.77 ms 337.82 mb 0.7% of total time | |
| Float inwards 690.78 ms 734.53 mb 0.6% of total time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Timings of hxt, haskell-src-exts, lens, and their dependencies. At the bottom | |
| -- is the cumulative numbers for individual passes. | |
| -- | |
| -- Modules and passes in modules are sorted from longest to shortest. | |
| ==========================Data.Text.Lazy.Builder.RealFloat=========================== | |
| CodeGen 56563.82 ms 76186.61 mb 60.0% of total time | |
| Simplifier 28763.27 ms 30601.96 mb 30.5% of total time | |
| CorePrep 2602.90 ms 3254.26 mb 2.8% of total time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =============================Data.ByteString.Lazy.Lens============================== | |
| Renamer/typechecker 91.88 ms 154.265 mb 23.0368067395% of total time | |
| CodeGen1 62.73 ms 82.121 mb 15.7281115234% of total time | |
| CodeGen 58.56 ms 76.325 mb 14.6825794805% of total time | |
| Simplifier1 43.27 ms 59.186 mb 10.8489619898% of total time | |
| Simplifier5 22.48 ms 30.133 mb 5.63634540166% of total time | |
| Desugar 20.94 ms 31.829 mb 5.2502256544% of total time | |
| Simplifier6 12.11 ms 13.585 mb 3.03630528533% of total time | |
| Simplifier 10.12 ms 10.663 mb 2.53735833918% of total time |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =========================Graphics.GL.Ext.ARB.TextureStorage========================= | |
| Renamer/typechecker 4.0 ms 4.658 mb 57.1428571429% of total time | |
| CodeGen 1.0 ms 1.572 mb 14.2857142857% of total time | |
| Called arity analysis 1.0 ms 0.056 mb 14.2857142857% of total time | |
| Simplifier 1.0 ms 0.173 mb 14.2857142857% of total time | |
| Float inwards1 0.0 ms 0.057 mb 0.0% of total time | |
| Worker Wrapper binds 0.0 ms 0.051 mb 0.0% of total time | |
| Demand analysis 0.0 ms 0.088 mb 0.0% of total time | |
| Float inwards 0.0 ms 0.056 mb 0.0% of total time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==========================Data.Text.Internal.Encoding.Utf8========================== | |
| CodeGen 33.0 ms 49.639 mb 41.7721518987% of total time | |
| Renamer/typechecker 12.0 ms 12.15 mb 15.1898734177% of total time | |
| Simplifier5 6.0 ms 11.025 mb 7.59493670886% of total time | |
| Simplifier 5.0 ms 8.122 mb 6.32911392405% of total time | |
| Parser 5.0 ms 6.088 mb 6.32911392405% of total time | |
| Simplifier1 3.0 ms 7.065 mb 3.79746835443% of total time | |
| Desugar 2.0 ms 3.315 mb 2.53164556962% of total time | |
| Simplifier6 2.0 ms 2.962 mb 2.53164556962% of total time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================Language.Haskell.Exts.Parser============================ | |
| CodeGen 124.0 ms 184.037 mb 35.2272727273% of total time | |
| Simplifier1 49.0 ms 63.273 mb 13.9204545455% of total time | |
| Renamer/typechecker 28.0 ms 28.564 mb 7.95454545455% of total time | |
| Simplifier5 28.0 ms 41.254 mb 7.95454545455% of total time | |
| Simplifier3 21.0 ms 31.001 mb 5.96590909091% of total time | |
| Simplifier6 20.0 ms 30.269 mb 5.68181818182% of total time | |
| Simplifier 16.0 ms 26.285 mb 4.54545454545% of total time | |
| Simplifier4 10.0 ms 15.356 mb 2.84090909091% of total time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =========================Text.XML.HXT.Arrow.ProcessDocument========================= | |
| CodeGen 64.0 ms 90.34 mb 54.2372881356% of total time | |
| Simplifier1 11.0 ms 13.808 mb 9.32203389831% of total time | |
| Renamer/typechecker 10.0 ms 14.711 mb 8.47457627119% of total time | |
| Simplifier6 7.0 ms 10.528 mb 5.93220338983% of total time | |
| Simplifier3 3.0 ms 3.692 mb 2.54237288136% of total time | |
| Simplifier4 3.0 ms 3.643 mb 2.54237288136% of total time | |
| Simplifier5 3.0 ms 3.96 mb 2.54237288136% of total time | |
| Demand analysis 2.0 ms 3.882 mb 1.69491525424% of total time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import sys | |
| TIMING_RE = re.compile(r"^!!! (.+) \[(.*)\]: .* (\d+\.\d+) milliseconds, .* (\d+\.\d+) megabytes") | |
| def sort_cmp_time(v1, v2): | |
| return cmp(v1[1][0], v2[1][0]) | |
| def sort_cmp_alloc(v1, v2): | |
| return cmp(v1[1][1], v2[1][1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git diff | |
| diff --git a/ghc/ghc.mk b/ghc/ghc.mk | |
| index c0c78bd..8133960 100644 | |
| --- a/ghc/ghc.mk | |
| +++ b/ghc/ghc.mk | |
| @@ -119,6 +119,8 @@ ifeq "$(GhcProfiled)" "YES" | |
| ghc/stage2/build/tmp/$(ghc_stage2_PROG) : $(compiler_stage2_p_LIB) |