Class CpuInfo

java.lang.Object
oshi.driver.linux.proc.CpuInfo

@ThreadSafe public final class CpuInfo extends Object
Utility to read CPU info from /proc/cpuinfo
  • Method Details

    • queryCpuManufacturer

      public static String queryCpuManufacturer()
      Gets the CPU manufacturer from /proc/cpuinfo
      Returns:
      The manufacturer if known, null otherwise
    • queryBoardInfo

      public static Quartet<String,String,String,String> queryBoardInfo()
      Gets the board manufacturer, model, version, and serial number from /proc/cpuinfo
      Returns:
      A quartet of strings for manufacturer, model, version, and serial number. Each one may be null if unknown.
    • queryFeatureFlags

      public static List<String> queryFeatureFlags()