Tried your code and got a line 22 error on my template, changed your line of same without apostr to: <cfset foo = "debug.getDebugger().getData()"> And it ran fine, gives tons of info, but I`m not a java developer to be able to decode it:-( I`ll look at it later though)
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: Rich Wild [mailto:r.wild@;e-mango.com] Sent: 18 October 2002 15:14 To: '[EMAIL PROTECTED]' Subject: RE: [ cf-dev ] Quickie - page execution times hmmm, been playing around (and haven't got a java introspector handy so am a bit blind) the closest I got is this: <CFOBJECT ACTION="CREATE" TYPE="JAVA" CLASS="coldfusion.server.ServiceFactory" NAME="factory"> <cfdump var="#factory#" expand="no"> <cfset debug = factory.debuggingService> <cfif NOT debug.isEnabled()> <cfset debugging_enabled = 0> <cfset debug.setEnabled(1)> <cfset foo = debug.getSettings()> <cfdump var="#foo#"> <cfset foo = debug.getDebugger().getData()> <cfdump var="#foo#"> <cfset debug.setEnabled(0)> <cfelse> <cfset foo = debug.getSettings()> <cfdump var="#foo#"> </cfif> but it dies when getting the getData() method, stating that it contained null pointers. I was also trying the getProperty() method of debuggingService, using getProperty(2), which is the number of EXECUTION_TIME_EVENT - but to no avail.... kind of running out of runway now... > -----Original Message----- > From: Douglas Humphris [mailto:Douglas.Humphris@;unitech.net] > Sent: 18 October 2002 11:21 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Quickie - page execution times > > > 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=9 > 449&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] > -- ** 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]
