|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.bootchart.parser.linux.PsParser
public class PsParser
PsParser parses log files produced by ps
.
コンストラクタの概要 | |
---|---|
PsParser()
|
メソッドの概要 | |
---|---|
static int |
getState(Map procInfo)
Returns the process state. |
static PsStats |
parseLog(InputStream is,
Map pidNameMap,
Map forkMap)
Parses the ps.log file. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PsParser()
メソッドの詳細 |
---|
public static PsStats parseLog(InputStream is, Map pidNameMap, Map forkMap) throws IOException
ps.log
file. Consecutive ps samples are
parsed and returned in a list. The ps samples are only parsed up to
the point where one of the specified exitProcesses
is
running and the system is idle.
If pidNameMap
is set, it is used to map PIDs to
command names. This is useful when init scripts are sourced, and thus
ps is unable to report the proper process name. A sysinit
modification is necessary to generate the mapping log file.
forkMap
is an optional map that provides detailed
information about process forking.
is
- the input stream to read frompidNameMap
- PID to name mapping map (optional)forkMap
- process forking map (optional)
IOException
- if an I/O error occurspublic static int getState(Map procInfo)
procInfo
- process info map
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |