org.bootchart.parser.linux
public class ProcDiskStatParser extends Object
/proc/diskstats
. The samples contain information about disk
IO activity.
Method Summary | |
---|---|
static double | getMaxDiskTPut(List ioSampleList)
Returns the maximum throughput seen in the iostat sample list.
|
static Stats | parseLog(InputStream is, int numCpu)
Parses the proc_diskstats.log file. |
Parameters: ioSampleList iostat sample list
Returns: maximum throughput
proc_diskstats.log
file. The output from
/proc/diskstat
is used to collect the disk statistics.
Parameters: is the input stream to read from numCpu number of processors
Returns: disk statistics (DiskUtilSample and DiskTPutSample samples)
Throws: IOException if an I/O error occurs