Sha256: 76febafdf2bb1a9777fca9b8497c81237cb21460b17f849cad0fb66774517d30
Contents?: true
Size: 790 Bytes
Versions: 17
Compression:
Stored size: 790 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. class TestClass def method_1 trace_execution_scoped(['a', 'b']) do end end def method_2 callback = Proc.new { ['c', 'd'] } trace_execution_scoped(['a', 'b'], { :additional_metrics_callback => callback }) do end end end class TraceExecutionScopedTests < Performance::TestCase def setup @test_class = TestClass.new TestClass.instance_eval('include NewRelic::Agent::MethodTracer') require 'new_relic/agent/method_tracer' end def test_without_callback iterations.times { @test_class.method_1 } end def test_with_callback iterations.times { @test_class.method_2 } end end
Version data entries
17 entries across 17 versions & 1 rubygems