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.
- data/CHANGELOG +15 -3
- data/lib/new_relic/agent.rb +17 -6
- data/lib/new_relic/agent/agent.rb +98 -77
- data/lib/new_relic/agent/busy_calculator.rb +1 -1
- data/lib/new_relic/agent/error_collector.rb +6 -3
- data/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb +1 -0
- data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +0 -2
- data/lib/new_relic/agent/instrumentation/memcache.rb +0 -1
- data/lib/new_relic/agent/instrumentation/metric_frame.rb +8 -2
- data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +3 -3
- data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +10 -0
- data/lib/new_relic/agent/method_tracer.rb +1 -1
- data/lib/new_relic/agent/shim_agent.rb +1 -1
- data/lib/new_relic/agent/stats_engine.rb +1 -1
- data/lib/new_relic/agent/stats_engine/samplers.rb +2 -2
- data/lib/new_relic/control.rb +6 -3
- data/lib/new_relic/rack/metric_app.rb +4 -4
- data/lib/new_relic/version.rb +3 -3
- data/newrelic.yml +3 -3
- data/newrelic_rpm.gemspec +4 -192
- data/test/new_relic/agent/rpm_agent_test.rb +15 -2
- data/test/new_relic/agent/task_instrumentation_test.rb +3 -2
- metadata +12 -197
- data/rdoc/classes/NewRelic.html +0 -293
- data/rdoc/classes/NewRelic/Agent.html +0 -810
- data/rdoc/classes/NewRelic/Agent/Agent.html +0 -742
- data/rdoc/classes/NewRelic/Agent/BackgroundLoadingError.html +0 -111
- data/rdoc/classes/NewRelic/Agent/BusyCalculator.html +0 -309
- data/rdoc/classes/NewRelic/Agent/CollectionHelper.html +0 -196
- data/rdoc/classes/NewRelic/Agent/ErrorCollector.html +0 -378
- data/rdoc/classes/NewRelic/Agent/ForceDisconnectException.html +0 -118
- data/rdoc/classes/NewRelic/Agent/ForceRestartException.html +0 -117
- data/rdoc/classes/NewRelic/Agent/IgnoreSilentlyException.html +0 -118
- data/rdoc/classes/NewRelic/Agent/Instrumentation.html +0 -174
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ActiveRecordInstrumentation.html +0 -221
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation.html +0 -349
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation/ClassMethods.html +0 -277
- data/rdoc/classes/NewRelic/Agent/Instrumentation/DelayedJobInstrumentation.html +0 -112
- data/rdoc/classes/NewRelic/Agent/Instrumentation/MetricFrame.html +0 -1007
- data/rdoc/classes/NewRelic/Agent/Instrumentation/Rack.html +0 -321
- data/rdoc/classes/NewRelic/Agent/Instrumentation/Sinatra.html +0 -176
- data/rdoc/classes/NewRelic/Agent/LicenseException.html +0 -117
- data/rdoc/classes/NewRelic/Agent/MethodTracer.html +0 -150
- data/rdoc/classes/NewRelic/Agent/MethodTracer/ClassMethods.html +0 -295
- data/rdoc/classes/NewRelic/Agent/MethodTracer/InstanceMethods.html +0 -284
- data/rdoc/classes/NewRelic/Agent/PostTooBigException.html +0 -120
- data/rdoc/classes/NewRelic/Agent/Sampler.html +0 -314
- data/rdoc/classes/NewRelic/Agent/Sampler/Unsupported.html +0 -117
- data/rdoc/classes/NewRelic/Agent/Samplers.html +0 -126
- data/rdoc/classes/NewRelic/Agent/Samplers/CpuSampler.html +0 -327
- data/rdoc/classes/NewRelic/Agent/Samplers/DelayedJobLockSampler.html +0 -296
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler.html +0 -321
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/Base.html +0 -186
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/JavaHeapSampler.html +0 -173
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ProcStatus.html +0 -216
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ShellPS.html +0 -207
- data/rdoc/classes/NewRelic/Agent/Samplers/ObjectSampler.html +0 -222
- data/rdoc/classes/NewRelic/Agent/ServerError.html +0 -117
- data/rdoc/classes/NewRelic/Agent/ShimAgent.html +0 -297
- data/rdoc/classes/NewRelic/Agent/StatsEngine.html +0 -204
- data/rdoc/classes/NewRelic/Agent/StatsEngine/MetricStats.html +0 -441
- data/rdoc/classes/NewRelic/Agent/StatsEngine/Samplers.html +0 -237
- data/rdoc/classes/NewRelic/Agent/StatsEngine/ScopeStackElement.html +0 -178
- data/rdoc/classes/NewRelic/Agent/StatsEngine/Transactions.html +0 -385
- data/rdoc/classes/NewRelic/Agent/TransactionSampleBuilder.html +0 -505
- data/rdoc/classes/NewRelic/Agent/TransactionSampler.html +0 -690
- data/rdoc/classes/NewRelic/Agent/WorkerLoop.html +0 -305
- data/rdoc/classes/NewRelic/Agent/WorkerLoop/LoopTask.html +0 -224
- data/rdoc/classes/NewRelic/ApdexStats.html +0 -196
- data/rdoc/classes/NewRelic/BasicStats.html +0 -113
- data/rdoc/classes/NewRelic/ChainedCall.html +0 -180
- data/rdoc/classes/NewRelic/Commands.html +0 -112
- data/rdoc/classes/NewRelic/Commands/CommandFailure.html +0 -167
- data/rdoc/classes/NewRelic/Commands/Deployments.html +0 -285
- data/rdoc/classes/NewRelic/Control.html +0 -1760
- data/rdoc/classes/NewRelic/Control/External.html +0 -148
- data/rdoc/classes/NewRelic/Control/Merb.html +0 -227
- data/rdoc/classes/NewRelic/Control/Rails.html +0 -542
- data/rdoc/classes/NewRelic/Control/Ruby.html +0 -266
- data/rdoc/classes/NewRelic/Control/Sinatra.html +0 -178
- data/rdoc/classes/NewRelic/DelayedJobInjection.html +0 -118
- data/rdoc/classes/NewRelic/Histogram.html +0 -226
- data/rdoc/classes/NewRelic/Histogram/Bucket.html +0 -319
- data/rdoc/classes/NewRelic/Histogram/Shim.html +0 -144
- data/rdoc/classes/NewRelic/LocalEnvironment.html +0 -572
- data/rdoc/classes/NewRelic/MerbBootLoader.html +0 -146
- data/rdoc/classes/NewRelic/MethodTraceStats.html +0 -250
- data/rdoc/classes/NewRelic/MetricData.html +0 -347
- data/rdoc/classes/NewRelic/MetricParser.html +0 -747
- data/rdoc/classes/NewRelic/MetricParser/ActionMailer.html +0 -170
- data/rdoc/classes/NewRelic/MetricParser/ActiveMerchant.html +0 -267
- data/rdoc/classes/NewRelic/MetricParser/ActiveRecord.html +0 -250
- data/rdoc/classes/NewRelic/MetricParser/Controller.html +0 -363
- data/rdoc/classes/NewRelic/MetricParser/ControllerCPU.html +0 -319
- data/rdoc/classes/NewRelic/MetricParser/Errors.html +0 -170
- data/rdoc/classes/NewRelic/MetricParser/External.html +0 -339
- data/rdoc/classes/NewRelic/MetricParser/MemCache.html +0 -340
- data/rdoc/classes/NewRelic/MetricParser/OtherTransaction.html +0 -205
- data/rdoc/classes/NewRelic/MetricParser/View.html +0 -381
- data/rdoc/classes/NewRelic/MetricParser/WebFrontend.html +0 -182
- data/rdoc/classes/NewRelic/MetricParser/WebService.html +0 -172
- data/rdoc/classes/NewRelic/MetricSpec.html +0 -406
- data/rdoc/classes/NewRelic/Metrics.html +0 -138
- data/rdoc/classes/NewRelic/NoticedError.html +0 -200
- data/rdoc/classes/NewRelic/Rack.html +0 -112
- data/rdoc/classes/NewRelic/Rack/MetricApp.html +0 -193
- data/rdoc/classes/NewRelic/Rack/Status.html +0 -165
- data/rdoc/classes/NewRelic/ScopedMethodTraceStats.html +0 -225
- data/rdoc/classes/NewRelic/Stats.html +0 -917
- data/rdoc/classes/NewRelic/StatsBase.html +0 -346
- data/rdoc/classes/NewRelic/TransactionAnalysis.html +0 -269
- data/rdoc/classes/NewRelic/TransactionAnalysis/SegmentSummary.html +0 -338
- data/rdoc/classes/NewRelic/TransactionSample.html +0 -766
- data/rdoc/classes/NewRelic/TransactionSample/CompositeSegment.html +0 -195
- data/rdoc/classes/NewRelic/TransactionSample/FakeSegment.html +0 -113
- data/rdoc/classes/NewRelic/TransactionSample/IDGenerator.html +0 -178
- data/rdoc/classes/NewRelic/TransactionSample/Segment.html +0 -920
- data/rdoc/classes/NewRelic/TransactionSample/SummarySegment.html +0 -180
- data/rdoc/classes/NewRelic/VersionNumber.html +0 -338
- data/rdoc/classes/NewRelicApi.html +0 -270
- data/rdoc/classes/NewRelicApi/Account.html +0 -178
- data/rdoc/classes/NewRelicApi/Account/AccountUsage.html +0 -111
- data/rdoc/classes/NewRelicApi/Account/AccountView.html +0 -146
- data/rdoc/classes/NewRelicApi/Application.html +0 -139
- data/rdoc/classes/NewRelicApi/Application/Agent.html +0 -119
- data/rdoc/classes/NewRelicApi/Deployment.html +0 -123
- data/rdoc/classes/NewRelicApi/Subscription.html +0 -111
- data/rdoc/classes/NewRelicApi/ThresholdValue.html +0 -174
- data/rdoc/classes/NewRelicApi/User.html +0 -111
- data/rdoc/created.rid +0 -1
- data/rdoc/files/CHANGELOG.html +0 -649
- data/rdoc/files/LICENSE.html +0 -143
- data/rdoc/files/lib/new_relic/agent/agent_rb.html +0 -113
- data/rdoc/files/lib/new_relic/agent/busy_calculator_rb.html +0 -115
- data/rdoc/files/lib/new_relic/agent/chained_call_rb.html +0 -107
- data/rdoc/files/lib/new_relic/agent/collection_helper_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/error_collector_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/instrumentation/active_merchant_rb.html +0 -107
- data/rdoc/files/lib/new_relic/agent/instrumentation/active_record_instrumentation_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/authlogic_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/instrumentation/controller_instrumentation_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/data_mapper_rb.html +0 -191
- data/rdoc/files/lib/new_relic/agent/instrumentation/delayed_job_instrumentation_rb.html +0 -109
- data/rdoc/files/lib/new_relic/agent/instrumentation/memcache_rb.html +0 -152
- data/rdoc/files/lib/new_relic/agent/instrumentation/merb/controller_rb.html +0 -155
- data/rdoc/files/lib/new_relic/agent/instrumentation/merb/errors_rb.html +0 -107
- data/rdoc/files/lib/new_relic/agent/instrumentation/metric_frame_rb.html +0 -113
- data/rdoc/files/lib/new_relic/agent/instrumentation/net_rb.html +0 -172
- data/rdoc/files/lib/new_relic/agent/instrumentation/passenger_instrumentation_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/instrumentation/rack_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_controller_rb.html +0 -152
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_web_service_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/errors_rb.html +0 -167
- data/rdoc/files/lib/new_relic/agent/instrumentation/sinatra_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/method_tracer_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/sampler_rb.html +0 -116
- data/rdoc/files/lib/new_relic/agent/samplers/cpu_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/samplers/delayed_job_lock_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/samplers/memory_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/samplers/object_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/shim_agent_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/stats_engine/metric_stats_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/stats_engine/samplers_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/stats_engine/transactions_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/stats_engine_rb.html +0 -110
- data/rdoc/files/lib/new_relic/agent/transaction_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/worker_loop_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent_rb.html +0 -204
- data/rdoc/files/lib/new_relic/commands/deployments_rb.html +0 -119
- data/rdoc/files/lib/new_relic/commands/new_relic_commands_rb.html +0 -108
- data/rdoc/files/lib/new_relic/control/external_rb.html +0 -117
- data/rdoc/files/lib/new_relic/control/merb_rb.html +0 -101
- data/rdoc/files/lib/new_relic/control/rails_rb.html +0 -108
- data/rdoc/files/lib/new_relic/control/ruby_rb.html +0 -110
- data/rdoc/files/lib/new_relic/control/sinatra_rb.html +0 -108
- data/rdoc/files/lib/new_relic/control_rb.html +0 -116
- data/rdoc/files/lib/new_relic/delayed_job_injection_rb.html +0 -180
- data/rdoc/files/lib/new_relic/histogram_rb.html +0 -114
- data/rdoc/files/lib/new_relic/local_environment_rb.html +0 -111
- data/rdoc/files/lib/new_relic/merbtasks_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_data_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/action_mailer_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/active_merchant_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/active_record_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/controller_cpu_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/controller_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/errors_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/external_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/mem_cache_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/other_transaction_rb.html +0 -108
- data/rdoc/files/lib/new_relic/metric_parser/view_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/web_frontend_rb.html +0 -107
- data/rdoc/files/lib/new_relic/metric_parser/web_service_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_spec_rb.html +0 -108
- data/rdoc/files/lib/new_relic/metrics_rb.html +0 -101
- data/rdoc/files/lib/new_relic/noticed_error_rb.html +0 -107
- data/rdoc/files/lib/new_relic/rack/metric_app_rb.html +0 -108
- data/rdoc/files/lib/new_relic/rack_app_rb.html +0 -110
- data/rdoc/files/lib/new_relic/recipes_rb.html +0 -128
- data/rdoc/files/lib/new_relic/stats_rb.html +0 -101
- data/rdoc/files/lib/new_relic/transaction_analysis_rb.html +0 -108
- data/rdoc/files/lib/new_relic/transaction_sample_rb.html +0 -101
- data/rdoc/files/lib/new_relic/version_rb.html +0 -101
- data/rdoc/files/lib/new_relic_api_rb.html +0 -145
- data/rdoc/files/lib/newrelic_rpm_rb.html +0 -147
- data/rdoc/files/lib/tasks/all_rb.html +0 -107
- data/rdoc/fr_class_index.html +0 -134
- data/rdoc/fr_file_index.html +0 -103
- data/rdoc/fr_method_index.html +0 -568
- data/rdoc/index.html +0 -24
- data/rdoc/rdoc-style.css +0 -208
@@ -1,146 +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::MerbBootLoader</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::MerbBootLoader</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/newrelic_rpm_rb.html">
|
59
|
-
lib/newrelic_rpm.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
|
-
Merb::BootLoader
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000349">run</a>
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
<!-- if includes -->
|
97
|
-
|
98
|
-
<div id="section">
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<!-- if method_list -->
|
108
|
-
<div id="methods">
|
109
|
-
<h3 class="section-bar">Public Class methods</h3>
|
110
|
-
|
111
|
-
<div id="method-M000349" class="method-detail">
|
112
|
-
<a name="M000349"></a>
|
113
|
-
|
114
|
-
<div class="method-heading">
|
115
|
-
<a href="#M000349" class="method-signature">
|
116
|
-
<span class="method-name">run</span><span class="method-args">()</span>
|
117
|
-
</a>
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div class="method-description">
|
121
|
-
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('M000349-source');return false;">[Source]</a></p>
|
123
|
-
<div class="method-source-code" id="M000349-source">
|
124
|
-
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/newrelic_rpm.rb, line 33</span>
|
126
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span>
|
127
|
-
<span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">Control</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">init_plugin</span>
|
128
|
-
<span class="ruby-keyword kw">end</span>
|
129
|
-
</pre>
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
|
138
|
-
</div>
|
139
|
-
|
140
|
-
|
141
|
-
<div id="validator-badges">
|
142
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
</body>
|
146
|
-
</html>
|
@@ -1,250 +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::MethodTraceStats</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::MethodTraceStats</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/new_relic/stats_rb.html">
|
59
|
-
lib/new_relic/stats.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="StatsBase.html">
|
69
|
-
StatsBase
|
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
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
Statistics used to track the performance of traced methods
|
86
|
-
</p>
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div id="method-list">
|
94
|
-
<h3 class="section-bar">Methods</h3>
|
95
|
-
|
96
|
-
<div class="name-list">
|
97
|
-
<a href="#M000395">increment_count</a>
|
98
|
-
<a href="#M000392">record_data_point</a>
|
99
|
-
<a href="#M000394">record_multiple_data_points</a>
|
100
|
-
<a href="#M000393">trace_call</a>
|
101
|
-
</div>
|
102
|
-
</div>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
|
107
|
-
<!-- if includes -->
|
108
|
-
|
109
|
-
<div id="section">
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<div id="aliases-list">
|
114
|
-
<h3 class="section-bar">External Aliases</h3>
|
115
|
-
|
116
|
-
<div class="name-list">
|
117
|
-
<table summary="aliases">
|
118
|
-
<tr class="top-aligned-row context-row">
|
119
|
-
<td class="context-item-name">call_count</td>
|
120
|
-
<td>-></td>
|
121
|
-
<td class="context-item-value">data_point_count</td>
|
122
|
-
</tr>
|
123
|
-
</table>
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<!-- if method_list -->
|
132
|
-
<div id="methods">
|
133
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
134
|
-
|
135
|
-
<div id="method-M000395" class="method-detail">
|
136
|
-
<a name="M000395"></a>
|
137
|
-
|
138
|
-
<div class="method-heading">
|
139
|
-
<a href="#M000395" class="method-signature">
|
140
|
-
<span class="method-name">increment_count</span><span class="method-args">(value = 1)</span>
|
141
|
-
</a>
|
142
|
-
</div>
|
143
|
-
|
144
|
-
<div class="method-description">
|
145
|
-
<p><a class="source-toggle" href="#"
|
146
|
-
onclick="toggleCode('M000395-source');return false;">[Source]</a></p>
|
147
|
-
<div class="method-source-code" id="M000395-source">
|
148
|
-
<pre>
|
149
|
-
<span class="ruby-comment cmt"># File lib/new_relic/stats.rb, line 352</span>
|
150
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">increment_count</span>(<span class="ruby-identifier">value</span> = <span class="ruby-value">1</span>)
|
151
|
-
<span class="ruby-ivar">@call_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">value</span>
|
152
|
-
<span class="ruby-keyword kw">end</span>
|
153
|
-
</pre>
|
154
|
-
</div>
|
155
|
-
</div>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<div id="method-M000392" class="method-detail">
|
159
|
-
<a name="M000392"></a>
|
160
|
-
|
161
|
-
<div class="method-heading">
|
162
|
-
<a href="#M000392" class="method-signature">
|
163
|
-
<span class="method-name">record_data_point</span><span class="method-args">(value, exclusive_time = value)</span>
|
164
|
-
</a>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div class="method-description">
|
168
|
-
<p>
|
169
|
-
record a single data point into the statistical gatherer. The gatherer will
|
170
|
-
aggregate all data points collected over a specified period and upload its
|
171
|
-
data to the <a href="../NewRelic.html">NewRelic</a> server
|
172
|
-
</p>
|
173
|
-
<p><a class="source-toggle" href="#"
|
174
|
-
onclick="toggleCode('M000392-source');return false;">[Source]</a></p>
|
175
|
-
<div class="method-source-code" id="M000392-source">
|
176
|
-
<pre>
|
177
|
-
<span class="ruby-comment cmt"># File lib/new_relic/stats.rb, line 327</span>
|
178
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">record_data_point</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">exclusive_time</span> = <span class="ruby-identifier">value</span>)
|
179
|
-
<span class="ruby-ivar">@call_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
180
|
-
<span class="ruby-ivar">@total_call_time</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">value</span>
|
181
|
-
<span class="ruby-ivar">@min_call_time</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@min_call_time</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@call_count</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
182
|
-
<span class="ruby-ivar">@max_call_time</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">></span> <span class="ruby-ivar">@max_call_time</span>
|
183
|
-
<span class="ruby-ivar">@total_exclusive_time</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">exclusive_time</span>
|
184
|
-
|
185
|
-
<span class="ruby-ivar">@sum_of_squares</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">value</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">value</span>)
|
186
|
-
<span class="ruby-keyword kw">self</span>
|
187
|
-
<span class="ruby-keyword kw">end</span>
|
188
|
-
</pre>
|
189
|
-
</div>
|
190
|
-
</div>
|
191
|
-
</div>
|
192
|
-
|
193
|
-
<div id="method-M000394" class="method-detail">
|
194
|
-
<a name="M000394"></a>
|
195
|
-
|
196
|
-
<div class="method-heading">
|
197
|
-
<a href="#M000394" class="method-signature">
|
198
|
-
<span class="method-name">record_multiple_data_points</span><span class="method-args">(total_value, count=1)</span>
|
199
|
-
</a>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div class="method-description">
|
203
|
-
<p><a class="source-toggle" href="#"
|
204
|
-
onclick="toggleCode('M000394-source');return false;">[Source]</a></p>
|
205
|
-
<div class="method-source-code" id="M000394-source">
|
206
|
-
<pre>
|
207
|
-
<span class="ruby-comment cmt"># File lib/new_relic/stats.rb, line 340</span>
|
208
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">record_multiple_data_points</span>(<span class="ruby-identifier">total_value</span>, <span class="ruby-identifier">count</span>=<span class="ruby-value">1</span>)
|
209
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">record_data_point</span>(<span class="ruby-identifier">total_value</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">count</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
210
|
-
<span class="ruby-ivar">@call_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">count</span>
|
211
|
-
<span class="ruby-ivar">@total_call_time</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">total_value</span>
|
212
|
-
<span class="ruby-identifier">avg_val</span> = <span class="ruby-identifier">total_value</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">count</span>
|
213
|
-
<span class="ruby-ivar">@min_call_time</span> = <span class="ruby-identifier">avg_val</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">avg_val</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@min_call_time</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@call_count</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">count</span>
|
214
|
-
<span class="ruby-ivar">@max_call_time</span> = <span class="ruby-identifier">avg_val</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">avg_val</span> <span class="ruby-operator">></span> <span class="ruby-ivar">@max_call_time</span>
|
215
|
-
<span class="ruby-ivar">@total_exclusive_time</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">total_value</span>
|
216
|
-
<span class="ruby-ivar">@sum_of_squares</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">avg_val</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">avg_val</span>) <span class="ruby-operator">*</span> <span class="ruby-identifier">count</span>
|
217
|
-
<span class="ruby-keyword kw">self</span>
|
218
|
-
<span class="ruby-keyword kw">end</span>
|
219
|
-
</pre>
|
220
|
-
</div>
|
221
|
-
</div>
|
222
|
-
</div>
|
223
|
-
|
224
|
-
<div id="method-M000393" class="method-detail">
|
225
|
-
<a name="M000393"></a>
|
226
|
-
|
227
|
-
<div class="method-heading">
|
228
|
-
<span class="method-name">trace_call</span><span class="method-args">(value, exclusive_time = value)</span>
|
229
|
-
</div>
|
230
|
-
|
231
|
-
<div class="method-description">
|
232
|
-
<p>
|
233
|
-
Alias for <a href="MethodTraceStats.html#M000392">record_data_point</a>
|
234
|
-
</p>
|
235
|
-
</div>
|
236
|
-
</div>
|
237
|
-
|
238
|
-
|
239
|
-
</div>
|
240
|
-
|
241
|
-
|
242
|
-
</div>
|
243
|
-
|
244
|
-
|
245
|
-
<div id="validator-badges">
|
246
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
</body>
|
250
|
-
</html>
|
@@ -1,347 +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::MetricData</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::MetricData</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_data_rb.html">
|
59
|
-
lib/new_relic/metric_data.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
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000508">eql?</a>
|
90
|
-
<a href="#M000512">hash</a>
|
91
|
-
<a href="#M000510">metric_spec</a>
|
92
|
-
<a href="#M000511">metric_spec=</a>
|
93
|
-
<a href="#M000507">new</a>
|
94
|
-
<a href="#M000509">original_spec</a>
|
95
|
-
<a href="#M000513">to_json</a>
|
96
|
-
<a href="#M000514">to_s</a>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
<!-- if includes -->
|
104
|
-
|
105
|
-
<div id="section">
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<div id="attribute-list">
|
112
|
-
<h3 class="section-bar">Attributes</h3>
|
113
|
-
|
114
|
-
<div class="name-list">
|
115
|
-
<table>
|
116
|
-
<tr class="top-aligned-row context-row">
|
117
|
-
<td class="context-item-name">metric_id</td>
|
118
|
-
<td class="context-item-value"> [RW] </td>
|
119
|
-
<td class="context-item-desc"></td>
|
120
|
-
</tr>
|
121
|
-
<tr class="top-aligned-row context-row">
|
122
|
-
<td class="context-item-name">metric_spec</td>
|
123
|
-
<td class="context-item-value"> [RW] </td>
|
124
|
-
<td class="context-item-desc"></td>
|
125
|
-
</tr>
|
126
|
-
<tr class="top-aligned-row context-row">
|
127
|
-
<td class="context-item-name">stats</td>
|
128
|
-
<td class="context-item-value"> [RW] </td>
|
129
|
-
<td class="context-item-desc"></td>
|
130
|
-
</tr>
|
131
|
-
</table>
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<!-- if method_list -->
|
138
|
-
<div id="methods">
|
139
|
-
<h3 class="section-bar">Public Class methods</h3>
|
140
|
-
|
141
|
-
<div id="method-M000507" class="method-detail">
|
142
|
-
<a name="M000507"></a>
|
143
|
-
|
144
|
-
<div class="method-heading">
|
145
|
-
<a href="#M000507" class="method-signature">
|
146
|
-
<span class="method-name">new</span><span class="method-args">(metric_spec, stats, metric_id)</span>
|
147
|
-
</a>
|
148
|
-
</div>
|
149
|
-
|
150
|
-
<div class="method-description">
|
151
|
-
<p><a class="source-toggle" href="#"
|
152
|
-
onclick="toggleCode('M000507-source');return false;">[Source]</a></p>
|
153
|
-
<div class="method-source-code" id="M000507-source">
|
154
|
-
<pre>
|
155
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 7</span>
|
156
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">metric_spec</span>, <span class="ruby-identifier">stats</span>, <span class="ruby-identifier">metric_id</span>)
|
157
|
-
<span class="ruby-ivar">@metric_spec</span> = <span class="ruby-identifier">metric_spec</span>
|
158
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">stats</span> = <span class="ruby-identifier">stats</span>
|
159
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">metric_id</span> = <span class="ruby-identifier">metric_id</span>
|
160
|
-
<span class="ruby-keyword kw">end</span>
|
161
|
-
</pre>
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
</div>
|
165
|
-
|
166
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
167
|
-
|
168
|
-
<div id="method-M000508" class="method-detail">
|
169
|
-
<a name="M000508"></a>
|
170
|
-
|
171
|
-
<div class="method-heading">
|
172
|
-
<a href="#M000508" class="method-signature">
|
173
|
-
<span class="method-name">eql?</span><span class="method-args">(o)</span>
|
174
|
-
</a>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
<div class="method-description">
|
178
|
-
<p><a class="source-toggle" href="#"
|
179
|
-
onclick="toggleCode('M000508-source');return false;">[Source]</a></p>
|
180
|
-
<div class="method-source-code" id="M000508-source">
|
181
|
-
<pre>
|
182
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 13</span>
|
183
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">o</span>)
|
184
|
-
(<span class="ruby-identifier">metric_spec</span>.<span class="ruby-identifier">eql?</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">metric_spec</span>) <span class="ruby-operator">&&</span> (<span class="ruby-identifier">stats</span>.<span class="ruby-identifier">eql?</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">stats</span>)
|
185
|
-
<span class="ruby-keyword kw">end</span>
|
186
|
-
</pre>
|
187
|
-
</div>
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
<div id="method-M000512" class="method-detail">
|
192
|
-
<a name="M000512"></a>
|
193
|
-
|
194
|
-
<div class="method-heading">
|
195
|
-
<a href="#M000512" class="method-signature">
|
196
|
-
<span class="method-name">hash</span><span class="method-args">()</span>
|
197
|
-
</a>
|
198
|
-
</div>
|
199
|
-
|
200
|
-
<div class="method-description">
|
201
|
-
<p><a class="source-toggle" href="#"
|
202
|
-
onclick="toggleCode('M000512-source');return false;">[Source]</a></p>
|
203
|
-
<div class="method-source-code" id="M000512-source">
|
204
|
-
<pre>
|
205
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 28</span>
|
206
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
|
207
|
-
<span class="ruby-identifier">metric_spec</span>.<span class="ruby-identifier">hash</span> <span class="ruby-operator">^</span> <span class="ruby-identifier">stats</span>.<span class="ruby-identifier">hash</span>
|
208
|
-
<span class="ruby-keyword kw">end</span>
|
209
|
-
</pre>
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
</div>
|
213
|
-
|
214
|
-
<div id="method-M000510" class="method-detail">
|
215
|
-
<a name="M000510"></a>
|
216
|
-
|
217
|
-
<div class="method-heading">
|
218
|
-
<a href="#M000510" class="method-signature">
|
219
|
-
<span class="method-name">metric_spec</span><span class="method-args">()</span>
|
220
|
-
</a>
|
221
|
-
</div>
|
222
|
-
|
223
|
-
<div class="method-description">
|
224
|
-
<p><a class="source-toggle" href="#"
|
225
|
-
onclick="toggleCode('M000510-source');return false;">[Source]</a></p>
|
226
|
-
<div class="method-source-code" id="M000510-source">
|
227
|
-
<pre>
|
228
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 20</span>
|
229
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">metric_spec</span>
|
230
|
-
<span class="ruby-ivar">@metric_spec</span>
|
231
|
-
<span class="ruby-keyword kw">end</span>
|
232
|
-
</pre>
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
<div id="method-M000511" class="method-detail">
|
238
|
-
<a name="M000511"></a>
|
239
|
-
|
240
|
-
<div class="method-heading">
|
241
|
-
<a href="#M000511" class="method-signature">
|
242
|
-
<span class="method-name">metric_spec=</span><span class="method-args">(new_spec)</span>
|
243
|
-
</a>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
<div class="method-description">
|
247
|
-
<p><a class="source-toggle" href="#"
|
248
|
-
onclick="toggleCode('M000511-source');return false;">[Source]</a></p>
|
249
|
-
<div class="method-source-code" id="M000511-source">
|
250
|
-
<pre>
|
251
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 23</span>
|
252
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">metric_spec=</span> <span class="ruby-identifier">new_spec</span>
|
253
|
-
<span class="ruby-ivar">@original_spec</span> = <span class="ruby-ivar">@metric_spec</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@metric_spec</span>
|
254
|
-
<span class="ruby-ivar">@metric_spec</span> = <span class="ruby-identifier">new_spec</span>
|
255
|
-
<span class="ruby-keyword kw">end</span>
|
256
|
-
</pre>
|
257
|
-
</div>
|
258
|
-
</div>
|
259
|
-
</div>
|
260
|
-
|
261
|
-
<div id="method-M000509" class="method-detail">
|
262
|
-
<a name="M000509"></a>
|
263
|
-
|
264
|
-
<div class="method-heading">
|
265
|
-
<a href="#M000509" class="method-signature">
|
266
|
-
<span class="method-name">original_spec</span><span class="method-args">()</span>
|
267
|
-
</a>
|
268
|
-
</div>
|
269
|
-
|
270
|
-
<div class="method-description">
|
271
|
-
<p><a class="source-toggle" href="#"
|
272
|
-
onclick="toggleCode('M000509-source');return false;">[Source]</a></p>
|
273
|
-
<div class="method-source-code" id="M000509-source">
|
274
|
-
<pre>
|
275
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 17</span>
|
276
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">original_spec</span>
|
277
|
-
<span class="ruby-ivar">@original_spec</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@metric_spec</span>
|
278
|
-
<span class="ruby-keyword kw">end</span>
|
279
|
-
</pre>
|
280
|
-
</div>
|
281
|
-
</div>
|
282
|
-
</div>
|
283
|
-
|
284
|
-
<div id="method-M000513" class="method-detail">
|
285
|
-
<a name="M000513"></a>
|
286
|
-
|
287
|
-
<div class="method-heading">
|
288
|
-
<a href="#M000513" class="method-signature">
|
289
|
-
<span class="method-name">to_json</span><span class="method-args">(*a)</span>
|
290
|
-
</a>
|
291
|
-
</div>
|
292
|
-
|
293
|
-
<div class="method-description">
|
294
|
-
<p>
|
295
|
-
Serialize with all attributes, but if the metric id is not nil, then
|
296
|
-
don‘t send the metric spec
|
297
|
-
</p>
|
298
|
-
<p><a class="source-toggle" href="#"
|
299
|
-
onclick="toggleCode('M000513-source');return false;">[Source]</a></p>
|
300
|
-
<div class="method-source-code" id="M000513-source">
|
301
|
-
<pre>
|
302
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 33</span>
|
303
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
|
304
|
-
<span class="ruby-node">%Q[{"metric_spec":#{metric_id ? 'null' : metric_spec.to_json},"stats":{"total_exclusive_time":#{stats.total_exclusive_time},"min_call_time":#{stats.min_call_time},"call_count":#{stats.call_count},"sum_of_squares":#{stats.sum_of_squares},"total_call_time":#{stats.total_call_time},"max_call_time":#{stats.max_call_time}},"metric_id":#{metric_id ? metric_id : 'null'}}]</span>
|
305
|
-
<span class="ruby-keyword kw">end</span>
|
306
|
-
</pre>
|
307
|
-
</div>
|
308
|
-
</div>
|
309
|
-
</div>
|
310
|
-
|
311
|
-
<div id="method-M000514" class="method-detail">
|
312
|
-
<a name="M000514"></a>
|
313
|
-
|
314
|
-
<div class="method-heading">
|
315
|
-
<a href="#M000514" class="method-signature">
|
316
|
-
<span class="method-name">to_s</span><span class="method-args">()</span>
|
317
|
-
</a>
|
318
|
-
</div>
|
319
|
-
|
320
|
-
<div class="method-description">
|
321
|
-
<p><a class="source-toggle" href="#"
|
322
|
-
onclick="toggleCode('M000514-source');return false;">[Source]</a></p>
|
323
|
-
<div class="method-source-code" id="M000514-source">
|
324
|
-
<pre>
|
325
|
-
<span class="ruby-comment cmt"># File lib/new_relic/metric_data.rb, line 37</span>
|
326
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
327
|
-
<span class="ruby-node">"#{metric_spec.name}(#{metric_spec.scope}): #{stats}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">metric_spec</span>
|
328
|
-
<span class="ruby-node">"#{metric_id}: #{stats}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">metric_spec</span>.<span class="ruby-identifier">nil?</span>
|
329
|
-
<span class="ruby-keyword kw">end</span>
|
330
|
-
</pre>
|
331
|
-
</div>
|
332
|
-
</div>
|
333
|
-
</div>
|
334
|
-
|
335
|
-
|
336
|
-
</div>
|
337
|
-
|
338
|
-
|
339
|
-
</div>
|
340
|
-
|
341
|
-
|
342
|
-
<div id="validator-badges">
|
343
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
344
|
-
</div>
|
345
|
-
|
346
|
-
</body>
|
347
|
-
</html>
|