class DEBUGGER__::DAP_TraceInspector::Custom_Recorder

Attributes

dropped_trace_cnt[RW]

Public Class Methods

new(max_log_size: nil) click to toggle source
Calls superclass method
# File debug-1.9.1/lib/debug/dap_custom/traceInspector.rb, line 104
def initialize max_log_size: nil
  if max_log_size
    @max_log_size = max_log_size
  else
    @max_log_size = 50000
  end
  @dropped_trace_cnt = 0
  super()
end

Public Instance Methods

append(frames) click to toggle source
# File debug-1.9.1/lib/debug/dap_custom/traceInspector.rb, line 116
def append frames
  if @log.size >= @max_log_size
    @dropped_trace_cnt += 1
    @log.shift
  end
  @log << frames
end