Class: Vmstat::Cpu
- Inherits:
-
Struct
- Object
- Struct
- Vmstat::Cpu
- Defined in:
- lib/vmstat/cpu.rb
Overview
Gathered cpu performance statistics snapshot.
Instance Attribute Summary collapse
-
#idle ⇒ Fixnum
Current counter of ticks spend in idle.
-
#nice ⇒ Fixnum
Current counter of ticks spend in nice.
-
#num ⇒ Fixnum
The number of the cpu starting at 0 for the first cpu.
-
#system ⇒ Fixnum
Current counter of ticks spend in system.
-
#user ⇒ Fixnum
Current counter of ticks spend in user.
Instance Attribute Details
#idle ⇒ Fixnum
Current counter of ticks spend in idle. The counter can overflow.
13 14 15 |
# File 'lib/vmstat/cpu.rb', line 13 def idle @idle end |
#nice ⇒ Fixnum
Current counter of ticks spend in nice. The counter can overflow.
13 14 15 |
# File 'lib/vmstat/cpu.rb', line 13 def nice @nice end |
#num ⇒ Fixnum
The number of the cpu starting at 0 for the first cpu.
13 14 15 |
# File 'lib/vmstat/cpu.rb', line 13 def num @num end |
#system ⇒ Fixnum
Current counter of ticks spend in system. The counter can overflow.
13 14 15 |
# File 'lib/vmstat/cpu.rb', line 13 def system @system end |
#user ⇒ Fixnum
Current counter of ticks spend in user. The counter can overflow.
13 14 15 |
# File 'lib/vmstat/cpu.rb', line 13 def user @user end |