public class PacctParser
extends java.lang.Object
/proc/[PID]/top
logging.Constructor and Description |
---|
PacctParser() |
Modifier and Type | Method and Description |
---|---|
static java.util.List |
getPPIDs(int pid,
java.util.Map forkMap)
Returns a list of all parent PIDs (parent, grandparent, etc.) for the
specified PID.
|
static java.util.Map |
parseLog(java.io.InputStream is)
Parses the
pacct accounting file. |
public static java.util.Map parseLog(java.io.InputStream is) throws java.io.IOException
pacct
accounting file. See
include/linux/acct.h
for format.is
- the input stream to parsejava.io.IOException
- if an I/O error occurspublic static java.util.List getPPIDs(int pid, java.util.Map forkMap)
pid
- the PID to get the PPIDs forforkMap
- fork map