newrelic_rpm 2.10.8 → 2.11.0.beta

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of newrelic_rpm might be problematic. Click here for more details.

Files changed (212) hide show
  1. data/CHANGELOG +15 -3
  2. data/lib/new_relic/agent.rb +17 -6
  3. data/lib/new_relic/agent/agent.rb +98 -77
  4. data/lib/new_relic/agent/busy_calculator.rb +1 -1
  5. data/lib/new_relic/agent/error_collector.rb +6 -3
  6. data/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb +1 -0
  7. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +0 -2
  8. data/lib/new_relic/agent/instrumentation/memcache.rb +0 -1
  9. data/lib/new_relic/agent/instrumentation/metric_frame.rb +8 -2
  10. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +3 -3
  11. data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +10 -0
  12. data/lib/new_relic/agent/method_tracer.rb +1 -1
  13. data/lib/new_relic/agent/shim_agent.rb +1 -1
  14. data/lib/new_relic/agent/stats_engine.rb +1 -1
  15. data/lib/new_relic/agent/stats_engine/samplers.rb +2 -2
  16. data/lib/new_relic/control.rb +6 -3
  17. data/lib/new_relic/rack/metric_app.rb +4 -4
  18. data/lib/new_relic/version.rb +3 -3
  19. data/newrelic.yml +3 -3
  20. data/newrelic_rpm.gemspec +4 -192
  21. data/test/new_relic/agent/rpm_agent_test.rb +15 -2
  22. data/test/new_relic/agent/task_instrumentation_test.rb +3 -2
  23. metadata +12 -197
  24. data/rdoc/classes/NewRelic.html +0 -293
  25. data/rdoc/classes/NewRelic/Agent.html +0 -810
  26. data/rdoc/classes/NewRelic/Agent/Agent.html +0 -742
  27. data/rdoc/classes/NewRelic/Agent/BackgroundLoadingError.html +0 -111
  28. data/rdoc/classes/NewRelic/Agent/BusyCalculator.html +0 -309
  29. data/rdoc/classes/NewRelic/Agent/CollectionHelper.html +0 -196
  30. data/rdoc/classes/NewRelic/Agent/ErrorCollector.html +0 -378
  31. data/rdoc/classes/NewRelic/Agent/ForceDisconnectException.html +0 -118
  32. data/rdoc/classes/NewRelic/Agent/ForceRestartException.html +0 -117
  33. data/rdoc/classes/NewRelic/Agent/IgnoreSilentlyException.html +0 -118
  34. data/rdoc/classes/NewRelic/Agent/Instrumentation.html +0 -174
  35. data/rdoc/classes/NewRelic/Agent/Instrumentation/ActiveRecordInstrumentation.html +0 -221
  36. data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation.html +0 -349
  37. data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation/ClassMethods.html +0 -277
  38. data/rdoc/classes/NewRelic/Agent/Instrumentation/DelayedJobInstrumentation.html +0 -112
  39. data/rdoc/classes/NewRelic/Agent/Instrumentation/MetricFrame.html +0 -1007
  40. data/rdoc/classes/NewRelic/Agent/Instrumentation/Rack.html +0 -321
  41. data/rdoc/classes/NewRelic/Agent/Instrumentation/Sinatra.html +0 -176
  42. data/rdoc/classes/NewRelic/Agent/LicenseException.html +0 -117
  43. data/rdoc/classes/NewRelic/Agent/MethodTracer.html +0 -150
  44. data/rdoc/classes/NewRelic/Agent/MethodTracer/ClassMethods.html +0 -295
  45. data/rdoc/classes/NewRelic/Agent/MethodTracer/InstanceMethods.html +0 -284
  46. data/rdoc/classes/NewRelic/Agent/PostTooBigException.html +0 -120
  47. data/rdoc/classes/NewRelic/Agent/Sampler.html +0 -314
  48. data/rdoc/classes/NewRelic/Agent/Sampler/Unsupported.html +0 -117
  49. data/rdoc/classes/NewRelic/Agent/Samplers.html +0 -126
  50. data/rdoc/classes/NewRelic/Agent/Samplers/CpuSampler.html +0 -327
  51. data/rdoc/classes/NewRelic/Agent/Samplers/DelayedJobLockSampler.html +0 -296
  52. data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler.html +0 -321
  53. data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/Base.html +0 -186
  54. data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/JavaHeapSampler.html +0 -173
  55. data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ProcStatus.html +0 -216
  56. data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ShellPS.html +0 -207
  57. data/rdoc/classes/NewRelic/Agent/Samplers/ObjectSampler.html +0 -222
  58. data/rdoc/classes/NewRelic/Agent/ServerError.html +0 -117
  59. data/rdoc/classes/NewRelic/Agent/ShimAgent.html +0 -297
  60. data/rdoc/classes/NewRelic/Agent/StatsEngine.html +0 -204
  61. data/rdoc/classes/NewRelic/Agent/StatsEngine/MetricStats.html +0 -441
  62. data/rdoc/classes/NewRelic/Agent/StatsEngine/Samplers.html +0 -237
  63. data/rdoc/classes/NewRelic/Agent/StatsEngine/ScopeStackElement.html +0 -178
  64. data/rdoc/classes/NewRelic/Agent/StatsEngine/Transactions.html +0 -385
  65. data/rdoc/classes/NewRelic/Agent/TransactionSampleBuilder.html +0 -505
  66. data/rdoc/classes/NewRelic/Agent/TransactionSampler.html +0 -690
  67. data/rdoc/classes/NewRelic/Agent/WorkerLoop.html +0 -305
  68. data/rdoc/classes/NewRelic/Agent/WorkerLoop/LoopTask.html +0 -224
  69. data/rdoc/classes/NewRelic/ApdexStats.html +0 -196
  70. data/rdoc/classes/NewRelic/BasicStats.html +0 -113
  71. data/rdoc/classes/NewRelic/ChainedCall.html +0 -180
  72. data/rdoc/classes/NewRelic/Commands.html +0 -112
  73. data/rdoc/classes/NewRelic/Commands/CommandFailure.html +0 -167
  74. data/rdoc/classes/NewRelic/Commands/Deployments.html +0 -285
  75. data/rdoc/classes/NewRelic/Control.html +0 -1760
  76. data/rdoc/classes/NewRelic/Control/External.html +0 -148
  77. data/rdoc/classes/NewRelic/Control/Merb.html +0 -227
  78. data/rdoc/classes/NewRelic/Control/Rails.html +0 -542
  79. data/rdoc/classes/NewRelic/Control/Ruby.html +0 -266
  80. data/rdoc/classes/NewRelic/Control/Sinatra.html +0 -178
  81. data/rdoc/classes/NewRelic/DelayedJobInjection.html +0 -118
  82. data/rdoc/classes/NewRelic/Histogram.html +0 -226
  83. data/rdoc/classes/NewRelic/Histogram/Bucket.html +0 -319
  84. data/rdoc/classes/NewRelic/Histogram/Shim.html +0 -144
  85. data/rdoc/classes/NewRelic/LocalEnvironment.html +0 -572
  86. data/rdoc/classes/NewRelic/MerbBootLoader.html +0 -146
  87. data/rdoc/classes/NewRelic/MethodTraceStats.html +0 -250
  88. data/rdoc/classes/NewRelic/MetricData.html +0 -347
  89. data/rdoc/classes/NewRelic/MetricParser.html +0 -747
  90. data/rdoc/classes/NewRelic/MetricParser/ActionMailer.html +0 -170
  91. data/rdoc/classes/NewRelic/MetricParser/ActiveMerchant.html +0 -267
  92. data/rdoc/classes/NewRelic/MetricParser/ActiveRecord.html +0 -250
  93. data/rdoc/classes/NewRelic/MetricParser/Controller.html +0 -363
  94. data/rdoc/classes/NewRelic/MetricParser/ControllerCPU.html +0 -319
  95. data/rdoc/classes/NewRelic/MetricParser/Errors.html +0 -170
  96. data/rdoc/classes/NewRelic/MetricParser/External.html +0 -339
  97. data/rdoc/classes/NewRelic/MetricParser/MemCache.html +0 -340
  98. data/rdoc/classes/NewRelic/MetricParser/OtherTransaction.html +0 -205
  99. data/rdoc/classes/NewRelic/MetricParser/View.html +0 -381
  100. data/rdoc/classes/NewRelic/MetricParser/WebFrontend.html +0 -182
  101. data/rdoc/classes/NewRelic/MetricParser/WebService.html +0 -172
  102. data/rdoc/classes/NewRelic/MetricSpec.html +0 -406
  103. data/rdoc/classes/NewRelic/Metrics.html +0 -138
  104. data/rdoc/classes/NewRelic/NoticedError.html +0 -200
  105. data/rdoc/classes/NewRelic/Rack.html +0 -112
  106. data/rdoc/classes/NewRelic/Rack/MetricApp.html +0 -193
  107. data/rdoc/classes/NewRelic/Rack/Status.html +0 -165
  108. data/rdoc/classes/NewRelic/ScopedMethodTraceStats.html +0 -225
  109. data/rdoc/classes/NewRelic/Stats.html +0 -917
  110. data/rdoc/classes/NewRelic/StatsBase.html +0 -346
  111. data/rdoc/classes/NewRelic/TransactionAnalysis.html +0 -269
  112. data/rdoc/classes/NewRelic/TransactionAnalysis/SegmentSummary.html +0 -338
  113. data/rdoc/classes/NewRelic/TransactionSample.html +0 -766
  114. data/rdoc/classes/NewRelic/TransactionSample/CompositeSegment.html +0 -195
  115. data/rdoc/classes/NewRelic/TransactionSample/FakeSegment.html +0 -113
  116. data/rdoc/classes/NewRelic/TransactionSample/IDGenerator.html +0 -178
  117. data/rdoc/classes/NewRelic/TransactionSample/Segment.html +0 -920
  118. data/rdoc/classes/NewRelic/TransactionSample/SummarySegment.html +0 -180
  119. data/rdoc/classes/NewRelic/VersionNumber.html +0 -338
  120. data/rdoc/classes/NewRelicApi.html +0 -270
  121. data/rdoc/classes/NewRelicApi/Account.html +0 -178
  122. data/rdoc/classes/NewRelicApi/Account/AccountUsage.html +0 -111
  123. data/rdoc/classes/NewRelicApi/Account/AccountView.html +0 -146
  124. data/rdoc/classes/NewRelicApi/Application.html +0 -139
  125. data/rdoc/classes/NewRelicApi/Application/Agent.html +0 -119
  126. data/rdoc/classes/NewRelicApi/Deployment.html +0 -123
  127. data/rdoc/classes/NewRelicApi/Subscription.html +0 -111
  128. data/rdoc/classes/NewRelicApi/ThresholdValue.html +0 -174
  129. data/rdoc/classes/NewRelicApi/User.html +0 -111
  130. data/rdoc/created.rid +0 -1
  131. data/rdoc/files/CHANGELOG.html +0 -649
  132. data/rdoc/files/LICENSE.html +0 -143
  133. data/rdoc/files/lib/new_relic/agent/agent_rb.html +0 -113
  134. data/rdoc/files/lib/new_relic/agent/busy_calculator_rb.html +0 -115
  135. data/rdoc/files/lib/new_relic/agent/chained_call_rb.html +0 -107
  136. data/rdoc/files/lib/new_relic/agent/collection_helper_rb.html +0 -101
  137. data/rdoc/files/lib/new_relic/agent/error_collector_rb.html +0 -101
  138. data/rdoc/files/lib/new_relic/agent/instrumentation/active_merchant_rb.html +0 -107
  139. data/rdoc/files/lib/new_relic/agent/instrumentation/active_record_instrumentation_rb.html +0 -108
  140. data/rdoc/files/lib/new_relic/agent/instrumentation/authlogic_rb.html +0 -101
  141. data/rdoc/files/lib/new_relic/agent/instrumentation/controller_instrumentation_rb.html +0 -108
  142. data/rdoc/files/lib/new_relic/agent/instrumentation/data_mapper_rb.html +0 -191
  143. data/rdoc/files/lib/new_relic/agent/instrumentation/delayed_job_instrumentation_rb.html +0 -109
  144. data/rdoc/files/lib/new_relic/agent/instrumentation/memcache_rb.html +0 -152
  145. data/rdoc/files/lib/new_relic/agent/instrumentation/merb/controller_rb.html +0 -155
  146. data/rdoc/files/lib/new_relic/agent/instrumentation/merb/errors_rb.html +0 -107
  147. data/rdoc/files/lib/new_relic/agent/instrumentation/metric_frame_rb.html +0 -113
  148. data/rdoc/files/lib/new_relic/agent/instrumentation/net_rb.html +0 -172
  149. data/rdoc/files/lib/new_relic/agent/instrumentation/passenger_instrumentation_rb.html +0 -101
  150. data/rdoc/files/lib/new_relic/agent/instrumentation/rack_rb.html +0 -108
  151. data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_controller_rb.html +0 -152
  152. data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_web_service_rb.html +0 -108
  153. data/rdoc/files/lib/new_relic/agent/instrumentation/rails/errors_rb.html +0 -167
  154. data/rdoc/files/lib/new_relic/agent/instrumentation/sinatra_rb.html +0 -108
  155. data/rdoc/files/lib/new_relic/agent/method_tracer_rb.html +0 -108
  156. data/rdoc/files/lib/new_relic/agent/sampler_rb.html +0 -116
  157. data/rdoc/files/lib/new_relic/agent/samplers/cpu_sampler_rb.html +0 -101
  158. data/rdoc/files/lib/new_relic/agent/samplers/delayed_job_lock_sampler_rb.html +0 -101
  159. data/rdoc/files/lib/new_relic/agent/samplers/memory_sampler_rb.html +0 -101
  160. data/rdoc/files/lib/new_relic/agent/samplers/object_sampler_rb.html +0 -101
  161. data/rdoc/files/lib/new_relic/agent/shim_agent_rb.html +0 -108
  162. data/rdoc/files/lib/new_relic/agent/stats_engine/metric_stats_rb.html +0 -101
  163. data/rdoc/files/lib/new_relic/agent/stats_engine/samplers_rb.html +0 -101
  164. data/rdoc/files/lib/new_relic/agent/stats_engine/transactions_rb.html +0 -101
  165. data/rdoc/files/lib/new_relic/agent/stats_engine_rb.html +0 -110
  166. data/rdoc/files/lib/new_relic/agent/transaction_sampler_rb.html +0 -101
  167. data/rdoc/files/lib/new_relic/agent/worker_loop_rb.html +0 -101
  168. data/rdoc/files/lib/new_relic/agent_rb.html +0 -204
  169. data/rdoc/files/lib/new_relic/commands/deployments_rb.html +0 -119
  170. data/rdoc/files/lib/new_relic/commands/new_relic_commands_rb.html +0 -108
  171. data/rdoc/files/lib/new_relic/control/external_rb.html +0 -117
  172. data/rdoc/files/lib/new_relic/control/merb_rb.html +0 -101
  173. data/rdoc/files/lib/new_relic/control/rails_rb.html +0 -108
  174. data/rdoc/files/lib/new_relic/control/ruby_rb.html +0 -110
  175. data/rdoc/files/lib/new_relic/control/sinatra_rb.html +0 -108
  176. data/rdoc/files/lib/new_relic/control_rb.html +0 -116
  177. data/rdoc/files/lib/new_relic/delayed_job_injection_rb.html +0 -180
  178. data/rdoc/files/lib/new_relic/histogram_rb.html +0 -114
  179. data/rdoc/files/lib/new_relic/local_environment_rb.html +0 -111
  180. data/rdoc/files/lib/new_relic/merbtasks_rb.html +0 -101
  181. data/rdoc/files/lib/new_relic/metric_data_rb.html +0 -101
  182. data/rdoc/files/lib/new_relic/metric_parser/action_mailer_rb.html +0 -101
  183. data/rdoc/files/lib/new_relic/metric_parser/active_merchant_rb.html +0 -101
  184. data/rdoc/files/lib/new_relic/metric_parser/active_record_rb.html +0 -101
  185. data/rdoc/files/lib/new_relic/metric_parser/controller_cpu_rb.html +0 -101
  186. data/rdoc/files/lib/new_relic/metric_parser/controller_rb.html +0 -101
  187. data/rdoc/files/lib/new_relic/metric_parser/errors_rb.html +0 -101
  188. data/rdoc/files/lib/new_relic/metric_parser/external_rb.html +0 -101
  189. data/rdoc/files/lib/new_relic/metric_parser/mem_cache_rb.html +0 -101
  190. data/rdoc/files/lib/new_relic/metric_parser/other_transaction_rb.html +0 -108
  191. data/rdoc/files/lib/new_relic/metric_parser/view_rb.html +0 -101
  192. data/rdoc/files/lib/new_relic/metric_parser/web_frontend_rb.html +0 -107
  193. data/rdoc/files/lib/new_relic/metric_parser/web_service_rb.html +0 -101
  194. data/rdoc/files/lib/new_relic/metric_parser_rb.html +0 -101
  195. data/rdoc/files/lib/new_relic/metric_spec_rb.html +0 -108
  196. data/rdoc/files/lib/new_relic/metrics_rb.html +0 -101
  197. data/rdoc/files/lib/new_relic/noticed_error_rb.html +0 -107
  198. data/rdoc/files/lib/new_relic/rack/metric_app_rb.html +0 -108
  199. data/rdoc/files/lib/new_relic/rack_app_rb.html +0 -110
  200. data/rdoc/files/lib/new_relic/recipes_rb.html +0 -128
  201. data/rdoc/files/lib/new_relic/stats_rb.html +0 -101
  202. data/rdoc/files/lib/new_relic/transaction_analysis_rb.html +0 -108
  203. data/rdoc/files/lib/new_relic/transaction_sample_rb.html +0 -101
  204. data/rdoc/files/lib/new_relic/version_rb.html +0 -101
  205. data/rdoc/files/lib/new_relic_api_rb.html +0 -145
  206. data/rdoc/files/lib/newrelic_rpm_rb.html +0 -147
  207. data/rdoc/files/lib/tasks/all_rb.html +0 -107
  208. data/rdoc/fr_class_index.html +0 -134
  209. data/rdoc/fr_file_index.html +0 -103
  210. data/rdoc/fr_method_index.html +0 -568
  211. data/rdoc/index.html +0 -24
  212. data/rdoc/rdoc-style.css +0 -208
