# File lib/new_relic/agent/method_tracer.rb, line 85 def trace_execution_unscoped(metric_names, options={}) #THREAD_LOCAL_ACCESS return yield unless NewRelic::Agent.tl_is_execution_traced? t0 = Time.now begin yield ensure duration = (Time.now - t0).to_f # for some reason this is 3 usec faster than Time - Time NewRelic::Agent.instance.stats_engine.tl_record_unscoped_metrics(metric_names, duration) end end