org.bootchart.parser.linux
クラス PacctParser

java.lang.Object
  上位を拡張 org.bootchart.parser.linux.PacctParser

public class PacctParser
extends Object

PacctParser parses the BSD process accounting v3 files. The accounting file contains information about process creation times, PIDs, PPIDs etc. It is used to get detailed information about process forks, filling in any dependency blanks caused by the polling nature of /proc/[PID]/top logging.


コンストラクタの概要
PacctParser()
           
 
メソッドの概要
static List getPPIDs(int pid, Map forkMap)
          Returns a list of all parent PIDs (parent, grandparent, etc.) for the specified PID.
static Map parseLog(InputStream is)
          Parses the pacct accounting file.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PacctParser

public PacctParser()
メソッドの詳細

parseLog

public static Map parseLog(InputStream is)
                    throws IOException
Parses the pacct accounting file. See include/linux/acct.h for format.

パラメータ:
is - the input stream to parse
戻り値:
a map of Integer to Integer forks
例外:
IOException - if an I/O error occurs

getPPIDs

public static List getPPIDs(int pid,
                            Map forkMap)
Returns a list of all parent PIDs (parent, grandparent, etc.) for the specified PID.

パラメータ:
pid - the PID to get the PPIDs for
forkMap - fork map
戻り値:
a list of parent PIDs