lib/tunemygc/snapshotter.rb in tunemygc-1.0.3 vs lib/tunemygc/snapshotter.rb in tunemygc-1.0.4
- old
+ new
@@ -3,10 +3,10 @@
require 'thread'
module TuneMyGc
class Snapshotter
UNITS_OF_WORK = /REQUEST_PROCESSING_STARTED|REQUEST_PROCESSING_ENDED/
- MAX_SAMPLES = 1000
+ MAX_SAMPLES = (ENV['RUBY_GC_MAX_SAMPLES'] ? Integer(ENV['RUBY_GC_MAX_SAMPLES']) : 2000)
attr_reader :buffer
attr_accessor :unit_of_work
def initialize(buf = Queue.new)
\ No newline at end of file