dolores_rpm 3.2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +559 -0
- data/LICENSE +64 -0
- data/README.rdoc +179 -0
- data/bin/mongrel_rpm +33 -0
- data/bin/newrelic +13 -0
- data/bin/newrelic_cmd +5 -0
- data/cert/cacert.pem +118 -0
- data/cert/oldsite.pem +28 -0
- data/cert/site.pem +27 -0
- data/dolores_rpm-3.3.4.fork.gem +0 -0
- data/install.rb +9 -0
- data/lib/conditional_vendored_dependency_detection.rb +3 -0
- data/lib/conditional_vendored_metric_parser.rb +5 -0
- data/lib/new_relic/agent/agent.rb +1311 -0
- data/lib/new_relic/agent/beacon_configuration.rb +110 -0
- data/lib/new_relic/agent/browser_monitoring.rb +102 -0
- data/lib/new_relic/agent/busy_calculator.rb +99 -0
- data/lib/new_relic/agent/chained_call.rb +13 -0
- data/lib/new_relic/agent/database.rb +203 -0
- data/lib/new_relic/agent/error_collector.rb +251 -0
- data/lib/new_relic/agent/instrumentation/active_merchant.rb +27 -0
- data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +68 -0
- data/lib/new_relic/agent/instrumentation/authlogic.rb +19 -0
- data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +424 -0
- data/lib/new_relic/agent/instrumentation/data_mapper.rb +57 -0
- data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +52 -0
- data/lib/new_relic/agent/instrumentation/memcache.rb +80 -0
- data/lib/new_relic/agent/instrumentation/merb/controller.rb +41 -0
- data/lib/new_relic/agent/instrumentation/merb/errors.rb +29 -0
- data/lib/new_relic/agent/instrumentation/metric_frame/pop.rb +80 -0
- data/lib/new_relic/agent/instrumentation/metric_frame.rb +332 -0
- data/lib/new_relic/agent/instrumentation/net.rb +29 -0
- data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +36 -0
- data/lib/new_relic/agent/instrumentation/queue_time.rb +210 -0
- data/lib/new_relic/agent/instrumentation/rack.rb +98 -0
- data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +114 -0
- data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +42 -0
- data/lib/new_relic/agent/instrumentation/rails/active_record_instrumentation.rb +115 -0
- data/lib/new_relic/agent/instrumentation/rails/errors.rb +42 -0
- data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +118 -0
- data/lib/new_relic/agent/instrumentation/rails3/active_record_instrumentation.rb +122 -0
- data/lib/new_relic/agent/instrumentation/rails3/errors.rb +37 -0
- data/lib/new_relic/agent/instrumentation/sinatra.rb +58 -0
- data/lib/new_relic/agent/instrumentation/sunspot.rb +29 -0
- data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +21 -0
- data/lib/new_relic/agent/instrumentation.rb +9 -0
- data/lib/new_relic/agent/method_tracer.rb +528 -0
- data/lib/new_relic/agent/sampler.rb +50 -0
- data/lib/new_relic/agent/samplers/cpu_sampler.rb +58 -0
- data/lib/new_relic/agent/samplers/delayed_job_lock_sampler.rb +40 -0
- data/lib/new_relic/agent/samplers/memory_sampler.rb +144 -0
- data/lib/new_relic/agent/samplers/object_sampler.rb +26 -0
- data/lib/new_relic/agent/shim_agent.rb +29 -0
- data/lib/new_relic/agent/sql_sampler.rb +267 -0
- data/lib/new_relic/agent/stats_engine/metric_stats.rb +187 -0
- data/lib/new_relic/agent/stats_engine/samplers.rb +95 -0
- data/lib/new_relic/agent/stats_engine/transactions.rb +208 -0
- data/lib/new_relic/agent/stats_engine.rb +25 -0
- data/lib/new_relic/agent/transaction_sample_builder.rb +101 -0
- data/lib/new_relic/agent/transaction_sampler.rb +397 -0
- data/lib/new_relic/agent/worker_loop.rb +89 -0
- data/lib/new_relic/agent.rb +454 -0
- data/lib/new_relic/collection_helper.rb +75 -0
- data/lib/new_relic/command.rb +85 -0
- data/lib/new_relic/commands/deployments.rb +105 -0
- data/lib/new_relic/commands/install.rb +80 -0
- data/lib/new_relic/control/class_methods.rb +53 -0
- data/lib/new_relic/control/configuration.rb +202 -0
- data/lib/new_relic/control/frameworks/external.rb +16 -0
- data/lib/new_relic/control/frameworks/merb.rb +31 -0
- data/lib/new_relic/control/frameworks/rails.rb +164 -0
- data/lib/new_relic/control/frameworks/rails3.rb +75 -0
- data/lib/new_relic/control/frameworks/ruby.rb +42 -0
- data/lib/new_relic/control/frameworks/sinatra.rb +20 -0
- data/lib/new_relic/control/frameworks.rb +10 -0
- data/lib/new_relic/control/instance_methods.rb +179 -0
- data/lib/new_relic/control/instrumentation.rb +100 -0
- data/lib/new_relic/control/logging_methods.rb +143 -0
- data/lib/new_relic/control/profiling.rb +25 -0
- data/lib/new_relic/control/server_methods.rb +114 -0
- data/lib/new_relic/control.rb +46 -0
- data/lib/new_relic/data_serialization.rb +157 -0
- data/lib/new_relic/delayed_job_injection.rb +46 -0
- data/lib/new_relic/language_support.rb +69 -0
- data/lib/new_relic/local_environment.rb +414 -0
- data/lib/new_relic/merbtasks.rb +6 -0
- data/lib/new_relic/metric_data.rb +51 -0
- data/lib/new_relic/metric_spec.rb +75 -0
- data/lib/new_relic/metrics.rb +9 -0
- data/lib/new_relic/noticed_error.rb +24 -0
- data/lib/new_relic/rack/browser_monitoring.rb +68 -0
- data/lib/new_relic/rack/developer_mode.rb +268 -0
- data/lib/new_relic/recipes.rb +73 -0
- data/lib/new_relic/stats.rb +388 -0
- data/lib/new_relic/timer_lib.rb +27 -0
- data/lib/new_relic/transaction_analysis/segment_summary.rb +49 -0
- data/lib/new_relic/transaction_analysis.rb +77 -0
- data/lib/new_relic/transaction_sample/composite_segment.rb +27 -0
- data/lib/new_relic/transaction_sample/fake_segment.rb +9 -0
- data/lib/new_relic/transaction_sample/segment.rb +201 -0
- data/lib/new_relic/transaction_sample/summary_segment.rb +21 -0
- data/lib/new_relic/transaction_sample.rb +245 -0
- data/lib/new_relic/url_rule.rb +14 -0
- data/lib/new_relic/version.rb +55 -0
- data/lib/newrelic_rpm.rb +49 -0
- data/lib/tasks/all.rb +4 -0
- data/lib/tasks/install.rake +7 -0
- data/lib/tasks/tests.rake +19 -0
- data/newrelic.yml +265 -0
- data/recipes/newrelic.rb +6 -0
- data/test/active_record_fixtures.rb +77 -0
- data/test/config/newrelic.yml +48 -0
- data/test/config/test_control.rb +48 -0
- data/test/new_relic/agent/agent/connect_test.rb +410 -0
- data/test/new_relic/agent/agent/start_test.rb +255 -0
- data/test/new_relic/agent/agent/start_worker_thread_test.rb +153 -0
- data/test/new_relic/agent/agent_test.rb +139 -0
- data/test/new_relic/agent/agent_test_controller.rb +77 -0
- data/test/new_relic/agent/agent_test_controller_test.rb +363 -0
- data/test/new_relic/agent/apdex_from_server_test.rb +9 -0
- data/test/new_relic/agent/beacon_configuration_test.rb +108 -0
- data/test/new_relic/agent/browser_monitoring_test.rb +278 -0
- data/test/new_relic/agent/busy_calculator_test.rb +81 -0
- data/test/new_relic/agent/database_test.rb +162 -0
- data/test/new_relic/agent/error_collector/notice_error_test.rb +257 -0
- data/test/new_relic/agent/error_collector_test.rb +175 -0
- data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +538 -0
- data/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb +36 -0
- data/test/new_relic/agent/instrumentation/instrumentation_test.rb +11 -0
- data/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb +172 -0
- data/test/new_relic/agent/instrumentation/metric_frame_test.rb +50 -0
- data/test/new_relic/agent/instrumentation/net_instrumentation_test.rb +84 -0
- data/test/new_relic/agent/instrumentation/queue_time_test.rb +387 -0
- data/test/new_relic/agent/instrumentation/rack_test.rb +35 -0
- data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +184 -0
- data/test/new_relic/agent/memcache_instrumentation_test.rb +143 -0
- data/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb +164 -0
- data/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +234 -0
- data/test/new_relic/agent/method_tracer_test.rb +386 -0
- data/test/new_relic/agent/mock_scope_listener.rb +23 -0
- data/test/new_relic/agent/rpm_agent_test.rb +149 -0
- data/test/new_relic/agent/sampler_test.rb +19 -0
- data/test/new_relic/agent/shim_agent_test.rb +20 -0
- data/test/new_relic/agent/sql_sampler_test.rb +160 -0
- data/test/new_relic/agent/stats_engine/metric_stats/harvest_test.rb +150 -0
- data/test/new_relic/agent/stats_engine/metric_stats_test.rb +82 -0
- data/test/new_relic/agent/stats_engine/samplers_test.rb +99 -0
- data/test/new_relic/agent/stats_engine_test.rb +185 -0
- data/test/new_relic/agent/transaction_sample_builder_test.rb +195 -0
- data/test/new_relic/agent/transaction_sampler_test.rb +955 -0
- data/test/new_relic/agent/worker_loop_test.rb +66 -0
- data/test/new_relic/agent_test.rb +175 -0
- data/test/new_relic/collection_helper_test.rb +149 -0
- data/test/new_relic/command/deployments_test.rb +68 -0
- data/test/new_relic/control/class_methods_test.rb +62 -0
- data/test/new_relic/control/configuration_test.rb +72 -0
- data/test/new_relic/control/logging_methods_test.rb +185 -0
- data/test/new_relic/control_test.rb +254 -0
- data/test/new_relic/data_serialization_test.rb +208 -0
- data/test/new_relic/delayed_job_injection_test.rb +16 -0
- data/test/new_relic/local_environment_test.rb +72 -0
- data/test/new_relic/metric_data_test.rb +125 -0
- data/test/new_relic/metric_spec_test.rb +95 -0
- data/test/new_relic/rack/all_test.rb +11 -0
- data/test/new_relic/rack/browser_monitoring_test.rb +84 -0
- data/test/new_relic/rack/developer_mode_helper_test.rb +141 -0
- data/test/new_relic/rack/developer_mode_test.rb +43 -0
- data/test/new_relic/stats_test.rb +426 -0
- data/test/new_relic/transaction_analysis/segment_summary_test.rb +91 -0
- data/test/new_relic/transaction_analysis_test.rb +121 -0
- data/test/new_relic/transaction_sample/composite_segment_test.rb +35 -0
- data/test/new_relic/transaction_sample/fake_segment_test.rb +17 -0
- data/test/new_relic/transaction_sample/segment_test.rb +389 -0
- data/test/new_relic/transaction_sample/summary_segment_test.rb +31 -0
- data/test/new_relic/transaction_sample_subtest_test.rb +56 -0
- data/test/new_relic/transaction_sample_test.rb +164 -0
- data/test/new_relic/version_number_test.rb +89 -0
- data/test/test_contexts.rb +29 -0
- data/test/test_helper.rb +154 -0
- data/ui/helpers/developer_mode_helper.rb +357 -0
- data/ui/helpers/google_pie_chart.rb +48 -0
- data/ui/views/layouts/newrelic_default.rhtml +47 -0
- data/ui/views/newrelic/_explain_plans.rhtml +27 -0
- data/ui/views/newrelic/_sample.rhtml +20 -0
- data/ui/views/newrelic/_segment.rhtml +28 -0
- data/ui/views/newrelic/_segment_limit_message.rhtml +1 -0
- data/ui/views/newrelic/_segment_row.rhtml +12 -0
- data/ui/views/newrelic/_show_sample_detail.rhtml +24 -0
- data/ui/views/newrelic/_show_sample_sql.rhtml +24 -0
- data/ui/views/newrelic/_show_sample_summary.rhtml +3 -0
- data/ui/views/newrelic/_sql_row.rhtml +16 -0
- data/ui/views/newrelic/_stack_trace.rhtml +15 -0
- data/ui/views/newrelic/_table.rhtml +12 -0
- data/ui/views/newrelic/explain_sql.rhtml +43 -0
- data/ui/views/newrelic/file/images/arrow-close.png +0 -0
- data/ui/views/newrelic/file/images/arrow-open.png +0 -0
- data/ui/views/newrelic/file/images/blue_bar.gif +0 -0
- data/ui/views/newrelic/file/images/file_icon.png +0 -0
- data/ui/views/newrelic/file/images/gray_bar.gif +0 -0
- data/ui/views/newrelic/file/images/new-relic-rpm-desktop.gif +0 -0
- data/ui/views/newrelic/file/images/new_relic_rpm_desktop.gif +0 -0
- data/ui/views/newrelic/file/images/textmate.png +0 -0
- data/ui/views/newrelic/file/javascript/jquery-1.4.2.js +6240 -0
- data/ui/views/newrelic/file/javascript/transaction_sample.js +120 -0
- data/ui/views/newrelic/file/stylesheets/style.css +490 -0
- data/ui/views/newrelic/index.rhtml +71 -0
- data/ui/views/newrelic/sample_not_found.rhtml +2 -0
- data/ui/views/newrelic/show_sample.rhtml +80 -0
- data/ui/views/newrelic/show_source.rhtml +3 -0
- data/ui/views/newrelic/threads.rhtml +53 -0
- data/vendor/gems/dependency_detection-0.0.1.build/LICENSE +5 -0
- data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb +3 -0
- data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb +62 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb +1 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb +14 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb +31 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb +33 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb +89 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb +7 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb +46 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb +67 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb +43 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb +17 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb +48 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb +24 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb +28 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb +17 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb +55 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb +40 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb +20 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb +7 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb +31 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb +17 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb +34 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb +7 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb +55 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb +122 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb +27 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb +40 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb +7 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb +7 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb +7 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb +27 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb +15 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb +54 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb +6 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb +6 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb +20 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb +20 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb +5 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb +70 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb +18 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb +14 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb +133 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb +64 -0
- metadata +398 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
2
|
+
xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<script type="text/javascript" src="/newrelic/file/javascript/jquery-1.4.2.js"></script>
|
|
5
|
+
<title>New Relic Developer Mode</title>
|
|
6
|
+
<link href="/newrelic/file/stylesheets/style.css"
|
|
7
|
+
media="screen" rel="stylesheet" type="text/css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="header">
|
|
11
|
+
<img width="100%" height="4" src="/newrelic/file/images/blue_bar.gif" alt="spacer"/>
|
|
12
|
+
<table width="100%" height="60">
|
|
13
|
+
<tr>
|
|
14
|
+
<td valign="middle">
|
|
15
|
+
<a href='/newrelic'><img src="/newrelic/file/images/new_relic_rpm_desktop.gif" hspace="10" alt="New Relic"/></a>
|
|
16
|
+
</td>
|
|
17
|
+
<td class="top_nav" valign="bottom">
|
|
18
|
+
<ul id="navlist">
|
|
19
|
+
<li>» <a href='/newrelic'>Home</a></li>
|
|
20
|
+
</ul>
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
</table>
|
|
24
|
+
<div id="page_nav">
|
|
25
|
+
<table width="100%" height="100%" background="/newrelic/file/images/gray_bar.gif">
|
|
26
|
+
<tr valign="middle">
|
|
27
|
+
<td>
|
|
28
|
+
<span class="application_title">Developer Mode</span>
|
|
29
|
+
</td>
|
|
30
|
+
<td class="title_bar_right">
|
|
31
|
+
Monitor your Rails Application in production. <%=link_to 'Learn more.', 'http://www.newrelic.com/dev-upgrade.html' %>
|
|
32
|
+
</td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div id='content'>
|
|
38
|
+
<%= yield %>
|
|
39
|
+
</div>
|
|
40
|
+
<div id='footer'>
|
|
41
|
+
<img width="100%" height="4" src="/newrelic/file/images/blue_bar.gif" alt="spacer"/>
|
|
42
|
+
<p>
|
|
43
|
+
<a href="/newrelic">Home</a> | <a href="mailto:support@newrelic.com?subject=Feedback" title="">Feedback</a><br />
|
|
44
|
+
Monitor your Rails Application in Production. <a href="http://www.newrelic.com/dev-upgrade.html">Learn more. »</a><br />
|
|
45
|
+
© 2008 - <%= Time.now.strftime('%Y') %> New Relic. All rights reserved.</p>
|
|
46
|
+
</div>
|
|
47
|
+
</body>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<% if @row_headers %>
|
|
2
|
+
<% @row_headers.length.times do |r| %>
|
|
3
|
+
<% if @row_headers[r] %>
|
|
4
|
+
<tr>
|
|
5
|
+
<th align=right nowrap>
|
|
6
|
+
<%= @row_headers[r]%>
|
|
7
|
+
</th>
|
|
8
|
+
<% @explanation.each do |exp| %>
|
|
9
|
+
<td>
|
|
10
|
+
<%= exp[r]%>
|
|
11
|
+
</td>
|
|
12
|
+
<% end %>
|
|
13
|
+
</tr>
|
|
14
|
+
<% end %>
|
|
15
|
+
<% end %>
|
|
16
|
+
<% else %>
|
|
17
|
+
<tr>
|
|
18
|
+
<th align=right>Plan</th>
|
|
19
|
+
<td><p class="plan">
|
|
20
|
+
<% @explanation.each do |row| %>
|
|
21
|
+
<% row.each do |col| %>
|
|
22
|
+
<%= h(col) %>
|
|
23
|
+
<% end %>
|
|
24
|
+
<% end %>
|
|
25
|
+
</p></td>
|
|
26
|
+
</tr>
|
|
27
|
+
<% end %>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<% sample = object %>
|
|
2
|
+
<tr class="<%= cycle('even_row', 'odd_row') %>">
|
|
3
|
+
<td align=right nowrap=true>
|
|
4
|
+
<%= Time.at(stripped_sample(sample).timestamp).strftime "%H:%M:%S" %>
|
|
5
|
+
</td>
|
|
6
|
+
<td align=right nowrap=true>
|
|
7
|
+
<%= colorize(stripped_sample(sample).duration, 1, 2) %> ms
|
|
8
|
+
</td>
|
|
9
|
+
<td>
|
|
10
|
+
<%= link_to "#{sample.params[:uri]}", "show_sample_summary?id=#{sample.sample_id}" %>
|
|
11
|
+
</td>
|
|
12
|
+
<td>
|
|
13
|
+
<% if sample.profile %>
|
|
14
|
+
<%= link_to "[Profile]", "show_sample_summary?id=#{sample.sample_id}" %>
|
|
15
|
+
<% else %>
|
|
16
|
+
<%= link_to "[Detail]", "show_sample_detail?id=#{sample.sample_id}" %><br/>
|
|
17
|
+
<%= link_to "[SQL (#{sample.sql_segments.size})]", "show_sample_sql?id=#{sample.sample_id}" %>
|
|
18
|
+
<% end %>
|
|
19
|
+
</td>
|
|
20
|
+
</tr>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<% segment, indent, repeat = object %>
|
|
2
|
+
<tr style="<%= 'display:none' if indent > 1 %>" child_row_class="<%=segment_child_row_class(segment)%>" onmouseover="mouse_over_row(this)" onmouseout="mouse_out_row(this)" class='<%=segment_row_classes(segment, indent)%>'>
|
|
3
|
+
|
|
4
|
+
<td nowrap=true>
|
|
5
|
+
<div class="segment_indent_level<%=indent%> <%='leaf_segment' if segment.called_segments.empty?%>">
|
|
6
|
+
<div style="display:inline;">
|
|
7
|
+
<%= expand_segment_image(segment, indent) %>
|
|
8
|
+
</div>
|
|
9
|
+
<%= write_segment_label segment%>
|
|
10
|
+
</div>
|
|
11
|
+
</td>
|
|
12
|
+
|
|
13
|
+
<td nowrap=true align="right">
|
|
14
|
+
<%= timestamp(segment) %>
|
|
15
|
+
</td>
|
|
16
|
+
<td nowrap=true align="right">
|
|
17
|
+
<%= with_delimiter(to_ms(segment.duration)) %>
|
|
18
|
+
</td>
|
|
19
|
+
<td nowrap=true align="right">
|
|
20
|
+
<%= colorize(segment.exclusive_duration) %>
|
|
21
|
+
</td>
|
|
22
|
+
|
|
23
|
+
<td nowrap=true>
|
|
24
|
+
<small>
|
|
25
|
+
<%= explain_sql_links(segment) if indent > 0 %>
|
|
26
|
+
</small>
|
|
27
|
+
</td>
|
|
28
|
+
</tr>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This report is limited to <%= trace_row_display_limit %> rows.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<tr class='<%= cycle('even_row', 'odd_row') %>'>
|
|
2
|
+
<td>
|
|
3
|
+
<%= write_summary_segment_label object %>
|
|
4
|
+
|
|
5
|
+
</td>
|
|
6
|
+
<td align=left> <%= object.call_count %></td>
|
|
7
|
+
<td align=right><%= with_delimiter(to_ms(object.exclusive_time)) %> ms</td>
|
|
8
|
+
<td align=right><%= to_percentage(object.exclusive_time_percentage) %>% </td>
|
|
9
|
+
<td> </td>
|
|
10
|
+
<td align=right><%= with_delimiter(to_ms(object.total_time)) %> ms</td>
|
|
11
|
+
<td align=right><%= to_percentage(object.total_time_percentage) %>%</td>
|
|
12
|
+
</tr>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
var EXPANDED_IMAGE = '<%=expanded_image_path%>';
|
|
3
|
+
var COLLAPSED_IMAGE = '<%= collapsed_image_path %>';
|
|
4
|
+
function Tip(tip) {}
|
|
5
|
+
function UnTip() {}
|
|
6
|
+
</script>
|
|
7
|
+
<span>
|
|
8
|
+
<%= link_to_function("Expand All", 'expand_all_segments()') %>
|
|
9
|
+
<%= link_to_function("Collapse All", 'collapse_all_segments()') %>
|
|
10
|
+
</span>
|
|
11
|
+
<table id="trace_detail_table" class="light_background" width="800px">
|
|
12
|
+
<thead>
|
|
13
|
+
<tr>
|
|
14
|
+
<td>Metric</td>
|
|
15
|
+
<td>Timestamp<br/><small>seconds</small></td>
|
|
16
|
+
<td>Duration<br/><small>ms</small></td>
|
|
17
|
+
<td>Exclusive<br/><small>ms</small></td>
|
|
18
|
+
<td></td>
|
|
19
|
+
</tr>
|
|
20
|
+
</thead>
|
|
21
|
+
<%= render_sample_details(@sample) %>
|
|
22
|
+
</table>
|
|
23
|
+
|
|
24
|
+
<%= render :partial => 'segment_limit_message' if trace_row_display_limit_reached %>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<% if rows_logger_present? %>
|
|
2
|
+
<h3>Plugin Incompatibility</h3>
|
|
3
|
+
The Rows Logger plugin rewrites part of Active Record, which in effect turns off the
|
|
4
|
+
SQL statement tracing functionality of NewRelic Developer Mode. To gain SQL statement
|
|
5
|
+
visibility, you must remove <samp>rows_logger_plugin</samp>, or change your plugin load order
|
|
6
|
+
so that the rows logger is loaded first.
|
|
7
|
+
<% else %>
|
|
8
|
+
<%= render :partial => 'segment_limit_message' if trace_row_display_limit_reached %>
|
|
9
|
+
<table width="100%" class="segment_list_table">
|
|
10
|
+
<thead>
|
|
11
|
+
<tr>
|
|
12
|
+
<td>
|
|
13
|
+
<%= link_to_if params['d'], "Timestamp", "show_sample_sql?id=#{sample.sample_id}" %>
|
|
14
|
+
</td>
|
|
15
|
+
<td colspan="2">
|
|
16
|
+
<%= link_to_if !params['d'], "Duration", "show_sample_sql?id=#{sample.sample_id}&d=y" %>
|
|
17
|
+
</td>
|
|
18
|
+
<td>SQL</td>
|
|
19
|
+
</tr>
|
|
20
|
+
</thead>
|
|
21
|
+
|
|
22
|
+
<%= render :partial => 'sql_row', :collection => @sql_segments[0...trace_row_display_limit] %>
|
|
23
|
+
</table>
|
|
24
|
+
<% end %>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<% segment = object %>
|
|
2
|
+
<tr class='<%= cycle('even_row', 'odd_row') %>'>
|
|
3
|
+
<td align=right><%= timestamp(segment) %></td>
|
|
4
|
+
<td align=right><%= segment_duration_value(segment) %> </td>
|
|
5
|
+
<td> <%= link_to_source(segment[:backtrace]) %> </td>
|
|
6
|
+
<td align=left>
|
|
7
|
+
<div class="sql_statement">
|
|
8
|
+
<small>
|
|
9
|
+
<% if segment[:sql] %>
|
|
10
|
+
<%= line_wrap_sql(segment[:sql] ) %>
|
|
11
|
+
<% else %>
|
|
12
|
+
Non-sql query: <%= segment.metric_name %> <%= line_wrap_sql(segment[:key]) %>
|
|
13
|
+
<% end %></small>
|
|
14
|
+
</div>
|
|
15
|
+
</td>
|
|
16
|
+
</tr>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<% trace = segment[:backtrace] %>
|
|
2
|
+
|
|
3
|
+
<% unique_id = "_#{trace.object_id}_#{(rand * 100000).to_i}" %>
|
|
4
|
+
<a id="show_rails_link<%=unique_id %>" href="#" onclick="show_rails('<%=unique_id %>'); return false">Show Rails</a>
|
|
5
|
+
|
|
6
|
+
<a id="hide_rails_link<%=unique_id %>" href="#" onclick="hide_rails('<%=unique_id %>'); return false" style="display:none">Hide Rails</a>
|
|
7
|
+
|
|
8
|
+
<div id='application_stack_trace<%=unique_id %>' class="application_stack_trace">
|
|
9
|
+
<%= application_stack_trace(trace, false).collect { |trace_line| write_stack_trace_line(trace_line)}.join("<br/>") %>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div id="full_stack_trace<%=unique_id %>" style="display: none;" class="full_stack_trace">
|
|
13
|
+
<%= application_stack_trace(trace, true).collect { |trace_line| write_stack_trace_line(trace_line)}.join("<br/>") %>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<table border="0" cellpadding="5" cellspacing="0">
|
|
2
|
+
<thead>
|
|
3
|
+
<tr>
|
|
4
|
+
<td>Metric</td>
|
|
5
|
+
<td>Count</td>
|
|
6
|
+
<td colspan=2>Exclusive</td>
|
|
7
|
+
<td/>
|
|
8
|
+
<td colspan=2>Total</td>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<%= render :partial => :segment_row, :collection => object %>
|
|
12
|
+
</table>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script type="text/javascript" src="/newrelic/file/javascript/transaction_sample.js"></script>
|
|
2
|
+
<h3>Statement Analysis</h3>
|
|
3
|
+
<table>
|
|
4
|
+
<% colspan = @explanation ? @explanation.length : 1 %>
|
|
5
|
+
<% if @sql %>
|
|
6
|
+
<tr>
|
|
7
|
+
<th align=right valign=top>
|
|
8
|
+
Query
|
|
9
|
+
</th>
|
|
10
|
+
<td colspan=<%= colspan %>><small>
|
|
11
|
+
<div class="sql_statement">
|
|
12
|
+
<%= line_wrap_sql(@sql) %>
|
|
13
|
+
</div>
|
|
14
|
+
</small></td>
|
|
15
|
+
</tr>
|
|
16
|
+
<% end %>
|
|
17
|
+
|
|
18
|
+
<% if @obfuscated_sql %>
|
|
19
|
+
<tr>
|
|
20
|
+
<th align=right valign=top>
|
|
21
|
+
Obfuscated Query
|
|
22
|
+
</th>
|
|
23
|
+
<td colspan=<%= colspan %>><small>
|
|
24
|
+
<div class="sql_statement">
|
|
25
|
+
<%= line_wrap_sql(@obfuscated_sql) %>
|
|
26
|
+
</div>
|
|
27
|
+
</small></td>
|
|
28
|
+
</tr>
|
|
29
|
+
<% end %>
|
|
30
|
+
|
|
31
|
+
<tr>
|
|
32
|
+
<th align=right>
|
|
33
|
+
Duration
|
|
34
|
+
</th>
|
|
35
|
+
<td><%= with_delimiter(to_ms(@segment.duration)) %> ms</td>
|
|
36
|
+
</tr>
|
|
37
|
+
<% if @explanation %>
|
|
38
|
+
<%= render :partial => 'explain_plans' %>
|
|
39
|
+
<% end %>
|
|
40
|
+
</table>
|
|
41
|
+
|
|
42
|
+
<p/>
|
|
43
|
+
<%= render_backtrace %>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|