Hi guys, can anyone help a little lady with this coding problem. I am working
on a Fusebox app which is quite large and has a number of include files
embedded in each page. During development is there some code which might
access the name of the include files?
boughtonp - 31 Jan 2006 15:40 GMT
If you turn on debugging output it should show a list of the templates and the
time taken to execute.
Here's how the debug script does it:
<cfobject action="CREATE" type="JAVA" class="coldfusion.server.ServiceFactory"
name="factory">
<cfset cfdebugger = factory.getDebuggingService()>
<cfset qEvents = cfdebugger.getDebugger().getData()>
<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>
<cfdump var="#cfdebug_templates#"/>