on master help sign in
add some handy shell scripts for performance profiling and debugging
commit96f48722117f82623186f785f8b57e9e0a1dfe49 authorAgentM <agentm@themactionfaction.com> dateMon 17 Apr 2017, 12:02 (10 years ago) parent8c57476
4 files changed+8
h2svg.sh+1 hp2svg.sh+2 install_tools.sh+3 runghcid.sh+2
h2svg.shnew file+1
@@ -0,0 +1 @@
1+./.cabal-sandbox/bin/ghc-prof-flamegraph < bigrel.prof | perl ~/Dev/flamegraph.pl
hp2svg.shnew file+2
@@ -0,0 +1,2 @@
1+cabal run bigrel -- --attribute-count 10 --tuple-count 10000 -d "x:=x" +RTS -h > /dev/null
2+./.cabal-sandbox/bin/hp2pretty bigrel.hp
install_tools.shnew file+3
@@ -0,0 +1,3 @@
1+cabal install --enable-profiling --enable-tests
2+cabal install ghc-prof-flamegraph
3+cabal install hp2pretty
runghcid.shnew file+2
@@ -0,0 +1,2 @@
1+#!/bin/sh
2+./.cabal-sandbox/bin/ghcid --command="cabal repl $1"