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