Skip to content

Instantly share code, notes, and snippets.

@MehdiZonjy
Created March 10, 2019 10:01
Show Gist options
  • Save MehdiZonjy/20fb7a3f43fe7963be7d28ea2edf164c to your computer and use it in GitHub Desktop.
Save MehdiZonjy/20fb7a3f43fe7963be7d28ea2edf164c to your computer and use it in GitHub Desktop.
compile and profile memory // -p for profiling performance
stack build --profile --ghc-options=-fprof-auto-top && stack exec -- ui-interactions +RTS -h
generate postscript file from memory dump
~/.stack/programs/x86_64-osx/ghc-8.6.3/bin/hp2ps -e8in -c ui-interactions.hp
limit max heapsize
stack build --ghc-options=-rtsopts
.stack-work/install/x86_64-osx/lts-13.10/8.6.3/bin/ui-interactions -M1G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment