ObjectSpace.count_objects([result_hash]) â hash
Class Public methods
Counts objects for each type.
It returns a hash, such as:
{ :TOTAL=>10000, :FREE=>3011, :T_OBJECT=>6, :T_CLASS=>404, # ... }
The contents of the returned hash are implementation specific. It may be changed in future.
If the optional argument result_hash
is given, it is
overwritten and returned. This is intended to avoid probe effect.
This method is only expected to work on C Ruby.
Please login to continue.