Sha256: c1de0373e68856bec52c906e6b70926e356288cf25b27c3ab0122b7b7966ad35

Contents?: true

Size: 656 Bytes

Versions: 20

Compression:

Stored size: 656 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

require 'rubygems'
require 'ramaze'

# you can access it now with http://localhost:7000/
# This should output
# Hello, World!
# in your browser

class MainController < Ramaze::Controller
  def index
    "Hello, World!"
  end
end

def check
  os = []
  ObjectSpace.each_object{|o| os << o }
  p os.inject(Hash.new(0)){|s,v| s[v.class] += 1; s}.sort_by{|k,v| v}
end

Thread.new do
  loop do
    check
    sleep 5
  end
end

Ramaze::Log.loggers.clear
Ramaze.start :adapter => :mongrel, :sourcereload => false

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.09 examples/misc/memleak_detector.rb
Pistos-ramaze-2008.12 examples/misc/memleak_detector.rb
Pistos-ramaze-2009.01 examples/misc/memleak_detector.rb
Pistos-ramaze-2009.02 examples/misc/memleak_detector.rb
clivecrous-ramaze-0.3.9.5 examples/memleak_detector.rb
manveru-ramaze-2008.07 examples/misc/memleak_detector.rb
manveru-ramaze-2008.08 examples/misc/memleak_detector.rb
manveru-ramaze-2008.09 examples/misc/memleak_detector.rb
manveru-ramaze-2008.10 examples/misc/memleak_detector.rb
manveru-ramaze-2008.12 examples/misc/memleak_detector.rb
manveru-ramaze-2009.01 examples/misc/memleak_detector.rb
ptomato-ramaze-2009.02.1 examples/misc/memleak_detector.rb
ptomato-ramaze-2009.02 examples/misc/memleak_detector.rb
ramaze-2008.11 examples/misc/memleak_detector.rb
ramaze-0.3.9.1 examples/memleak_detector.rb
ramaze-0.3.9 examples/memleak_detector.rb
ramaze-2009.01 examples/misc/memleak_detector.rb
ramaze-2008.06 examples/misc/memleak_detector.rb
ramaze-2009.03 examples/misc/memleak_detector.rb
ramaze-2009.02 examples/misc/memleak_detector.rb