diff options
| author | Miguel <m.i@gmx.at> | 2019-04-02 20:36:52 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2019-04-02 20:36:52 +0200 |
| commit | 1017a2614c1708bac638fec5108b5dc83729f760 (patch) | |
| tree | 1fb2d58fb757162fa03ccad631fbbd97f5afaaea /00_blog/00040_Haskell/00020_GHC-Notes | |
| parent | b0f9cc1c78ddf0a9d0b6f23dc07817625dbe209c (diff) | |
some new stuff
Diffstat (limited to '00_blog/00040_Haskell/00020_GHC-Notes')
| -rw-r--r-- | 00_blog/00040_Haskell/00020_GHC-Notes/index.md | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/00_blog/00040_Haskell/00020_GHC-Notes/index.md b/00_blog/00040_Haskell/00020_GHC-Notes/index.md index c945319..acee63f 100644 --- a/00_blog/00040_Haskell/00020_GHC-Notes/index.md +++ b/00_blog/00040_Haskell/00020_GHC-Notes/index.md @@ -2,33 +2,35 @@ ## Some GHC Flags - -v verbose mode - -O2 level 2 optimizations - -rtsopts allow +RTS flags - -prof enable basic time and allocation profiling - -auto-all cost centers on all top level functions - (you can also add them via the SCC pragma) - -caf-all generate data for CAFs (constant applicative forms) - -fforce-recomp force recompilation + -v verbose mode + -O2 level 2 optimizations + -rtsopts allow +RTS flags + -prof enable basic time and allocation profiling + -auto-all cost centers on all top level functions + (you can also add them via the SCC pragma) + -fprof-auto replaced -auto-all + -caf-all generate data for CAFs (constant applicative forms) + -fprof-cafs replaced -caf-all + -fforce-recomp force recompilation -threaded Use threaed runtime -eventlog enables +RTS -l flag -Wall -Werror + -no-hs-main supress linking main module + Notes: you will obtain the profiling versions of dependancies via: stack install --profile [libraryname] - -fprof-auto replaced -auto-all - -fprof-cafs replaced -caf-all ## Some +RTS flags - -K set stack limit + -K set stack limit -s statistic reporting - -p profiling - -hc extract heap profile - -hy allocation by type + -p profiling + -hc extract heap profile + -hy allocation by type -hd allocation by constructor -ix x is sampling frequency in seconds. e.g. 0.01) -Nx x is number of cores to utilize |
