Last active
August 29, 2015 14:01
-
-
Save cbliard/f4256e65ee179ec59360 to your computer and use it in GitHub Desktop.
Memory allocation trace
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 'allocation_stats | |
stats = AllocationStats.trace { Project.last.as_json }; | |
puts stats.allocations(alias_paths: true).at_least(5).group_by(:sourcefile, :sourceline, :class_plus).sort_by_count.to_text | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment