~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/ardour/run-profiling.sh

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

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