cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@anyware-tech.com>
Subject Re: How to reset profile information without restarting
Date Wed, 16 Nov 2005 12:21:04 GMT
* Jean-Christophe Kermagoret:

> When I use the profiler, I  presently need to restart the server
> if I don't  want any previous data collected.   Is there another
> way to reset profiler information ?

A bit off-topic, but I use another approach for profiling the
application: analyze the logs.  When Cocoon executes a pipeline
there's a line in the logs that looks like:

        PARAM: '0' VALUE: 'my-pipeline'

I wrote a small python script to report measures:
        http://svn.caraldi.com/trunk/bin/cocoontime
To use it, activate log4j in web.xml, and set the logging level to
DEBUG.  Then do:

$ tail -f log4j.log | cocoontime

Hit Control-C to interrupt the program, and cocoontime will dump
the results: first in order of execution, then in decreasing time
order.

The main problem with this script is when using « cocoon: » the
reported time is wrong.  But the sum of all times (line with TOTAL
time) is reliable.

Enjoy,
-- 
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message