From 6d801812686463eceea5627007c7e950d9698c7a Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 7 Mar 2005 21:59:35 +0000 Subject: [PATCH] added profiling mode git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@193 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/opensrf_ctl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/opensrf_ctl b/bin/opensrf_ctl index 00739dd..98ac929 100755 --- a/bin/opensrf_ctl +++ b/bin/opensrf_ctl @@ -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 -- 2.11.0