Skip to content

Instantly share code, notes, and snippets.

@panterch
Created September 22, 2010 20:58
Show Gist options
  • Save panterch/592552 to your computer and use it in GitHub Desktop.
Save panterch/592552 to your computer and use it in GitHub Desktop.
require 'tempfile'
tmp = Tempfile.new('poor_mans_profiler')
ObjectSpace.each_object {|obj| tmp << obj.to_s+"\n" if obj.is_a?(String) }
tmp.flush
%pre=tmp.path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment