module Delfos::CallStack

Constants

CALL_STACK_MUTEX

Public Instance Methods

pop() click to toggle source
# File lib/delfos/call_stack.rb, line 27
def pop
  stack.pop
end
pop_until_top!() click to toggle source
# File lib/delfos/call_stack.rb, line 31
def pop_until_top!
  stack.pop_until_top!
end
push(method_object) click to toggle source
# File lib/delfos/call_stack.rb, line 23
def push(method_object)
  stack.push(method_object)
end
reset!() click to toggle source
# File lib/delfos/call_stack.rb, line 11
def reset!
  CALL_STACK_MUTEX.synchronize do
    Thread.current[:_delfos__call_stack] = nil
  end
end
save!(call_sites, execution_number) click to toggle source
# File lib/delfos/call_stack.rb, line 35
def save!(call_sites, execution_number)
  Delfos::MethodLogging.save_call_stack(call_sites, execution_number)
end
stack() click to toggle source
# File lib/delfos/call_stack.rb, line 17
def stack
  CALL_STACK_MUTEX.synchronize do
    Thread.current[:_delfos__call_stack] ||= Stack.new(on_empty: method(:save!))
  end
end