Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 13001 invoked by uid 500); 27 Jun 2002 23:06:40 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 12991 invoked by uid 500); 27 Jun 2002 23:06:40 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 27 Jun 2002 23:06:39 -0000 Message-ID: <20020627230639.4976.qmail@icarus.apache.org> From: stevel@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/client Call.java X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N stevel 2002/06/27 16:06:39 Modified: java/src/org/apache/axis/client Call.java Log: timing from costin Revision Changes Path 1.149 +12 -1 xml-axis/java/src/org/apache/axis/client/Call.java Index: Call.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v retrieving revision 1.148 retrieving revision 1.149 diff -u -r1.148 -r1.149 --- Call.java 27 Jun 2002 16:36:07 -0000 1.148 +++ Call.java 27 Jun 2002 23:06:39 -0000 1.149 @@ -141,6 +141,8 @@ public class Call implements javax.xml.rpc.Call { protected static Log log = LogFactory.getLog(Call.class.getName()); + private static Log tlog = + LogFactory.getLog("org.apache.axis.TIME"); private boolean parmAndRetReq = true ; private Service service = null ; @@ -1170,6 +1172,10 @@ * @throws java.rmi.RemoteException if there's an error */ public Object invoke(Object[] params) throws java.rmi.RemoteException { + long t0=0, t1=0, t2=0, t3=0; + if( tlog.isDebugEnabled() ) { + t0=System.currentTimeMillis(); + } /* First see if we're dealing with Messaging instead of RPC. */ /* If ALL of the params are SOAPBodyElements then we're doing */ /* Messaging, otherwise just fall through to normal RPC processing. */ @@ -1211,8 +1217,13 @@ if ( operationName == null ) throw new AxisFault( JavaUtils.getMessage("noOperation00") ); try { - return this.invoke(operationName.getNamespaceURI(), + Object res=this.invoke(operationName.getNamespaceURI(), operationName.getLocalPart(), params); + if( tlog.isDebugEnabled() ) { + t1=System.currentTimeMillis(); + tlog.debug("axis.Call.invoke: " + (t1-t0) + " " + operationName); + } + return res; } catch( AxisFault af) { throw af;