projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6c4db88
)
Add more options to bench script.
author
Carl Hetherington
<cth@carlh.net>
Sat, 28 Nov 2015 22:04:49 +0000
(22:04 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 4 Dec 2015 21:12:45 +0000
(21:12 +0000)
run/bench
patch
|
blob
|
history
diff --git
a/run/bench
b/run/bench
index b8ed06057f799f9d6a4351e8e1b6c3768aa55839..ec6890be6db09de93014253264e3c60f0d76f379 100755
(executable)
--- a/
run/bench
+++ b/
run/bench
@@
-4,4
+4,15
@@
private=../libdcp1-test-private
export LD_LIBRARY_PATH=build/src:build/asdcplib/src:$LD_LIBRARY_PATH
private=../libdcp1-test-private
export LD_LIBRARY_PATH=build/src:build/asdcplib/src:$LD_LIBRARY_PATH
-build/test/bench $private
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/test/bench $private
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" build/test/bench $private
+elif [ "$1" == "--callgrind" ]; then
+ shift
+ valgrind --tool="callgrind" build/test/bench $private
+else
+ build/test/bench $private
+fi