mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
Fix up profiling script
This commit is contained in:
parent
4509ddfc1f
commit
e85acd4b99
@ -15,13 +15,13 @@ PROFILE_DIR="$PROFILES_DIR/$TODAY/$NOW-$CURRENT_BRANCH-$HEAD_SHA/"
|
||||
OUTFILE="$PROFILE_DIR/profile.out.log"
|
||||
ERRFILE="$PROFILE_DIR/profile.err.log"
|
||||
|
||||
cabal v2-build all
|
||||
cabal v2-build exe:semantic
|
||||
|
||||
mkdir -p "$PROFILE_DIR"
|
||||
|
||||
# NB: Do not try and use -N, it doesn't work and defaults to -N1.
|
||||
cores=$(sysctl -n machdep.cpu.core_count || echo 4)
|
||||
cabal v2-run semantic -- +RTS -sstderr -N$((cores * 2)) -A8m -n2m -p -s -h -i0.1 -L1000 -xt -RTS $@ > "$OUTFILE" 2> "$ERRFILE"
|
||||
cabal v2-run exe:semantic -- +RTS -sstderr -N$((cores * 2)) -A8m -n2m -p -s -h -i0.1 -L1000 -xt -RTS $@ > "$OUTFILE" 2> "$ERRFILE"
|
||||
|
||||
profiteur semantic.prof || true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user