From 1017a2614c1708bac638fec5108b5dc83729f760 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 2 Apr 2019 20:36:52 +0200 Subject: some new stuff --- 00_blog/00040_Haskell/00020_GHC-Notes/index.md | 30 ++++++++++++++------------ 1 file changed, 16 insertions(+), 14 deletions(-) (limited to '00_blog/00040_Haskell/00020_GHC-Notes') 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 -- cgit v1.2.3