File: cpu.rb

package info (click to toggle)
ruby-vmstat 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: ruby: 1,136; ansic: 347; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (4)
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