public class ProcUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static File[] |
getPidFiles()
Gets an array of files in the /proc directory with only numeric digit
filenames, corresponding to processes
|
static String |
getProcPath()
The proc filesystem location may be customized to allow alternative proc
plugins, particularly useful for containers.
|
static double |
getSystemUptimeSeconds()
Parses the first value in /proc/uptime for seconds since boot
|
static long[] |
readSystemCpuLoadTicks()
Gets the CPU ticks array from /proc/stat
|
public static String getProcPath()
public static double getSystemUptimeSeconds()
public static long[] readSystemCpuLoadTicks()
public static File[] getPidFiles()
Copyright © 2010–2019 oshi. All rights reserved.