added profiling mode
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Mar 2005 21:59:35 +0000 (21:59 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Mar 2005 21:59:35 +0000 (21:59 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@193 9efc2488-bf62-4759-914b-345cdb29e865

bin/opensrf_ctl

index 00739dd..98ac929 100755 (executable)
@@ -21,6 +21,16 @@ case $1 in
                $0 status;
                echo;
                ;;
+       "startprofile")
+               if [ -z $2 ]; then
+                       usage;
+                       exit;
+               fi              
+               OPENSRF_PROFILE=1 perl -MOpenSRF::System="$2" -e 'OpenSRF::System->bootstrap()' & 
+               sleep 2;
+               $0 status;
+               echo;
+               ;;
        "stop")
                PID=$(ps ax | grep "[0-9] System$" | awk '{print $1}');
                if [ -z $PID ]; then