Class: RubyMemcheck::Stack
- Inherits:
-
Object
- Object
- RubyMemcheck::Stack
- Defined in:
- lib/ruby_memcheck/stack.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#frames ⇒ Object
readonly
Returns the value of attribute frames.
Instance Method Summary collapse
-
#initialize(configuration, loaded_binaries, stack_xml) ⇒ Stack
constructor
A new instance of Stack.
- #skip? ⇒ Boolean
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
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
5 6 7 |
# File 'lib/ruby_memcheck/stack.rb', line 5 def configuration @configuration end |
#frames ⇒ Object (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
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 |