>- see footer for list info -<
Doesn't this assume debugging is switched on?



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Duncan Cumming
Sent: 09 January 2006 09:29
To: [email protected]
Subject: Re: [CF-Dev] Template Dump

>- see footer for list info -<
have a look here:
CFusionMX\wwwroot\WEB-INF\debug\classic.cfm
you should be able to rip out some code from there in use in your template.
something like:
<cftry>
                <cfobject action="CREATE" type="JAVA"
class="coldfusion.server.ServiceFactory" name="factory">
                <cfset cfdebugger = factory.getDebuggingService()>
                <cfcatch type="Any"></cfcatch>
        </cftry>

        <!--- Load the debugging service's event table --->
        <cfset qEvents = cfdebugger.getDebugger().getData()>

        <!--- Produce the filtered event queries --->
        <!--- EVENT: Templates --->
        <cftry>
                <cfquery dbType="query" name="cfdebug_templates"
debug="false">
                        SELECT template, parent, Sum(endTime - StartTime) AS
et
                        FROM qEvents
                        WHERE type = 'Template'
                        GROUP BY template, parent
                        ORDER BY et DESC
                </cfquery>
                <cfcatch type="Any"></cfcatch>
        </cftry>

<cfoutput query="cfdebug_templates">
#cfdebug_templates.template#<br>
</cfoutput>

Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105

>>> [EMAIL PROTECTED] 09/01/2006 08:25:58 >>>
>- see footer for list info -<
Morning Guys

Is there a way (without having debug switched on) that I can output all of
the templates that were called from start to end of the page processing?

Thanks

--

Rich
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo 

--

>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<


**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed
and should not be disclosed to any other party. 
If you have received this email in error please notify your system manager
and the sender of this message.

This email message has been swept for the presence of computer viruses but
no guarantee is given that this e-mail message and any attachments are free
from viruses.

Fife Council
Tel: +44 (0) 1592 414141
**********************************************************************
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--

>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to