Package oshi.driver.unix.aix.perfstat
Class PerfstatCpu
java.lang.Object
oshi.driver.unix.aix.perfstat.PerfstatCpu
@ThreadSafe public final class PerfstatCpu extends java.lang.Object
Utility to query performance stats for cpu
-
Method Summary
Modifier and Type Method Description static com.sun.jna.platform.unix.aix.Perfstat.perfstat_cpu_t[]
queryCpu()
Queries perfstat_cpu for per-CPU usage statisticsstatic long
queryCpuAffinityMask()
Returns affinity mask from the number of CPU in the OS.static com.sun.jna.platform.unix.aix.Perfstat.perfstat_cpu_total_t
queryCpuTotal()
Queries perfstat_cpu_total for total CPU usage statisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
queryCpuTotal
public static com.sun.jna.platform.unix.aix.Perfstat.perfstat_cpu_total_t queryCpuTotal()Queries perfstat_cpu_total for total CPU usage statistics- Returns:
- usage statistics
-
queryCpu
public static com.sun.jna.platform.unix.aix.Perfstat.perfstat_cpu_t[] queryCpu()Queries perfstat_cpu for per-CPU usage statistics- Returns:
- an array of usage statistics
-
queryCpuAffinityMask
public static long queryCpuAffinityMask()Returns affinity mask from the number of CPU in the OS.- Returns:
- affinity mask
-