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-2.3.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.3.0 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.3.0.beta.3 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.3.0.beta.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.3.0.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.2.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.2.0 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.2.0.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.1.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.0 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.6 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.0.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.5 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.5.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.0.alpha.3 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.0.alpha.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.1.0.alpha.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.4 spec/support/mocks/fake_gc_profiler.rb