Skip to content

Commit b45870f

Browse files
committed
Add hardcodet valgrind.sh
1 parent 75923d4 commit b45870f

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

valgrind.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# WARNING: this script is not really ready to be used yet
4+
# valgrind cant run with asan so the entrie setup is a bit messy
5+
# not sure if i ever put enough love into this so its actually usable
6+
# but last time i lost my untracked valgrind.sh so this time i rather track
7+
# the messy one than to start from scratch again
8+
9+
# tools:
10+
# memcheck
11+
# massif
12+
13+
srv_commit=77931f936c
14+
SRV_BIN=./bin/solofng1_no_asan_"${srv_commit}"
15+
16+
cp ~/git/ddnet-insta/build-valgrind/DDNet-Server "$SRV_BIN" || exit 1
17+
18+
valgrind \
19+
--tool=massif \
20+
--gen-suppressions=all \
21+
--suppressions=./lib/supp/memcheck.supp \
22+
--leak-check=full \
23+
--show-leak-kinds=all \
24+
"$SRV_BIN" &> valgrind_"$(date '+%F_%H-%M')".txt
25+

0 commit comments

Comments
 (0)