org.bootchart.parser.linux
public class PacctParser extends Object
/proc/[PID]/top logging.
| Method Summary | |
|---|---|
| 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. |
Parameters: pid the PID to get the PPIDs for forkMap fork map
Returns: a list of parent PIDs
pacct accounting file. See
include/linux/acct.h for format.
Parameters: is the input stream to parse
Returns: a map of Integer to Integer forks
Throws: IOException if an I/O error occurs