lib/memdump/memory_dump.rb
# Perform common initial cleanup
#
# It basically removes common classes that usually make a dump analysis
# more complicated without providing more information
#
# Namely, it collapses internal Ruby node types ROOT and IMEMO, as well
# as common collection classes {COMMON_COLLAPSE_CLASSES}.
#
# One usually analyses a cleaned-up dump before getting into the full
# dump
#
# @return [MemDump] the filtered dump
Perform common initial cleanup
It basically removes common classes that usually make a dump analysis
more complicated without providing more information

Namely, it collapses internal Ruby node types ROOT and IMEMO, as well
as common collection classes {COMMON_COLLAPSE_CLASSES}.

One usually analyses a cleaned-up dump before getting into the full
dump
Perform common initial cleanup It basically removes common classes that usually make a dump analysis more complicated without providing more information Namely it collapses internal Ruby node types ROOT and IMEMO as well as common collection classes { COMMON_COLLAPSE_CLASSES } . One usually analyses a cleaned - up dump before getting into the full dump
def common_cleanup
            without_weakrefs = remove(objects_of_class 'WeakRef')
            to_collapse = without_weakrefs.find_all do |r|
                COMMON_COLLAPSE_CLASSES.include?(r['class']) ||
                    COMMON_COLLAPSE_TYPES.include?(r['type']) ||
                    r['method'] == 'dump_all'
            end
            without_weakrefs.collapse(to_collapse)
        end
def common_cleanup without_weakrefs = remove ( objects_of_class 'WeakRef' ) to_collapse = without_weakrefs . find_all do | r | COMMON_COLLAPSE_CLASSES . include? ( r [ 'class' ] ) || COMMON_COLLAPSE_TYPES . include? ( r [ 'type' ] ) || r [ 'method' ] == 'dump_all' end without_weakrefs . collapse ( to_collapse ) end
Perform common initial cleanup
It basically removes common classes that usually make a dump analysis
more complicated without providing more information
Perform common initial cleanup It basically removes common classes that usually make a dump analysis more complicated without providing more information
the filtered dump
the filtered dump
MemDump