Class: Stackprofiler::Filter::RebaseStack
- Inherits:
-
Object
- Object
- Stackprofiler::Filter::RebaseStack
- Defined in:
- lib/stackprofiler/filters/rebase_stack.rb
Instance Attribute Summary collapse
-
#top_names ⇒ Object
Returns the value of attribute top_names.
Class Method Summary collapse
Instance Method Summary collapse
- #filter(root, frames) ⇒ Object
-
#initialize(options = {}) ⇒ RebaseStack
constructor
A new instance of RebaseStack.
Constructor Details
#initialize(options = {}) ⇒ RebaseStack
Returns a new instance of RebaseStack.
6 7 8 |
# File 'lib/stackprofiler/filters/rebase_stack.rb', line 6 def initialize(={}) self.top_names = [:name].presence || RebaseStack.default end |
Instance Attribute Details
#top_names ⇒ Object
Returns the value of attribute top_names.
4 5 6 |
# File 'lib/stackprofiler/filters/rebase_stack.rb', line 4 def top_names @top_names end |
Class Method Details
.default ⇒ Object
19 20 21 |
# File 'lib/stackprofiler/filters/rebase_stack.rb', line 19 def default ['Stackprofiler::DataCollector#call', 'block in Stackprofiler#profile'] end |