Modifier and Type | Method and Description |
---|---|
static ProcessHelper |
getInstance()
Gets the singleton instance of this class.
|
Long |
getPid()
Gets the native process identifier for the current process.
|
Long |
getPid(Object process)
Gets the native process identifier for the given process instance.
|
ProcessResourceConsumption |
getProcessResourceConsumption(long pid)
Gets resource consumption of the process with the given pid.
|
ProcessResourceConsumption |
getTotalResourceConsumption(long pid)
Gets resource consumption of the process subtree rooted at the process with the given pid.
|
boolean |
hasProcessFinished(Object process) |
public static ProcessHelper getInstance()
@Nullable public ProcessResourceConsumption getTotalResourceConsumption(long pid)
@Nullable public ProcessResourceConsumption getProcessResourceConsumption(long pid)
public boolean hasProcessFinished(Object process)