Java/jdk1.6.0_21/demo/scripting/jconsole-plugin/src/scripts/jstack.js
/**
 * print given ThreadInfo using given printFunc
 */
print given ThreadInfo using given printFunc
print given ThreadInfo using given printFunc
function printThreadInfo(ti, printFunc) {
    printFunc(ti.threadId + " - " + ti.threadName + " - " + ti.threadState);
    var stackTrace = ti.stackTrace;
    for (var i in stackTrace) {
        printFunc("\t" + stackTrace[i]);
    }
}
function printThreadInfo ( ti , printFunc ) { printFunc ( ti . threadId + " - " + ti . threadName + " - " + ti . threadState ) ; var stackTrace = ti . stackTrace ; for ( var i in stackTrace ) { printFunc ( "\t" + stackTrace [ i ] ) ; } }
print given ThreadInfo using given printFunc
print given ThreadInfo using given printFunc