Class: NewRelic::Agent::StatsEngine::ScopeStackElement

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(name, deduct_call_time) ⇒ ScopeStackElement

Returns a new instance of ScopeStackElement.



10
11
12
13
14
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 10

def initialize(name, deduct_call_time)
  @name = name
  @deduct_call_time_from_parent = deduct_call_time
  @children_time = 0
end

Instance Attribute Details

#children_timeObject

Returns the value of attribute children_time.



9
10
11
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 9

def children_time
  @children_time
end

#deduct_call_time_from_parentObject (readonly)

Returns the value of attribute deduct_call_time_from_parent.



8
9
10
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 8

def deduct_call_time_from_parent
  @deduct_call_time_from_parent
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/new_relic/agent/stats_engine/transactions.rb', line 8

def name
  @name
end