1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
module Vmstat
# Gathered cpu performance statistics snapshot.
# @attr [Fixnum] num
# The number of the cpu starting at 0 for the first cpu.
# @attr [Fixnum] user
# Current counter of ticks spend in user. The counter can overflow.
# @attr [Fixnum] system
# Current counter of ticks spend in system. The counter can overflow.
# @attr [Fixnum] nice
# Current counter of ticks spend in nice. The counter can overflow.
# @attr [Fixnum] idle
# Current counter of ticks spend in idle. The counter can overflow.
class Cpu < Struct.new(:num, :user, :system, :nice, :idle)
end
end
|