NLinker

Build flame graph in haskell

Jun 19th, 2017
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ stack clean
  2.  
  3. # rebuild the project with profining enabled
  4. stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts"
  5.  
  6. # run for time profiling
  7. stack exec -- debug-main +RTS -p
  8.  
  9. # run for memory profiling
  10. stack exec -- debug-main +RTS -h
Add Comment
Please, Sign In to add comment