1 2 3 4 5 6 7 8 9 10 |
#!/bin/sh echo "*** GILJOY: Starting the specified program..." LD_PRELOAD=./gilpreload.so ./gilpython $* & PYPID=$! echo "*** GILJOY: Sudo running the script that will attach gdb. You can \ edit this script and remove the sudo if your system allows non-root users \ to ptrace." echo "*** GILJOY: You can stop the stats gathering by hitting Ctrl-C." sudo ./gilstat.py $PYPID |