Not really, I'm afraid Colm. No time for playing right now. Perhaps later. D
-----Original Message----- From: Colm Brazel [mailto:c.brazel@;ntlworld.ie] Sent: 18 October 2002 11:19 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Quickie - page execution times >>> >Have been playing around with the factory and the following code works. Only thing is, executionTime is always 2! Not quite sure why because I've thrown in a loop to slow the script down. Anyone else know?: ><!--- Access factory ---> ><cfscript> > debugger = createObject("JAVA","coldfusion.debug.DebuggingServiceImpl"); > executionTime = debugger.execution_time_event; ></cfscript> >Execution time is <CFOUTPUT>#executionTime#</CFOUTPUT> milliseconds. Doug, Yes, works now for me as well. Have you played with it enough to say be able to give the code that works (or how to construct) with the other objects under DebuggingServiceImpl, say code that would give FormVar or the SqlQuery object? rgds Colm Colm Brazel MA CB Publications www.cbweb.net <http://www.cbweb.net> [EMAIL PROTECTED] <mailto:design@;cbweb.net> [EMAIL PROTECTED] <mailto:cbweb@;iol.ie> -----Original Message----- From: Douglas Humphris [mailto:Douglas.Humphris@;unitech.net] Sent: 18 October 2002 10:41 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Quickie - page execution times Have been playing around with the factory and the following code works. Only thing is, executionTime is always 2! Not quite sure why because I've thrown in a loop to slow the script down. Anyone else know?: <!--- Access factory ---> <cfscript> debugger = createObject("JAVA","coldfusion.debug.DebuggingServiceImpl"); executionTime = debugger.execution_time_event; </cfscript> Execution time is <CFOUTPUT>#executionTime#</CFOUTPUT> milliseconds. BTW, using the factory is completely undocumented except (AFAIK) for Ben Forta's article. MM won't document it because they don't support it. So I wouldn't go using this stuff in your production environment. Cheers, Douglas -----Original Message----- From: Colm Brazel [mailto:c.brazel@;ntlworld.ie] Sent: 17 October 2002 21:20 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Quickie - page execution times >>as described by Ben HERE: >>http://www.sys-con.com/coldfusion/article2a.cfm?id=500&count=9449&tot=11&p age=7 >><!--- Access factory ---> U><CFOBJECT ACTION="CREATE" U>TYPE="JAVA" U>CLASS="coldfusion. U>server.ServiceFactory" U>NAME="factory"> U><!--- Dump factory contents ---> ><CFDUMP VAR="#factory#"> Doug, Tried the above( I`m late back on this), but I get a classpath path error, server can`t find it, where is this set and waht do you set it as? In registry or on server in admin where you can, "Specify any additional class paths for the JVM. Separate multiple directories with commas" BTW, OT from this, how do you get Studio to use Dreamweaver MX instead of UltraDev as default editor? rgds Colm Colm Brazel MA CB Publications www.cbweb.net <http://www.cbweb.net> [EMAIL PROTECTED] <mailto:design@;cbweb.net> [EMAIL PROTECTED] <mailto:cbweb@;iol.ie> -----Original Message----- From: Douglas Humphris [mailto:Douglas.Humphris@;unitech.net] Sent: 17 October 2002 11:36 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Quickie - page execution times Sorry pressed Send before finished: as described by Ben HERE: http://www.sys-con.com/coldfusion/article2a.cfm?id=500&count=9449&tot=11&pag e=7 the code below is how he got hold of the factory methods... -----Original Message----- From: Douglas Humphris Sent: 17 October 2002 11:35 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Quickie - page execution times You could use the CFMX factory as cescribed by Ben Forta here: <!--- Access factory ---> <CFOBJECT ACTION="CREATE" TYPE="JAVA" CLASS="coldfusion. server.ServiceFactory" NAME="factory"> <!--- Dump factory contents ---> <CFDUMP VAR="#factory#"> -----Original Message----- From: Giles Roadnight [mailto:giles.roadnight@;goldcockerelbooks.co.uk] Sent: 17 October 2002 11:32 To: [EMAIL PROTECTED] Subject: [ cf-dev ] Quickie - page execution times Hi Is there a way in MX to output the length of time a page took to execute without turning on debugging? I know about gettickCount() I was just wondering if you directly output the time. Possibly with CFtrace - I can't find anything about this in the help. Giles Roadnight http://giles.roadnight.name -- ** 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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 -- ** 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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 -- ** 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]
