Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Testing

How can I test how long it takes for ColdFusion Server to parse my templates?
0
benny34
Asked:
benny34
  • 3
2 Solutions
 
YogCommented:
Go to coldfusion administrator - click on debugging - then add your ip address at the bottom so that you can see procesing times when you run the page in browser..
There are so many options like "Show processing time - shows the time, in milliseconds, to process the entire page. " - a checkbox for this etc. So enable debugging and look for whatever you need in the output

Cheers
0
 
YogCommented:
Also, there is a CFSETTING Tag , if you do
<CFSETTING SHOWDEBUGOUTPUT="No" >, this will override the administrator and you wont be able to see anything. So incase if this is available in the application.cfm or any other file you want to see make it.
<CFSETTING SHOWDEBUGOUTPUT="No">

Cheers
   
   
0
 
YogCommented:
After doing this restart server so these changes to work..
0
 
jamathonCommented:
You could use <cfset start=gettickcount()> at the begining of the template and <cfset end=gettickcount()> at the end of the template. The difference between these is the number of milliseconds the template took to execute.
This could then be stored in a dbase or mailed to you. This may increase the template time but the result above will show the time taken prior to storring the result.

Another alternative is in the administrator under logging you can set cf to log templates taking longer than a certain time to execute.
0
 
mrichmonCommented:
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:

Split points between Yog and jamathon

Please leave any comments here within the next four days.

mrichmon
EE Cleanup Volunteer
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now