Sha256: cba5f56dc40fd9cafc12d3231235da5a10109e823a41008d1822ad4d3a6ac5f3

Contents?: true

Size: 610 Bytes

Versions: 7

Compression:

Stored size: 610 Bytes

Contents

# Path setting slight of hand:
$: << File.expand_path("../../lib", __FILE__)
require 'vmstator'

parser = Vmstator::Parser.new

parser.active  
# => Vmstator::DiskSummary

parser.average  
# => Vmstator::DiskSummary

parser.disk_statistics  
# => Vmstator::DiskStatistics
 
parser.disk_summary  
# => Vmstator::DiskSummary

parser.event_counter_statistics  
# => Vmstator::EventCounterStatistics

parser.slab_info  
# => Vmstator::SlabInfo

parser.forks  
# => Integer

parser.parse("-a -S m")
# => Whatever the flags were will determine output.

parser.version
# => String containing vmstat's version number.

Version data entries

7 entries across 6 versions & 1 rubygems

Version Path
vmstator-2.1.0 examples/linux_example.rb
vmstator-2.1.0 examples/basic_example.rb
vmstator-2.0.4 examples/basic_example.rb
vmstator-2.0.3 examples/basic_example.rb
vmstator-2.0.2 examples/basic_example.rb
vmstator-2.0.1 examples/basic_example.rb
vmstator-2.0.0 examples/basic_example.rb