Hi Bhanu,
I too do not think it is a very good idea to put permanant code
just to measure performance.
One of the solutions would be to incoporate time information with
the trace utility - where in addition to enter/exit traces, it could
also include times (enter time/exit time)
BTW, do you just want to measure timings, or do you want to
improve serializer and want to see if the improvements have an impact
on performance?
I case you want to really improve the serializer, whay not discuss
the improvements over this mailing list?
Thanks,
Samisa...
On Sun, 27 Mar 2005 11:02:44 -0800 (PST), bhanu prakash
<[EMAIL PROTECTED]> wrote:
> Hi John,
>
> We want to modify the serializers and see if it is
> improving any performance. So, I want to measure the
> time it takes for serialization, deserialization and
> handlers. Can you help?
>
> Thanks,
> Bhanu
>
> --- John Hawkins <[EMAIL PROTECTED]> wrote:
>
> > Hello Bhanu,
> >
> > I'm extremely concerned that you are putting
> > performance information into
> > the code on a permanent basis - why do you need
> > this?
> >
> > John,
> >
> >
> >
> >
> >
> >
> > bhanu prakash <[EMAIL PROTECTED]>
> > 26/03/2005 05:45
> > Please respond to
> > "Apache AXIS C Developers List"
> >
> >
> > To
> > Apache AXIS C Developers List
> > <[email protected]>
> > cc
> >
> > Subject
> > Re: Log times
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > I have modified clientaxisengine.cpp such that it
> > writes these logging time info into a text file. and
> > I
> > have installed AXIS as explained in install guide. I
> > am able to run the sample clients but it is not
> > writing any logging info into the text file that I
> > created. I am also attaching clientaxisengine.cpp
> > with
> > my changes.
> >
> > Any Ideas?
> >
> > Thanks,
> > Bhanu
> > --- bhanu prakash <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I am trying to find the time taken for
> > > serialization,
> > > deserialization and handlers on both client and
> > > server. For this, Is it enough if we modify
> > > clientaxisengine.cpp and serveraxisengine.cpp
> > files?
> > > If not, Can you let me know what other files needs
> > > modification.
> > >
> > > Thanks,
> > > Bhanu
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Small Business - Try our new resources
> > site!
> > > http://smallbusiness.yahoo.com/resources/
> > >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Small Business - Try our new resources site!
> > http://smallbusiness.yahoo.com/resources/ /* -*- C++
> > -*- */
> > /*
> > * Copyright 2003-2004 The Apache Software
> > Foundation.
> > *
> > * Licensed under the Apache License, Version 2.0
> > (the "License");
> > * you may not use this file except in compliance
> > with the License.
> > * You may obtain a copy of the License at
> > *
> > * http://www.apache.org/licenses/LICENSE-2.0
> > *
> > * Unless required by applicable law or agreed to
> > in writing, software
> > * distributed under the License is distributed on
> > an "AS IS" BASIS,
> > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
> > either express or
> > implied.
> > * See the License for the specific language
> > governing permissions and
> > * limitations under the License.
> > */
> >
> > /*
> > * Revision 1.1 2004/08/26 roshan
> > * Added the method "releaseHandlers(string
> > sSessionId)" in order to
> > release the
> > * Handlers once they are used.
> > */
> >
> >
> > #include "ClientAxisEngine.h"
> > #include "../../wsdd/WSDDDeployment.h"
> > #include "../HandlerPool.h"
> > #include <axis/AxisException.hpp>
> > #include "../../common/AxisTrace.h"
> >
> > extern AXIS_CPP_NAMESPACE_PREFIX WSDDDeployment*
> > g_pWSDDDeployment;
> > extern AXIS_CPP_NAMESPACE_PREFIX HandlerPool*
> > g_pHandlerPool;
> >
> >
> >
> /*******Bhanu****************************************************************/
> > #include<iostream.h>
> > #include<fstream.h>
> > #include<iomanip.h>
> > #include<string.h>
> > #include<time.h>
> > #include<stdlib.h>
> > #include<sys/time.h>
> > #include"/usr/include/time.h"
> > #include<ctype.h>
> >
> > struct timeval
> >
> cStart,cStop,cReqHandlerStart,cReqHandlerStop,cResHandlerStart,cResHandlerStop;
> > struct cSerializerStart, cSerializerStop,
> > cDeserializerStart,
> > cDeserializerStop
> > fstream numberFile("/home/bhanu/clientNumbers.txt",
> > ios::app);
> >
> /********Bhanu************************************************************/
> >
> > AXIS_CPP_NAMESPACE_START
> >
> > ClientAxisEngine::ClientAxisEngine ()
> > {
> >
> > }
> >
> > ClientAxisEngine::~ClientAxisEngine ()
> > {
> >
> > }
> >
> > MessageData* ClientAxisEngine::getMessageData ()
> > {
> > return m_pMsgData;
> > }
> >
> > int ClientAxisEngine::process (SOAPTransport* pSoap)
> > {
> >
> >
> >
> >
> /********Bhanu************************************************************/
> > gettimeofday(&cStart, &tzp);
> >
> /********Bhanu************************************************************/
> >
> >
> >
> > int Status = AXIS_FAIL;
> > const WSDDService* pService = NULL;
> >
> > try
> > {
> > if (!pSoap)
> > {
> > return AXIS_FAIL;
> > }
> > m_pSoap = pSoap;
> > string sSessionId =
> > m_pSoap->getSessionId();
> >
> > do
> > {
> > const char* pchService =
> > pSoap->getServiceName();
> >
> > if (pchService == NULL ||
> > strchr(pchService,'#')
> > == NULL)
> > {
> > pService =
> > g_pWSDDDeployment->getService (pchService);
> > }
> > else
> > {
> > char *
> > pchTempService
> === message truncated ===
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>