module Minitest::GCStats

Constants

HASH
VERSION

Attributes

gc_stats[RW]

Public Class Methods

current() click to toggle source
# File lib/minitest/gcstats.rb, line 12
def self.current
  GC.stat :total_allocated_objects
end

Public Instance Methods

after_teardown() click to toggle source
Calls superclass method
# File lib/minitest/gcstats.rb, line 38
def after_teardown
  self.gc_stats += Minitest::GCStats.current
  super
end
before_setup() click to toggle source
Calls superclass method
# File lib/minitest/gcstats.rb, line 33
def before_setup
  super
  self.gc_stats = -Minitest::GCStats.current
end
run() click to toggle source
Calls superclass method
# File lib/minitest/gcstats.rb, line 27
def run
  r = super
  r.gc_stats = self.gc_stats
  r
end