@@ -1,363 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: NewRelic::MetricParser::Controller</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">NewRelic::MetricParser::Controller</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/new_relic/metric_parser/controller_rb.html">
59
- lib/new_relic/metric_parser/controller.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../MetricParser.html">
69
- NewRelic::MetricParser
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000081">action_name</a>&nbsp;&nbsp;
92
- <a href="#M000087">call_rate_suffix</a>&nbsp;&nbsp;
93
- <a href="#M000080">controller_name</a>&nbsp;&nbsp;
94
- <a href="#M000083">cpu_metric</a>&nbsp;&nbsp;
95
- <a href="#M000082">developer_name</a>&nbsp;&nbsp;
96
- <a href="#M000079">is_controller?</a>&nbsp;&nbsp;
97
- <a href="#M000084">short_name</a>&nbsp;&nbsp;
98
- <a href="#M000086">tt_path</a>&nbsp;&nbsp;
99
- <a href="#M000085">url</a>&nbsp;&nbsp;
100
- </div>
101
- </div>
102
-
103
- </div>
104
-
105
-
106
- <!-- if includes -->
107
-
108
- <div id="section">
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- <!-- if method_list -->
118
- <div id="methods">
119
- <h3 class="section-bar">Public Instance methods</h3>
120
-
121
- <div id="method-M000081" class="method-detail">
122
- <a name="M000081"></a>
123
-
124
- <div class="method-heading">
125
- <a href="#M000081" class="method-signature">
126
- <span class="method-name">action_name</span><span class="method-args">()</span>
127
- </a>
128
- </div>
129
-
130
- <div class="method-description">
131
- <p><a class="source-toggle" href="#"
132
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
133
- <div class="method-source-code" id="M000081-source">
134
- <pre>
135
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 14</span>
136
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">action_name</span>
137
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">segments</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\(other\)$/</span>
138
- <span class="ruby-value str">'(template only)'</span>
139
- <span class="ruby-keyword kw">else</span>
140
- <span class="ruby-identifier">segments</span>[<span class="ruby-value">-1</span>]
141
- <span class="ruby-keyword kw">end</span>
142
- <span class="ruby-keyword kw">end</span>
143
- </pre>
144
- </div>
145
- </div>
146
- </div>
147
-
148
- <div id="method-M000087" class="method-detail">
149
- <a name="M000087"></a>
150
-
151
- <div class="method-heading">
152
- <a href="#M000087" class="method-signature">
153
- <span class="method-name">call_rate_suffix</span><span class="method-args">()</span>
154
- </a>
155
- </div>
156
-
157
- <div class="method-description">
158
- <p><a class="source-toggle" href="#"
159
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
160
- <div class="method-source-code" id="M000087-source">
161
- <pre>
162
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 51</span>
163
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_rate_suffix</span>
164
- <span class="ruby-value str">'rpm'</span>
165
- <span class="ruby-keyword kw">end</span>
166
- </pre>
167
- </div>
168
- </div>
169
- </div>
170
-
171
- <div id="method-M000080" class="method-detail">
172
- <a name="M000080"></a>
173
-
174
- <div class="method-heading">
175
- <a href="#M000080" class="method-signature">
176
- <span class="method-name">controller_name</span><span class="method-args">()</span>
177
- </a>
178
- </div>
179
-
180
- <div class="method-description">
181
- <p>
182
- If the controller name segments look like a file path, convert it to the
183
- controller class name. If it begins with a capital letter, assume
184
- it&#8216;s already a class name
185
- </p>
186
- <p><a class="source-toggle" href="#"
187
- onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
188
- <div class="method-source-code" id="M000080-source">
189
- <pre>
190
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 9</span>
191
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">controller_name</span>
192
- <span class="ruby-identifier">path</span> = <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-2</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>)
193
- <span class="ruby-identifier">path</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value str">'a'</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">path</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">camelize</span><span class="ruby-operator">+</span><span class="ruby-value str">&quot;Controller&quot;</span>
194
- <span class="ruby-keyword kw">end</span>
195
- </pre>
196
- </div>
197
- </div>
198
- </div>
199
-
200
- <div id="method-M000083" class="method-detail">
201
- <a name="M000083"></a>
202
-
203
- <div class="method-heading">
204
- <a href="#M000083" class="method-signature">
205
- <span class="method-name">cpu_metric</span><span class="method-args">()</span>
206
- </a>
207
- </div>
208
-
209
- <div class="method-description">
210
- <p>
211
- return the cpu measuring equivalent. It may be nil since this metric was
212
- not present in earlier versions of the agent.
213
- </p>
214
- <p><a class="source-toggle" href="#"
215
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
216
- <div class="method-source-code" id="M000083-source">
217
- <pre>
218
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 28</span>
219
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cpu_metric</span>
220
- <span class="ruby-constant">Metric</span>.<span class="ruby-identifier">lookup</span>(([<span class="ruby-value str">&quot;ControllerCPU&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]).<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>), <span class="ruby-identifier">:create</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
221
- <span class="ruby-keyword kw">end</span>
222
- </pre>
223
- </div>
224
- </div>
225
- </div>
226
-
227
- <div id="method-M000082" class="method-detail">
228
- <a name="M000082"></a>
229
-
230
- <div class="method-heading">
231
- <a href="#M000082" class="method-signature">
232
- <span class="method-name">developer_name</span><span class="method-args">()</span>
233
- </a>
234
- </div>
235
-
236
- <div class="method-description">
237
- <p><a class="source-toggle" href="#"
238
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
239
- <div class="method-source-code" id="M000082-source">
240
- <pre>
241
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 22</span>
242
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">developer_name</span>
243
- <span class="ruby-node">&quot;#{controller_name}##{action_name}&quot;</span>
244
- <span class="ruby-keyword kw">end</span>
245
- </pre>
246
- </div>
247
- </div>
248
- </div>
249
-
250
- <div id="method-M000079" class="method-detail">
251
- <a name="M000079"></a>
252
-
253
- <div class="method-heading">
254
- <a href="#M000079" class="method-signature">
255
- <span class="method-name">is_controller?</span><span class="method-args">()</span>
256
- </a>
257
- </div>
258
-
259
- <div class="method-description">
260
- <p><a class="source-toggle" href="#"
261
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
262
- <div class="method-source-code" id="M000079-source">
263
- <pre>
264
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 3</span>
265
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_controller?</span>
266
- <span class="ruby-keyword kw">true</span>
267
- <span class="ruby-keyword kw">end</span>
268
- </pre>
269
- </div>
270
- </div>
271
- </div>
272
-
273
- <div id="method-M000084" class="method-detail">
274
- <a name="M000084"></a>
275
-
276
- <div class="method-heading">
277
- <a href="#M000084" class="method-signature">
278
- <span class="method-name">short_name</span><span class="method-args">()</span>
279
- </a>
280
- </div>
281
-
282
- <div class="method-description">
283
- <p><a class="source-toggle" href="#"
284
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
285
- <div class="method-source-code" id="M000084-source">
286
- <pre>
287
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 32</span>
288
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">short_name</span>
289
- <span class="ruby-comment cmt"># standard controller actions</span>
290
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">segments</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>
291
- <span class="ruby-identifier">url</span>
292
- <span class="ruby-keyword kw">else</span>
293
- <span class="ruby-value str">'All Controller Actions'</span>
294
- <span class="ruby-keyword kw">end</span>
295
- <span class="ruby-keyword kw">end</span>
296
- </pre>
297
- </div>
298
- </div>
299
- </div>
300
-
301
- <div id="method-M000086" class="method-detail">
302
- <a name="M000086"></a>
303
-
304
- <div class="method-heading">
305
- <a href="#M000086" class="method-signature">
306
- <span class="method-name">tt_path</span><span class="method-args">()</span>
307
- </a>
308
- </div>
309
-
310
- <div class="method-description">
311
- <p>
312
- this is used to match transaction traces to controller actions. TT&#8216;s
313
- don&#8216;t have a preceding slash :P
314
- </p>
315
- <p><a class="source-toggle" href="#"
316
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
317
- <div class="method-source-code" id="M000086-source">
318
- <pre>
319
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 47</span>
320
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tt_path</span>
321
- <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>)
322
- <span class="ruby-keyword kw">end</span>
323
- </pre>
324
- </div>
325
- </div>
326
- </div>
327
-
328
- <div id="method-M000085" class="method-detail">
329
- <a name="M000085"></a>
330
-
331
- <div class="method-heading">
332
- <a href="#M000085" class="method-signature">
333
- <span class="method-name">url</span><span class="method-args">()</span>
334
- </a>
335
- </div>
336
-
337
- <div class="method-description">
338
- <p><a class="source-toggle" href="#"
339
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
340
- <div class="method-source-code" id="M000085-source">
341
- <pre>
342
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller.rb, line 41</span>
343
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url</span>
344
- <span class="ruby-value str">'/'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>)
345
- <span class="ruby-keyword kw">end</span>
346
- </pre>
347
- </div>
348
- </div>
349
- </div>
350
-
351
-
352
- </div>
353
-
354
-
355
- </div>
356
-
357
-
358
- <div id="validator-badges">
359
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
360
- </div>
361
-
362
- </body>
363
- </html>
@@ -1,319 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: NewRelic::MetricParser::ControllerCPU</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">NewRelic::MetricParser::ControllerCPU</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/new_relic/metric_parser/controller_cpu_rb.html">
59
- lib/new_relic/metric_parser/controller_cpu.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../MetricParser.html">
69
- NewRelic::MetricParser
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000060">action_name</a>&nbsp;&nbsp;
92
- <a href="#M000062">base_metric_name</a>&nbsp;&nbsp;
93
- <a href="#M000065">call_rate_suffix</a>&nbsp;&nbsp;
94
- <a href="#M000059">controller_name</a>&nbsp;&nbsp;
95
- <a href="#M000061">developer_name</a>&nbsp;&nbsp;
96
- <a href="#M000058">is_controller_cpu?</a>&nbsp;&nbsp;
97
- <a href="#M000063">short_name</a>&nbsp;&nbsp;
98
- <a href="#M000064">url</a>&nbsp;&nbsp;
99
- </div>
100
- </div>
101
-
102
- </div>
103
-
104
-
105
- <!-- if includes -->
106
-
107
- <div id="section">
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
- <!-- if method_list -->
117
- <div id="methods">
118
- <h3 class="section-bar">Public Instance methods</h3>
119
-
120
- <div id="method-M000060" class="method-detail">
121
- <a name="M000060"></a>
122
-
123
- <div class="method-heading">
124
- <a href="#M000060" class="method-signature">
125
- <span class="method-name">action_name</span><span class="method-args">()</span>
126
- </a>
127
- </div>
128
-
129
- <div class="method-description">
130
- <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000060-source">
133
- <pre>
134
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 9</span>
135
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">action_name</span>
136
- <span class="ruby-identifier">segments</span>[<span class="ruby-value">-1</span>]
137
- <span class="ruby-keyword kw">end</span>
138
- </pre>
139
- </div>
140
- </div>
141
- </div>
142
-
143
- <div id="method-M000062" class="method-detail">
144
- <a name="M000062"></a>
145
-
146
- <div class="method-heading">
147
- <a href="#M000062" class="method-signature">
148
- <span class="method-name">base_metric_name</span><span class="method-args">()</span>
149
- </a>
150
- </div>
151
-
152
- <div class="method-description">
153
- <p><a class="source-toggle" href="#"
154
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
155
- <div class="method-source-code" id="M000062-source">
156
- <pre>
157
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 17</span>
158
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">base_metric_name</span>
159
- <span class="ruby-value str">&quot;Controller/&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>)
160
- <span class="ruby-keyword kw">end</span>
161
- </pre>
162
- </div>
163
- </div>
164
- </div>
165
-
166
- <div id="method-M000065" class="method-detail">
167
- <a name="M000065"></a>
168
-
169
- <div class="method-heading">
170
- <a href="#M000065" class="method-signature">
171
- <span class="method-name">call_rate_suffix</span><span class="method-args">()</span>
172
- </a>
173
- </div>
174
-
175
- <div class="method-description">
176
- <p><a class="source-toggle" href="#"
177
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
178
- <div class="method-source-code" id="M000065-source">
179
- <pre>
180
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 34</span>
181
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_rate_suffix</span>
182
- <span class="ruby-value str">'rpm'</span>
183
- <span class="ruby-keyword kw">end</span>
184
- </pre>
185
- </div>
186
- </div>
187
- </div>
188
-
189
- <div id="method-M000059" class="method-detail">
190
- <a name="M000059"></a>
191
-
192
- <div class="method-heading">
193
- <a href="#M000059" class="method-signature">
194
- <span class="method-name">controller_name</span><span class="method-args">()</span>
195
- </a>
196
- </div>
197
-
198
- <div class="method-description">
199
- <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000059-source">
202
- <pre>
203
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 5</span>
204
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">controller_name</span>
205
- <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-2</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>).<span class="ruby-identifier">camelize</span><span class="ruby-operator">+</span><span class="ruby-value str">&quot;Controller&quot;</span>
206
- <span class="ruby-keyword kw">end</span>
207
- </pre>
208
- </div>
209
- </div>
210
- </div>
211
-
212
- <div id="method-M000061" class="method-detail">
213
- <a name="M000061"></a>
214
-
215
- <div class="method-heading">
216
- <a href="#M000061" class="method-signature">
217
- <span class="method-name">developer_name</span><span class="method-args">()</span>
218
- </a>
219
- </div>
220
-
221
- <div class="method-description">
222
- <p><a class="source-toggle" href="#"
223
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
224
- <div class="method-source-code" id="M000061-source">
225
- <pre>
226
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 13</span>
227
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">developer_name</span>
228
- <span class="ruby-node">&quot;#{controller_name}##{action_name}&quot;</span>
229
- <span class="ruby-keyword kw">end</span>
230
- </pre>
231
- </div>
232
- </div>
233
- </div>
234
-
235
- <div id="method-M000058" class="method-detail">
236
- <a name="M000058"></a>
237
-
238
- <div class="method-heading">
239
- <a href="#M000058" class="method-signature">
240
- <span class="method-name">is_controller_cpu?</span><span class="method-args">()</span>
241
- </a>
242
- </div>
243
-
244
- <div class="method-description">
245
- <p><a class="source-toggle" href="#"
246
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
247
- <div class="method-source-code" id="M000058-source">
248
- <pre>
249
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 3</span>
250
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_controller_cpu?</span>; <span class="ruby-keyword kw">true</span>; <span class="ruby-keyword kw">end</span>
251
- </pre>
252
- </div>
253
- </div>
254
- </div>
255
-
256
- <div id="method-M000063" class="method-detail">
257
- <a name="M000063"></a>
258
-
259
- <div class="method-heading">
260
- <a href="#M000063" class="method-signature">
261
- <span class="method-name">short_name</span><span class="method-args">()</span>
262
- </a>
263
- </div>
264
-
265
- <div class="method-description">
266
- <p><a class="source-toggle" href="#"
267
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
268
- <div class="method-source-code" id="M000063-source">
269
- <pre>
270
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 21</span>
271
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">short_name</span>
272
- <span class="ruby-comment cmt"># standard controller actions</span>
273
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">segments</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>
274
- <span class="ruby-identifier">url</span>
275
- <span class="ruby-keyword kw">else</span>
276
- <span class="ruby-value str">'All Controller Actions'</span>
277
- <span class="ruby-keyword kw">end</span>
278
- <span class="ruby-keyword kw">end</span>
279
- </pre>
280
- </div>
281
- </div>
282
- </div>
283
-
284
- <div id="method-M000064" class="method-detail">
285
- <a name="M000064"></a>
286
-
287
- <div class="method-heading">
288
- <a href="#M000064" class="method-signature">
289
- <span class="method-name">url</span><span class="method-args">()</span>
290
- </a>
291
- </div>
292
-
293
- <div class="method-description">
294
- <p><a class="source-toggle" href="#"
295
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
296
- <div class="method-source-code" id="M000064-source">
297
- <pre>
298
- <span class="ruby-comment cmt"># File lib/new_relic/metric_parser/controller_cpu.rb, line 30</span>
299
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url</span>
300
- <span class="ruby-value str">'/'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>)
301
- <span class="ruby-keyword kw">end</span>
302
- </pre>
303
- </div>
304
- </div>
305
- </div>
306
-
307
-
308
- </div>
309
-
310
-
311
- </div>
312
-
313
-
314
- <div id="validator-badges">
315
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
316
- </div>
317
-
318
- </body>
319
- </html>