Class ProcessPerfCounterBlock
java.lang.Object
oshi.driver.common.windows.registry.ProcessPerfCounterBlock
Encapsulates process performance data from the registry performance counter block.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessPerfCounterBlock(String name, int parentProcessID, int priority, long privateWorkingSetSize, long workingSetSize, long startTime, long upTime, long bytesRead, long bytesWritten, long pageFaults) Creates a ProcessPerfCounterBlock. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the bytesRead.longGets the bytesWritten.getName()Gets the name.longGets the pageFaults.intGets the parentProcessID.intGets the priority.longGets the Private Working Set size.longGets the startTime.longGets the upTime.longGets the Working Set size (RSS).
-
Constructor Details
-
ProcessPerfCounterBlock
public ProcessPerfCounterBlock(String name, int parentProcessID, int priority, long privateWorkingSetSize, long workingSetSize, long startTime, long upTime, long bytesRead, long bytesWritten, long pageFaults) Creates a ProcessPerfCounterBlock.- Parameters:
name- the process nameparentProcessID- the parent process IDpriority- the priorityprivateWorkingSetSize- the private working set sizeworkingSetSize- the working set sizestartTime- the start timeupTime- the up timebytesRead- bytes readbytesWritten- bytes writtenpageFaults- page faults
-
-
Method Details
-
getName
-
getParentProcessID
public int getParentProcessID()Gets the parentProcessID.- Returns:
- the parentProcessID
-
getPriority
public int getPriority()Gets the priority.- Returns:
- the priority
-
getPrivateWorkingSetSize
public long getPrivateWorkingSetSize()Gets the Private Working Set size.- Returns:
- the Private Working Set size
-
getWorkingSetSize
public long getWorkingSetSize()Gets the Working Set size (RSS).- Returns:
- the Working Set size (RSS)
-
getStartTime
public long getStartTime()Gets the startTime.- Returns:
- the startTime
-
getUpTime
public long getUpTime()Gets the upTime.- Returns:
- the upTime
-
getBytesRead
public long getBytesRead()Gets the bytesRead.- Returns:
- the bytesRead
-
getBytesWritten
public long getBytesWritten()Gets the bytesWritten.- Returns:
- the bytesWritten
-
getPageFaults
public long getPageFaults()Gets the pageFaults.- Returns:
- the pageFaults
-