This project is closed and read-only.
Backport #8116 » fix_objspace_example.patch
| 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
|
||