formEncoding = getEncoding("FORM"); urlEncoding = getEncoding("URL"); setEncoding("FORM", formEncoding); setEncoding("URL", urlEncoding); SELECT *, (endTime - startTime) AS executionTime FROM qEvents WHERE type = 'SqlQuery' SELECT *, (endTime - startTime) AS executionTime FROM qEvents WHERE type = 'ObjectQuery' SELECT *, (endTime - startTime) AS executionTime FROM qEvents WHERE type = 'StoredProcedure' SELECT *, (endTime - startTime) AS executionTime FROM qEvents WHERE type = 'Trace' SELECT *, (endTime - startTime) AS executionTime FROM qEvents WHERE type = 'CFTimer' SELECT * FROM qEvents WHERE type = 'Exception' SELECT (endTime - startTime) AS executionTime FROM qEvents WHERE type = 'ExecutionTime' //UDF - Handle Kojak output of complex data types. function CFDebugSerializable(variable) { var ret = ""; if(IsSimpleValue(variable)) { ret = variable; } else { if (IsStruct(variable)) { ret = ("Struct (" & StructCount(variable) & ")"); } else if(IsArray(variable)) { ret = ("Array (" & ArrayLen(variable) & ")"); } else if(IsQuery(variable)) { ret = ("Query (" & variable.RecordCount & ")"); } else { ret = ("Complex type"); } } return ret; } // UDF - tree writing function drawNode(nTree, indent, id, highlightThreshold) { var templateOuput = ""; if( nTree[id].duration GT highlightThreshold ) { templateOutput = "(#nTree[id].duration#ms) " & nTree[id].template & " @ line " & #nTree[id].line# & "
"; } else { templateOutput = "(#nTree[id].duration#ms) " & nTree[id].template & " @ line " & #nTree[id].line# & "
"; } writeOutput(repeatString("  ·", indent + 1) & " arrowtop level " & 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( "top level " & "(#Tree[id].duration#ms) " & Tree[id].template & "
" ); } else { if( Tree[id].duration GT highlightThreshold ) { templateOutput = "(#Tree[id].duration#ms) " & Tree[id].template & " @ line " & #Tree[id].line# & "
"; } else { templateOutput = "(#Tree[id].duration#ms) " & Tree[id].template & " @ line " & #Tree[id].line# & "
"; } writeoutput( repeatString("  ·", indent + 1) & " arrowtop level " & 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 ""; }
#keyName#'> '>