Package org.bootchart.parser.linux
Class ProcDiskStatParser
java.lang.Object
org.bootchart.parser.linux.ProcDiskStatParser
ProcDiskStatParser parses log files produced by logging the output of
/proc/diskstats. The samples contain information about disk
IO activity.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetMaxDiskTPut(List ioSampleList) Returns the maximum throughput seen in the iostat sample list.static StatsparseLog(InputStream is, int numCpu) Parses theproc_diskstats.logfile.
-
Constructor Details
-
ProcDiskStatParser
public ProcDiskStatParser()
-
-
Method Details
-
parseLog
Parses theproc_diskstats.logfile. The output from/proc/diskstatis used to collect the disk statistics.- Parameters:
is- the input stream to read fromnumCpu- number of processors- Returns:
- disk statistics (
DiskUtilSampleandDiskTPutSamplesamples) - Throws:
IOException- if an I/O error occurs
-
getMaxDiskTPut
Returns the maximum throughput seen in the iostat sample list.- Parameters:
ioSampleList- iostat sample list- Returns:
- maximum throughput
-