Package oshi.util.platform.unix.freebsd
Class ProcstatUtil
java.lang.Object
oshi.util.platform.unix.freebsd.ProcstatUtil
Reads from procstat into a map
-
Method Summary
-
Method Details
-
getCwdMap
Gets a map containing current working directory info- Parameters:
pid
- a process ID, optional- Returns:
- a map of process IDs to their current working directory. If
pid
is a negative number, all processes are returned; otherwise the map may contain only a single element forpid
-
getCwd
Gets current working directory info- Parameters:
pid
- a process ID- Returns:
- the current working directory for that process.
-
getOpenFiles
public static long getOpenFiles(int pid) Gets open files- Parameters:
pid
- The process ID- Returns:
- the number of open files.
-