--- a/smalltalk Sun May 01 22:24:22 2016 +0200
+++ b/smalltalk Tue May 10 16:36:08 2016 +0200
@@ -138,7 +138,10 @@
--ldd .................. show which shared libraries are used
--gdb .................. run with gdb-Debugger (type r in debugger to start)
--cgdb ................. run with cgdb-Debugger (type r in debugger to start)
- --callgrind ............ run under callgrind profiler tool
+ --callgrind ............ run under callgrind profiler tool with profiling off -
+ use this to profile some benchmark
+ --callgrind-startup .... run under callgrind profiler tool with profiling on
+ - use this to profile VM startup
--stap SCRIPT .......... run given systemtap script, passing stx command as
stap -c 'stx ...' Systemtap may not be compiled in.
"
@@ -163,13 +166,13 @@
if [ "$1" = "--gdb" ]
then
shift
- DEBUGGER=gdb
+ DEBUGGER="gdb --args"
fi
if [ "$1" = "--cgdb" ]
then
shift
- DEBUGGER=cgdb
+ DEBUGGER="cgdb --args"
fi
if [ "$1" = "--callgrind" ]
@@ -178,6 +181,13 @@
DEBUGGER="valgrind --tool=callgrind --instr-atstart=no"
fi
+if [ "$1" = "--callgrind-startup" ]
+then
+ shift
+ DEBUGGER="valgrind --tool=callgrind"
+fi
+
+
if [ "$1" = "--stap" ]
then
shift