This is a coldfusion stack trace tool to help coldfusion developers debug and develop coldfusion applications.
var oSession = createObject("java","coldfusion.runtime.SessionTracker"); var mySessions= oSession.getSessionCollection(arguments.appName); return StructCount(mySessions); var runtime = createObject("java","java.lang.Runtime").getRuntime(); var stMemInfo = structNew(); stMemInfo.freeMemory = runtime.freeMemory(); stMemInfo.maxMemory = runtime.maxMemory(); stMemInfo.totalMemory = runtime.totalMemory(); stMemInfo.heapMemory = runtime.totalMemory()-runtime.freeMemory(); return stMemInfo; var runtime = createObject("java","java.lang.Runtime").getRuntime(); return runtime.availableProcessors(); // code to display the java instance name var jrunObj = createObject("java", "jrunx.kernel.JRun"); return jrunObj.getServerName(); Time: #now()# #dumpVar# Time: #now()# SELECT parent, template, body, name, line, attributes, starttime, endtime, stacktrace as stacktracedata FROM qEvents SELECT DISTINCT template FROM qEvents ORDER BY template #DateFormat(now(),"full")# #TimeFormat(now(),"full")# parenttemplatebodylinestacktrace #qTemplates.currentrow# #parent# #Template# #exeTime# ms #name##Body# #Line# [+/-] Total Execution time: #totalexetime# ms #CurrentRow# #template#
for a sample stack trace, zstacktrace_2008-04-10-09-47-57.htm [this is a 3 MB html file, download time will be slow]