- java.lang.Object
-
- org.jline.builtins.TTop
-
public class TTop extends Object
Thread Top implementation. TODO: option modification at runtime (such as implemented in less) is not currently supported TODO: one possible addition would be to detect deadlock threads and display them in a specific way
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTTop.Alignstatic classTTop.Operation
-
Field Summary
Fields Modifier and Type Field Description longdelayintnthreadsList<String>sortstatic StringSTAT_BLOCKED_COUNTstatic StringSTAT_BLOCKED_TIMEstatic StringSTAT_CPU_TIMEstatic StringSTAT_CPU_TIME_PERCstatic StringSTAT_LOCK_NAMEstatic StringSTAT_LOCK_OWNER_IDstatic StringSTAT_LOCK_OWNER_NAMEstatic StringSTAT_NAMEstatic StringSTAT_STATEstatic StringSTAT_TIDstatic StringSTAT_UPTIMEstatic StringSTAT_USER_TIMEstatic StringSTAT_USER_TIME_PERCstatic StringSTAT_WAITED_COUNTstatic StringSTAT_WAITED_TIMEList<String>stats
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyMap<TTop.Operation>getKeys()voidrun()static voidttop(Terminal terminal, PrintStream out, PrintStream err, String[] argv)
-
-
-
Field Detail
-
STAT_UPTIME
public static final String STAT_UPTIME
- See Also:
- Constant Field Values
-
STAT_TID
public static final String STAT_TID
- See Also:
- Constant Field Values
-
STAT_NAME
public static final String STAT_NAME
- See Also:
- Constant Field Values
-
STAT_STATE
public static final String STAT_STATE
- See Also:
- Constant Field Values
-
STAT_BLOCKED_TIME
public static final String STAT_BLOCKED_TIME
- See Also:
- Constant Field Values
-
STAT_BLOCKED_COUNT
public static final String STAT_BLOCKED_COUNT
- See Also:
- Constant Field Values
-
STAT_WAITED_TIME
public static final String STAT_WAITED_TIME
- See Also:
- Constant Field Values
-
STAT_WAITED_COUNT
public static final String STAT_WAITED_COUNT
- See Also:
- Constant Field Values
-
STAT_LOCK_NAME
public static final String STAT_LOCK_NAME
- See Also:
- Constant Field Values
-
STAT_LOCK_OWNER_ID
public static final String STAT_LOCK_OWNER_ID
- See Also:
- Constant Field Values
-
STAT_LOCK_OWNER_NAME
public static final String STAT_LOCK_OWNER_NAME
- See Also:
- Constant Field Values
-
STAT_USER_TIME
public static final String STAT_USER_TIME
- See Also:
- Constant Field Values
-
STAT_USER_TIME_PERC
public static final String STAT_USER_TIME_PERC
- See Also:
- Constant Field Values
-
STAT_CPU_TIME
public static final String STAT_CPU_TIME
- See Also:
- Constant Field Values
-
STAT_CPU_TIME_PERC
public static final String STAT_CPU_TIME_PERC
- See Also:
- Constant Field Values
-
delay
public long delay
-
nthreads
public int nthreads
-
-
Constructor Detail
-
TTop
public TTop(Terminal terminal)
-
-
Method Detail
-
ttop
public static void ttop(Terminal terminal, PrintStream out, PrintStream err, String[] argv) throws Exception
- Throws:
Exception
-
getKeys
public KeyMap<TTop.Operation> getKeys()
-
run
public void run() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
-