Package oshi.driver.unix.aix.perfstat
Class PerfstatCpu
java.lang.Object
oshi.driver.unix.aix.perfstat.PerfstatCpu
Utility to query performance stats for cpu
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.platform.unix.aix.Perfstat.perfstat_cpu_t[]
queryCpu()
Queries perfstat_cpu for per-CPU usage statisticsstatic long
Returns affinity mask from the number of CPU in the OS.static com.sun.jna.platform.unix.aix.Perfstat.perfstat_cpu_total_t
Queries perfstat_cpu_total for total CPU usage statistics
-
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
-