Class: NewRelic::Agent::StatsEngine::ScopeStackElement
- Inherits:
-
Object
- Object
- NewRelic::Agent::StatsEngine::ScopeStackElement
- Defined in:
- lib/new_relic/agent/stats_engine/transactions.rb
Overview
A simple stack element that tracks the current name and length of the executing stack
Instance Attribute Summary collapse
-
#children_time ⇒ Object
Returns the value of attribute children_time.
-
#deduct_call_time_from_parent ⇒ Object
readonly
Returns the value of attribute deduct_call_time_from_parent.
-
#name ⇒ Object
Returns the value of attribute name.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag, start_time, deduct_call_time) ⇒ ScopeStackElement
constructor
A new instance of ScopeStackElement.
Constructor Details
#initialize(tag, start_time, deduct_call_time) ⇒ ScopeStackElement
Returns a new instance of ScopeStackElement.
13 14 15 16 17 18 |
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 13 def initialize(tag, start_time, deduct_call_time) @tag = tag @start_time = start_time @deduct_call_time_from_parent = deduct_call_time @children_time = 0 end |
Instance Attribute Details
#children_time ⇒ Object
Returns the value of attribute children_time.
12 13 14 |
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 12 def children_time @children_time end |
#deduct_call_time_from_parent ⇒ Object (readonly)
Returns the value of attribute deduct_call_time_from_parent.
11 12 13 |
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 11 def deduct_call_time_from_parent @deduct_call_time_from_parent end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 12 def name @name end |
#start_time ⇒ Object
Returns the value of attribute start_time.
12 13 14 |
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 12 def start_time @start_time end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
11 12 13 |
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 11 def tag @tag end |