diff options
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 |
