- 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 class
TTop.Align
static class
TTop.Operation
-
Field Summary
Fields Modifier and Type Field Description long
delay
int
nthreads
List<String>
sort
static String
STAT_BLOCKED_COUNT
static String
STAT_BLOCKED_TIME
static String
STAT_CPU_TIME
static String
STAT_CPU_TIME_PERC
static String
STAT_LOCK_NAME
static String
STAT_LOCK_OWNER_ID
static String
STAT_LOCK_OWNER_NAME
static String
STAT_NAME
static String
STAT_STATE
static String
STAT_TID
static String
STAT_UPTIME
static String
STAT_USER_TIME
static String
STAT_USER_TIME_PERC
static String
STAT_WAITED_COUNT
static String
STAT_WAITED_TIME
List<String>
stats
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyMap<TTop.Operation>
getKeys()
void
run()
static void
ttop(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:
IOException
InterruptedException
-
-