Class: Minitest::Memory::AllocationCounter::Allocation

Inherits:
Struct
  • Object
show all
Defined in:
lib/minitest/memory.rb

Overview

Tracks allocation count and total byte size for a class.

Instance Attribute Summary collapse

Instance Attribute Details

#count ⇒ Object

Returns the value of attribute count

Returns:

  • (Object) —

    the current value of count



18
19
20
# File 'lib/minitest/memory.rb', line 18

def count
  @count
end

#size ⇒ Object

Returns the value of attribute size

Returns:

  • (Object) —

    the current value of size



18
19
20
# File 'lib/minitest/memory.rb', line 18

def size
  @size
end

#sources ⇒ Object

Returns the value of attribute sources

Returns:

  • (Object) —

    the current value of sources



18
19
20
# File 'lib/minitest/memory.rb', line 18

def sources
  @sources
end