Cheers Spike, works a treat.
D

-----Original Message-----
From: Spike [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2003 17:06
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Execution time on CFMX?


Something like this should do it.

You might want to dump the qEvents query just to see what else you can
get.

<cfif isDebugMode()>
        <cfscript>
        factory =
createObject('java','coldfusion.server.ServiceFactory');
        debugger = factory.getDebuggingService();
        qDebug = debugger.getDebugger().getData();
        </cfscript>
        <cfquery dbType="query" name="q" debug="false">
        SELECT template, parent, Sum(endTime - StartTime) AS pagetime
        FROM qDebug
        WHERE type = 'Template'
        GROUP BY template, parent
        ORDER BY pagetime DESC
        </cfquery>
        <cfoutput>Execution Time = #q.pagetime#<br></cfoutput>
        <cfdump var="#qDebug#">
</cfif>

Spike

Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com

> -----Original Message-----
> From: Douglas Humphris [mailto:[EMAIL PROTECTED]] 
> Sent: 17 January 2003 16:52
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] Execution time on CFMX?
> 
> 
> Has anyone managed to figure out how to get the execution 
> time of a template on CFMX before I attempt to do it?
> 
> Cheers,
> Douglas
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to