Class: Host::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/host/processor.rb

Overview

Class used to hold information about the system processor. Gathers information acording to the operating system and provides an easy way to access them. Important: the information that this class can retrieve depends on the host operating system. Linux is the better choice if you want a wide amount of information (as in /proc/cpuinfo). Other systems are also supported, such as OSX and FreBSD, but not as many informaiton cane be provided. Help us to enhance our support for many different operating systems!

The minimum functionality provided is:

  • get the number of cores

  • get information about a specific core

  • iterate over cores

  • get the model name

Class Method Summary collapse

Class Method Details

.processor_infoObject



24
25
26
# File 'lib/host/processor.rb', line 24

def processor_info 
  @info ||= []
end