Sha256: e5ecd745c749ad257b7c7805229fccd2ff785287aefaf4a1a8dd8c11bb34e6dd

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

#!/usr/bin/env ruby

require_relative "../lib/endoscope"

Endoscope::Agent.new("patient.1", {url: "redis://127.0.0.1:6379"}).start

module Patient
  extend self

  def live
    say_hello
	  loop do
      think
      talk
      sleep
	  end
  end

  def say_hello
    puts "Hello from a sample instrumented process"
  end

  def think
    1000.times { 42 * 42 }
  end

  def talk
    print "."
  end

  def sleep
    Kernel.sleep 1
  end
end

Patient.live

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
endoscope-0.0.1 bin/patient