Method: NewRelic::Agent::Stats#marshal_dump
- Defined in:
- lib/new_relic/agent/stats.rb
permalink #marshal_dump ⇒ Object
Override marshalling methods to exclude @lock from being included in marshalled data
159 160 161 162 163 164 165 |
# File 'lib/new_relic/agent/stats.rb', line 159 def marshal_dump instance_variables.each_with_object({}) do |name, instance_copy| next if SKIP_MARSHALLING.include?(name) instance_copy[name] = instance_variable_get(name) end end |