Created
February 19, 2015 09:59
-
-
Save deepzm/f05bca5e8e8c526174e6 to your computer and use it in GitHub Desktop.
ruby heap dump
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
require 'objspace' | |
dumps = [] | |
ObjectSpace.each_object do |class_name| | |
dumps << ObjectSpace.dump(class_name, output: :string) | |
end | |
p dumps.length | |
p dumps[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment