modify the source code to measure the time of processing a request

2010-01-12 Thread Bao
Hi,
  Our company is using the apache tomcat 6.0.20 as our server.
And now I plan to measure the time of every requet processed in the server 
without the help of any benchmark tool.
  I plan to modify the code to add a time stamp in a request when it comes into 
the server and add another time stamp when it go out of server. So with a 
simple subtraction I can get the time I need.
  However,I am not familiar with the archive of the source code.So anyone could 
give me some suggestion of doing this?Like where should I modify in the source 
code.
  Thanks!


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: modify the source code to measure the time of processing a request

2010-01-13 Thread Bao
Thanks!
could you tell me under the what content?

--- 10年1月13日,周三, Pid  写道:

> 发件人: Pid 
> 主题: Re: modify the source code to measure the time of processing a request
> 收件人: dev@tomcat.apache.org
> 日期: 2010年1月13日,周三,下午5:14
> On 13/01/2010 06:37, Bao wrote:
> > Hi,
> >    Our company is using the apache tomcat
> 6.0.20 as our server.
> > And now I plan to measure the time of every requet
> processed in the server without the help of any benchmark
> tool.
> >    I plan to modify the code to add a time
> stamp in a request when it comes into the server and add
> another time stamp when it go out of server. So with a
> simple subtraction I can get the time I need.
> >    However,I am not familiar with the
> archive of the source code.So anyone could give me some
> suggestion of doing this?Like where should I modify in the
> source code.
> >    Thanks!
> 
> Look at the code for the AccessLogValve.  The SVN
> repository is listed 
> on tomcat.apache.org.
> 
> 
> p
> 
> >       
> ___
> >   
> 好玩贺卡等你发,邮箱贺卡全新上线!
> > http://card.mail.cn.yahoo.com/
> >
> >
> -
> > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: dev-h...@tomcat.apache.org
> >
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 
> 


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org