Sha256: 96d4b5b84df2a4e5d4473fb04555e6acec09ef1c6a60fdf12fe32631d6f041d1

Contents?: true

Size: 475 Bytes

Versions: 11

Compression:

Stored size: 475 Bytes

Contents

########################################################################
# example_getrusage.rb
#
# Simple demonstration of the Process.getrusage method. You can run
# this code via the 'rake example_getrusage' task.
#
# Modify as you see fit.
########################################################################
require 'proc/wait3'
require 'pp'

# Show resource stats for this process for 30 seconds
10.times do
   pp Process.getrusage
   puts "=" * 50
   sleep 3 
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
proc-wait3-1.9.1 examples/example_getrusage.rb
proc-wait3-1.9.0 examples/example_getrusage.rb
proc-wait3-1.8.1 examples/example_getrusage.rb
proc-wait3-1.8.0 examples/example_getrusage.rb
proc-wait3-1.7.3 examples/example_getrusage.rb
proc-wait3-1.7.2 examples/example_getrusage.rb
proc-wait3-1.7.1 examples/example_getrusage.rb
proc-wait3-1.7.0 examples/example_getrusage.rb
proc-wait3-1.6.0 examples/example_getrusage.rb
proc-wait3-1.5.6 examples/example_getrusage.rb
proc-wait3-1.5.5 examples/example_getrusage.rb