Dispatch enter and leave events for ConstantAndWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantOrWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantPathTargetNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantPathWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for NumberedReferenceReadNode
nodes and continue walking the tree.
Returns every spec that has the given full_name
Returns garbage collector generation for the given object
.
class B include ObjectSpace def foo trace_object_allocations do obj = Object.new p "Generation is #{allocation_generation(obj)}" end end end B.new.foo #=> "Generation is 3"
See ::trace_object_allocations
for more information and examples.
@foo += bar ^^^^^^^^^^^