# File lib/new_relic/agent/method_tracer.rb, line 240 def method_without_push_scope(method_name, metric_name_code, options) "def #{_traced_method_name(method_name, metric_name_code)}(*args, &block) #{assemble_code_header(method_name, metric_name_code, options)} t0 = Time.now begin #{_untraced_method_name(method_name, metric_name_code)}(*args, &block)\n ensure duration = (Time.now - t0).to_f NewRelic::Agent.record_metric(\"#{metric_name_code}\", duration) #{options[:code_footer]} end end" end