Sha256: 010b1ffd278800bff3c2bbc36593179a67957abe83bdd2ea07cffc2c4dde3836
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 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::Inform.loggers.clear Ramaze.start :adapter => :mongrel, :sourcereload => false
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.5 | examples/memleak_detector.rb |