.getRequest().getContextPath()#/CFIDE/debug/images/arrow.gif)
" & templateOutput);
return "";
}
function drawTree(tree, indent, id, highlightThreshold) {
var alength = 1;
var i = 1;
var templateOuput = "";
// top level nodes (application.cfm,cgi.script_name,etc) have a -1 parent line number
if(tree[id].line EQ -1) {
writeoutput( "
" & "(#Tree[id].duration#ms) " & Tree[id].template & ".getRequest().getContextPath()#/CFIDE/debug/images/arrow.gif)
" & templateOutput );
}
if( isArray( tree[id].children ) and arrayLen( tree[id].children ) ) {
alength = arrayLen( tree[id].children );
for( i = 1; i lte alength; i = i + 1 ) {
if( isArray(tree[id].children[i].children) and arrayLen( tree[id].children[i].children ) gt 0 ) {
drawTree(tree, indent + 1, tree[id].children[i].templateid, highlightThreshold);
} else {
drawNode(tree, indent + 1, tree[id].children[i].templateid, highlightThreshold);
}
}
} else {
// single template, no includes?
//drawNode(tree, indent + 1, tree[id].template, highlightThreshold);
}
return "";
}