blob: 541c7254ceab31790d74e45ef0c928de6a14ba75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
#
# Run libardour profiling tests.
#
if [ "$1" == "" ]; then
echo "Syntax: run-profiling.sh [flag] <test> [<args>]"
exit 1;
fi
. test-env.sh
export LD_PRELOAD=/home/carl/src/libfakejack/libjack.so
# session='32tracks'
p=$1
if [ "$p" == "--debug" -o "$p" == "--valgrind" -o "$p" == "--callgrind" ]; then
f=$p
p=$2
shift 1
fi
shift 1
if [ "$f" == "--debug" ]; then
gdb --args ./libs/ardour/$p $*
elif [ "$f" == "--valgrind" ]; then
valgrind ./libs/ardour/$p $*
elif [ "$f" == "--callgrind" ]; then
valgrind --tool=callgrind ./libs/ardour/$p $*
else
./libs/ardour/$p $*
fi
|