Package org.bootchart.parser.linux
Class ProcStatParser
java.lang.Object
org.bootchart.parser.linux.ProcStatParser
ProcStatParser parses log files produced by logging the output of
/proc/stat. The samples contain information about CPU times:
user, nice, system and idle; 2.6 kernels also include io_wait, irq and
softirq.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatsparseLog(InputStream is) Parses theproc_stat.logfile.
-
Constructor Details
-
ProcStatParser
public ProcStatParser()
-
-
Method Details
-
parseLog
Parses theproc_stat.logfile. The output from/proc/statis used to collect the CPU statistics.- Parameters:
is- the input stream to read from- Returns:
- CPU statistics (
CPUSamplesamples) - Throws:
IOException- if an I/O error occurs
-