Sha256: eecea608645b965f86b73224377a324fa1ab4727a904927f643c26ded55ca117

Contents?: true

Size: 269 Bytes

Versions: 446

Compression:

Stored size: 269 Bytes

Contents

class FakeGCProfiler
  attr_accessor :total_time
  attr_writer :clear_delay

  def initialize(total_time = 0)
    @total_time = total_time
  end

  def clear
    sleep clear_delay
    @total_time = 0
  end

  private

  def clear_delay
    @clear_delay ||= 0
  end
end

Version data entries

446 entries across 446 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.6 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.5-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.5 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.4-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.4 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.3-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.3 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.2-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.0-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.0 spec/support/mocks/fake_gc_profiler.rb
appsignal-3.13.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-3.13.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-3.13.1.alpha.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-3.13.1.alpha.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.0.beta.2-java spec/support/mocks/fake_gc_profiler.rb
appsignal-4.0.0.beta.2 spec/support/mocks/fake_gc_profiler.rb