Created
January 22, 2016 15:47
-
-
Save astroza/4a0d072a25258a85646a to your computer and use it in GitHub Desktop.
bin/dj_inspector.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment')) | |
Thread.start(TCPServer.new(51313)) do |server| | |
loop do | |
puts "listening" | |
client = server.accept | |
puts "new client" | |
while line = client.gets | |
puts line.chop | |
end | |
client.close | |
end | |
end | |
a=Inspector.new | |
a.delay.inspect_objects_space | |
sleep 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment