public class IOStatCollector extends AbstractProcessCollector implements ICounterHierarchy, IRequiredHostCounters, IHostCounters
iostat
under OSX. Unfortunately,
iostat
does not break down the reads and writes and does not
report IO Wait. This information is obviously available from OSX as it is
provided by the ActivityMonitor, but we can not get it from
iostat
.Modifier and Type | Class and Description |
---|---|
protected class |
IOStatCollector.IOStatReader
Sample output for
iostat -d -C -n 999 -w 60 , where
60 is the interval. |
activeProcess, log
CPU_PercentIOWait, CPU_PercentSystemTime, CPU_PercentUserTime, Info_NumProcessors, Info_ProcessorInfo, Memory_Bytes_Available, Memory_Bytes_Free, Memory_MinorFaultsPerSec, Memory_SwapBytesAvailable, Memory_SwapBytesUsed, PhysicalDisk_BytesPerSec, PhysicalDisk_ReadsPerSec, PhysicalDisk_TransfersPerSec, PhysicalDisk_WritesPerSec
CPU_PercentProcessorTime, Info_Architecture, Info_OperatingSystemName, Info_OperatingSystemVersion, LogicalDisk_PercentFreeSpace, Memory_majorFaultsPerSecond, PhysicalDisk_BytesReadPerSec, PhysicalDisk_BytesWrittenPerSec
CPU, Info, LogicalDisk, Memory, Memory_GarbageCollectors, Memory_Memory_Pools, PhysicalDisk, ps
Constructor and Description |
---|
IOStatCollector(int interval,
boolean cpuStats) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCommand() |
CounterSet |
getCounters()
Return performance counters.
|
AbstractProcessReader |
getProcessReader() |
getInterval, setEnvironment, start, stop
public IOStatCollector(int interval, boolean cpuStats)
interval
- The interval for the collected statistics.cpuStats
- true
if the collector should report on the CPU
stats (us, sy, id).public List<String> getCommand()
getCommand
in class AbstractProcessCollector
public CounterSet getCounters()
ICounterSetAccess
getCounters
in interface ICounterSetAccess
public AbstractProcessReader getProcessReader()
getProcessReader
in class AbstractProcessCollector
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.