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.7.0.alpha.2-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.7.0.alpha.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.7.0.alpha.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.7.0.alpha.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.6.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.6.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.6.0-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.6.0 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.6.0.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.6.0.beta.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.3-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.3 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.3.alpha.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.3.alpha.2-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.3.alpha.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.3.alpha.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.2-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.1-java spec/support/mocks/fake_gc_profiler.rb
appsignal-2.5.1 spec/support/mocks/fake_gc_profiler.rb