> From: Bruce Krautbauer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 7:02 PM > To: [EMAIL PROTECTED] > Subject: RE: negative time with Profiling on 2.1-Dev (was NPE > with Profiling on 2.1-Dev) > > > Hi Carsten, thanks for the fix, it works now. This is a very > nice feature! > > Now for the next issue. For some reason I am getting > negative time for the i18n transformer in my pipeline. Here > is the xml that is returned:
This means that i18n transformer runs with the light speed or faster. Joking ;) Konstantin > > <?xml version="1.0" encoding="UTF-8" ?> > <profilerinfo date="Jun 25, 2002 9:05:53 AM" > xmlns="http://apache.org/cocoon/profiler/1.0"> > <pipeline uri="7274/default/QuickLook/htmlprog" > count="4" time="12278"> > <average time="3069"> > <element role="file" > source="stylesheets/devices/7274/QuickLook/page.xml" time="1587" /> > <element role="xslt" > source="stylesheets/page.xslt" time="1482" /> > <element role="i18n" time="-378" /> > <element role="xslt" > source="stylesheets/page2pages.xslt" time="97" /> > <element role="writeDOMsession" time="30" /> > <element role="xslt" > source="stylesheets/rootwrap.xslt" time="100" /> > <element role="xslt" > source="stylesheets/devices/7274/QuickLook/htmlprog.xslt" > time="102" /> > <element role="i18n" time="7" /> > <element > role="org.apache.cocoon.serialization.HTMLSerializer" time="40" /> > </average> > <result time="9864"> > <element role="file" > source="stylesheets/devices/7274/QuickLook/page.xml" time="3935" /> > <element role="xslt" > source="stylesheets/page.xslt" time="5929" /> > <element role="i18n" time="-561" /> > <element role="xslt" > source="stylesheets/page2pages.xslt" time="150" /> > <element role="writeDOMsession" time="50" /> > <element role="xslt" > source="stylesheets/rootwrap.xslt" time="141" /> > <element role="xslt" > source="stylesheets/devices/7274/QuickLook/htmlprog.xslt" time="90" /> > <element role="i18n" time="10" /> > <element > role="org.apache.cocoon.serialization.HTMLSerializer" time="120" /> > </result> > <result time="1152"> > <element role="file" > source="stylesheets/devices/7274/QuickLook/page.xml" time="1152" /> > <element role="xslt" > source="stylesheets/page.xslt" time="0" /> > <element role="i18n" time="-401" /> > <element role="xslt" > source="stylesheets/page2pages.xslt" time="90" /> > <element role="writeDOMsession" time="40" /> > <element role="xslt" > source="stylesheets/rootwrap.xslt" time="100" /> > <element role="xslt" > source="stylesheets/devices/7274/QuickLook/htmlprog.xslt" > time="141" /> > <element role="i18n" time="20" /> > <element > role="org.apache.cocoon.serialization.HTMLSerializer" time="10" /> > </result> > <result time="661"> > <element role="file" > source="stylesheets/devices/7274/QuickLook/page.xml" time="661" /> > <element role="xslt" > source="stylesheets/page.xslt" time="0" /> > <element role="i18n" time="-320" /> > <element role="xslt" > source="stylesheets/page2pages.xslt" time="100" /> > <element role="writeDOMsession" time="10" /> > <element role="xslt" > source="stylesheets/rootwrap.xslt" time="90" /> > <element role="xslt" > source="stylesheets/devices/7274/QuickLook/htmlprog.xslt" > time="110" /> > <element role="i18n" time="0" /> > <element > role="org.apache.cocoon.serialization.HTMLSerializer" time="10" /> > </result> > <result time="601"> > <element role="file" > source="stylesheets/devices/7274/QuickLook/page.xml" time="601" /> > <element role="xslt" > source="stylesheets/page.xslt" time="0" /> > <element role="i18n" time="-231" /> > <element role="xslt" > source="stylesheets/page2pages.xslt" time="50" /> > <element role="writeDOMsession" time="20" /> > <element role="xslt" > source="stylesheets/rootwrap.xslt" time="70" /> > <element role="xslt" > source="stylesheets/devices/7274/QuickLook/htmlprog.xslt" time="70" /> > <element role="i18n" time="0" /> > <element > role="org.apache.cocoon.serialization.HTMLSerializer" time="21" /> > </result> > </pipeline> > </profilerinfo> > > There is very little for the i18n transformer to do the first > time it is used in the pipeline, and I'm sure the i18n > transformer is very efficient, but I don't think it can turn > back time! ;) > > Thanks, > Bruce > > >>> [EMAIL PROTECTED] 06/25/02 01:12AM >>> > Hi Bruce, > > thanks for reporting this - it should be fixed now in the latest > CVS. > The profiling pipeline is currently not able to profile a map:read. > > Carsten > > Carsten Ziegeler Chief Architect Open Source Group, S&N AG > ------------------------------------------------------------------ > Cocoon Consulting, Training and Projects > ------------------------------------------------------------------ > mailto:[EMAIL PROTECTED] http://www.s-und-n.de > http://ziegeler.bei.t-online.de > > > > -----Original Message----- > > From: Bruce Krautbauer [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 24, 2002 11:52 PM > > To: [EMAIL PROTECTED] > > Subject: NPE with Profiling on 2.1-Dev > > > > > > I'm getting a NPE from ProfilingCachingProcessingPipeline when I > > try to access anything from my pipeline when profiling is enabled. > > > > java.lang.NullPointerException > > at > > org.apache.cocoon.components.profiler.ProfilingCachingProcessingPi > > peline.process(ProfilingCachingProcessingPipeline.java:114) > > at > > org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke > > (ReadNode.java:122) > > > > This is with the CVS HEAD (from 2002-06-24 AM CDT) running on JDK > > 1.3.1_03 on Win2K with Tomcat 4.0.4. I followed the instructions > > from the Profiling Generator user docs. What am I missing? > > > > On a related note, is there any way I can get Tomcat to cache my > > files/resources when it is loading? The first time my pipeline > > is accessed after a Tomcat restart it takes about 10 seconds to > > generate the page. After that it takes less than a second, even > > though the page is displaying dynamic data. > > > > TIA, > > Bruce > > > > > > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been > answered in the > > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > > > To > unsubscribe, e-mail: <[EMAIL PROTECTED]> > > For additional commands, e-mail: > <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>