module ObjectTracer::Manageable
Public Instance Methods
delete_device(device)
click to toggle source
disable given device and remove it from registered list
# File lib/object_tracer/manageable.rb, line 14 def delete_device(device) device.trace_point&.disable @devices -= [device] end
devices()
click to toggle source
list all registered devices
# File lib/object_tracer/manageable.rb, line 9 def devices @devices end
reset!()
click to toggle source
reset everything to clean state and disable all devices
# File lib/object_tracer/manageable.rb, line 31 def reset! @suspend_new = false stop_all! end
stop_all!()
click to toggle source
stops all registered devices and remove them from registered list
# File lib/object_tracer/manageable.rb, line 20 def stop_all! @devices.each(&:stop!) end
suspend_new()
click to toggle source
# File lib/object_tracer/manageable.rb, line 4 def suspend_new @suspend_new end
suspend_new!()
click to toggle source
suspend enabling new trace points user can still create new Device instances, but they won't be functional
# File lib/object_tracer/manageable.rb, line 26 def suspend_new! @suspend_new = true end