changeset 19159:eeb22763138b

Add --callgrind option to run-octave to run with profiling. * run-octave.in: Add --callgrind option which calls valgrind with tool=callgrind.
author Rik <rik@octave.org>
date Wed, 24 Sep 2014 17:38:52 -0700
parents 9c28728a3041
children 861a46deae1f
files run-octave.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/run-octave.in	Wed Sep 24 10:36:15 2014 -0400
+++ b/run-octave.in	Wed Sep 24 17:38:52 2014 -0700
@@ -72,6 +72,9 @@
   elif [ "x$1" = "x-valgrind" ]; then
     driver="valgrind --tool=memcheck"
     shift
+  elif [ "x$1" = "x-callgrind" ]; then
+    driver="valgrind --tool=callgrind"
+    shift
   elif [ "x$1" = "x-strace" ]; then
     driver="strace -o octave.trace"
     shift