Class: RubyMemcheck::Stack

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_memcheck/stack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration, loaded_binaries, stack_xml) ⇒ Stack

Returns a new instance of Stack.



7
8
9
10
# File 'lib/ruby_memcheck/stack.rb', line 7

def initialize(configuration, loaded_binaries, stack_xml)
  @configuration = configuration
  @frames = stack_xml.xpath("frame").map { |frame| Frame.new(configuration, loaded_binaries, frame) }
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



5
6
7
# File 'lib/ruby_memcheck/stack.rb', line 5

def configuration
  @configuration
end

#framesObject (readonly)

Returns the value of attribute frames.



5
6
7
# File 'lib/ruby_memcheck/stack.rb', line 5

def frames
  @frames
end

Instance Method Details

#skip?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
# File 'lib/ruby_memcheck/stack.rb', line 12

def skip?
  if @configuration.use_only_ruby_free_at_exit?
    skip_using_ruby_free_at_exit?
  else
    skip_using_original_heuristics?
  end
end