We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac4bb74 commit 192d2a0Copy full SHA for 192d2a0
run_profiling.sh
@@ -1,3 +1,30 @@
1
#!/bin/bash
2
3
-cabal v2-run --enable-profiling dataframe -- +RTS -hy -l-agu
+PROF_TYPE=""
4
+
5
+if [ -z "$1" ]; then
6
+ # Default to eventlog profile if no argument given
7
+ PROF_TYPE="eventlog"
8
+else
9
+ case "$1" in
10
+ "eventlog")
11
12
+ ;;
13
+ "pprof")
14
+ PROF_TYPE="pprof"
15
16
+ *)
17
+ echo "invalid profile type $1, should be one of 'eventlog' or 'pprof'"
18
+ exit 1
19
20
+ esac
21
+fi
22
23
+case "$PROF_TYPE" in
24
25
+ cabal v2-run --enable-profiling dataframe -- +RTS -hy -l-agu
26
27
28
+ cabal v2-run --enable-profiling dataframe -- +RTS -pj -RTS
29
30
+esac
0 commit comments