Class ProcessInfo
java.lang.Object
com.sure.tool.system.ProcessInfo
进程信息(基于
ProcessHandle):PID / 命令 / 参数 / 启动时间 / CPU 时长 / 状态 / 父进程。- Since:
- 1.10.0
- Author:
- suretool
-
Method Details
-
getPid
public long getPid()进程 PID。- Returns:
- PID
-
getCommand
-
getArgs
-
getUser
-
getStartTime
-
getCpuDurationNanos
public long getCpuDurationNanos()累计 CPU 时长(纳秒)。- Returns:
- CPU 时长
-
getStatus
-
getParentPid
-
getStartTimeText
-
toString
-