class SystemProcessors

Base and factory for processor probes

Constants

UNLIMITED

Attributes

architecture[RW]
core_count[RW]
count[RW]
family[RW]
l2_cache[RW]
l3_cache[RW]
manufacturer[RW]
model[RW]
model_name[RW]
speed[RW]
thread_count[RW]

Public Class Methods

probe() click to toggle source
# File lib/processors.rb, line 20
def self.probe
  case RbConfig::CONFIG['host_os']
  when /linux/
    LinuxSystemProcessors.new
  when /darwin/
    MacSystemProcessors.new
  when /cygwin|mswin|mingw32|mingw|bccwin|wince|emx/
    WindowsSystemProcessors.new
  else
    RbConfig::CONFIG['host_os']
  end
end