Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion run_profiling.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
#!/bin/bash

cabal v2-run --enable-profiling dataframe -- +RTS -hy -l-agu
PROF_TYPE=""

if [ -z "$1" ]; then
# Default to eventlog profile if no argument given
PROF_TYPE="eventlog"
else
case "$1" in
"eventlog")
PROF_TYPE="eventlog"
;;
"pprof")
PROF_TYPE="pprof"
;;
*)
echo "invalid profile type $1, should be one of 'eventlog' or 'pprof'"
exit 1
;;
esac
fi

case "$PROF_TYPE" in
"eventlog")
cabal v2-run --enable-profiling dataframe -- +RTS -hy -l-agu
;;
"pprof")
cabal v2-run --enable-profiling dataframe -- +RTS -pj -RTS
;;
esac