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.0.3 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.2 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.0 spec/support/mocks/fake_gc_profiler.rb
appsignal-2.0.0.beta.1 spec/support/mocks/fake_gc_profiler.rb
appsignal-1.4.0.beta.1 spec/support/mocks/fake_gc_profiler.rb