add proc_stat.threads

This commit is contained in:
Doug MacEachern committed 2007-10-20 12:49:37 +00:00
1 parent e82820a8c5
commit 8ff408bb44
4 files changed
+12 -1

No files matched your search

+5
View File
@@ -620,6 +620,11 @@ our %classes = (
desc => 'Total number of processes in zombie state',
plat => '*'
},
{
name => 'threads', type => 'Long',
desc => 'Total number of threads',
plat => '*'
},
],
ProcExe => [
{
@@ -50,7 +50,7 @@ public class Top {
stat.getSleeping() + " sleeping, " +
stat.getRunning() + " running, " +
stat.getZombie() + " zombie, " +
stat.getStopped() + " stopped";
stat.getStopped() + " stopped... " + stat.getThreads() + " threads";
}
public static void main(String[] args) throws Exception {