summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gc.rb8
1 files changed, 6 insertions, 2 deletions
@@ -312,13 +312,17 @@ module GC
# call-seq:
# GC.latest_gc_info -> hash
# GC.latest_gc_info(hash) -> hash
- # GC.latest_gc_info(:major_by) -> :malloc
#
# Returns information about the most recent garbage collection.
#
- # If the optional argument, hash, is given,
# it is overwritten and returned.
# This is intended to avoid probe effect.
def self.latest_gc_info hash_or_key = nil
if hash_or_key == nil
hash_or_key = {}