提交 4efc38b3 编写于 作者: K kohsuke

added a probe interface to dump all the threads.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3085 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c2cbe903
......@@ -428,4 +428,8 @@ public class Functions {
i = (Item) ig;
}
}
public Map<Thread,StackTraceElement[]> dumpAllThreads() {
return Thread.getAllStackTraces();
}
}
<!--
Produces stack dump of all threads by using java.lang.Thread.
This only offers limited information but I feel more confidence in the
simple implementation, so left as-is.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:layout secure="true">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<h1>Thread Dump</h1>
<j:forEach var="e" items="${h.dumpAllThreads().entrySet()}">
<h2>${e.key} (${e.key.state})</h2>
<j:forEach var="f" items="${e.value}">
<div>${f}</div>
</j:forEach>
</j:forEach>
</l:main-panel>
</l:layout>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册