module Minitest::GCStats

Constants

VERSION

Attributes

gc_stats[RW]

Public Class Methods

current() click to toggle source
# File lib/minitest/gcstats.rb, line 8
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 23
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 18
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 12
def run
  r = super
  r.gc_stats = self.gc_stats
  r
end