Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 08/24/2014
Components: Documentation
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 1
Repro:
{code:java}
<cfif URL.tagsFirst>
<cftrace category="test" text="trace text from tag 1">
<cfset sleep(300)>
</cftrace>
<cftrace category="test" text="trace text from tag 2">
<cfset sleep(500)>
</cftrace>
<cfscript>
trace(category="test", text="trace text from script 1"){
sleep(700);
}
trace(category="test", text="trace text from script 2"){
sleep(1100);
}
</cfscript>
<cfelse>
<cfscript>
trace(category="test", text="trace text from script 1"){
sleep(300);
}
trace(category="test", text="trace text from script 2"){
sleep(500);
}
</cfscript>
<cftrace category="test" text="trace text from tag 1">
<cfset sleep(700)>
</cftrace>
<cftrace category="test" text="trace text from tag 2">
<cfset sleep(1100)>
</cftrace>
</cfif>
{code}
The tag version records the time of the block at the END of the block (which is correct). The script version records it at the beginning of the block (which is bloodly pointless).
Can't help but think you didn't test this.
It's the same in CF10.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3811003
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: