Project

General

Profile

Backport #8116 » fix_objspace_example.patch

sho-h (Sho Hashimoto), 03/18/2013 10:15 PM

View differences:

ext/objspace/objspace.c (working copy)
*
* def memsize_of_all klass = false
* total = 0
* ObjectSpace.each_objects{|e|
* ObjectSpace.each_object{|e|
* total += ObjectSpace.memsize_of(e) if klass == false || e.kind_of?(klass)
* }
* total
    (1-1/1)