ruby-prof 0.17.0 → 0.18.0
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.
- checksums.yaml +5 -5
- data/CHANGES +500 -482
- data/LICENSE +24 -24
- data/README.rdoc +487 -485
- data/Rakefile +113 -113
- data/bin/ruby-prof +345 -345
- data/bin/ruby-prof-check-trace +45 -45
- data/examples/flat.txt +50 -50
- data/examples/graph.dot +84 -84
- data/examples/graph.html +823 -823
- data/examples/graph.txt +139 -139
- data/examples/multi.flat.txt +23 -23
- data/examples/multi.graph.html +760 -760
- data/examples/multi.grind.dat +114 -114
- data/examples/multi.stack.html +547 -547
- data/examples/stack.html +547 -547
- data/ext/ruby_prof/extconf.rb +68 -68
- data/ext/ruby_prof/rp_call_info.c +425 -425
- data/ext/ruby_prof/rp_call_info.h +53 -53
- data/ext/ruby_prof/rp_measure.c +40 -40
- data/ext/ruby_prof/rp_measure.h +45 -45
- data/ext/ruby_prof/rp_measure_allocations.c +76 -76
- data/ext/ruby_prof/rp_measure_cpu_time.c +136 -136
- data/ext/ruby_prof/rp_measure_gc_runs.c +73 -73
- data/ext/ruby_prof/rp_measure_gc_time.c +60 -60
- data/ext/ruby_prof/rp_measure_memory.c +77 -77
- data/ext/ruby_prof/rp_measure_process_time.c +71 -71
- data/ext/ruby_prof/rp_measure_wall_time.c +45 -45
- data/ext/ruby_prof/rp_method.c +630 -636
- data/ext/ruby_prof/rp_method.h +75 -75
- data/ext/ruby_prof/rp_stack.c +173 -173
- data/ext/ruby_prof/rp_stack.h +63 -63
- data/ext/ruby_prof/rp_thread.c +277 -276
- data/ext/ruby_prof/rp_thread.h +27 -27
- data/ext/ruby_prof/ruby_prof.c +794 -774
- data/ext/ruby_prof/ruby_prof.h +60 -59
- data/ext/ruby_prof/vc/ruby_prof.sln +20 -21
- data/ext/ruby_prof/vc/{ruby_prof_20.vcxproj → ruby_prof.vcxproj} +31 -0
- data/lib/ruby-prof.rb +68 -68
- data/lib/ruby-prof/aggregate_call_info.rb +76 -76
- data/lib/ruby-prof/assets/call_stack_printer.css.html +116 -116
- data/lib/ruby-prof/assets/call_stack_printer.js.html +384 -384
- data/lib/ruby-prof/call_info.rb +115 -115
- data/lib/ruby-prof/call_info_visitor.rb +40 -40
- data/lib/ruby-prof/compatibility.rb +179 -178
- data/lib/ruby-prof/method_info.rb +121 -121
- data/lib/ruby-prof/printers/abstract_printer.rb +104 -103
- data/lib/ruby-prof/printers/call_info_printer.rb +41 -41
- data/lib/ruby-prof/printers/call_stack_printer.rb +265 -265
- data/lib/ruby-prof/printers/call_tree_printer.rb +143 -143
- data/lib/ruby-prof/printers/dot_printer.rb +132 -132
- data/lib/ruby-prof/printers/flat_printer.rb +70 -70
- data/lib/ruby-prof/printers/flat_printer_with_line_numbers.rb +83 -83
- data/lib/ruby-prof/printers/graph_html_printer.rb +249 -249
- data/lib/ruby-prof/printers/graph_printer.rb +116 -116
- data/lib/ruby-prof/printers/multi_printer.rb +84 -84
- data/lib/ruby-prof/profile.rb +26 -26
- data/lib/ruby-prof/profile/exclude_common_methods.rb +207 -201
- data/lib/ruby-prof/profile/legacy_method_elimination.rb +50 -49
- data/lib/ruby-prof/rack.rb +174 -174
- data/lib/ruby-prof/task.rb +147 -147
- data/lib/ruby-prof/thread.rb +35 -35
- data/lib/ruby-prof/version.rb +3 -3
- data/lib/unprof.rb +10 -10
- data/ruby-prof.gemspec +58 -58
- data/test/abstract_printer_test.rb +53 -0
- data/test/aggregate_test.rb +136 -136
- data/test/basic_test.rb +128 -128
- data/test/block_test.rb +74 -74
- data/test/call_info_test.rb +78 -78
- data/test/call_info_visitor_test.rb +31 -31
- data/test/duplicate_names_test.rb +32 -32
- data/test/dynamic_method_test.rb +55 -55
- data/test/enumerable_test.rb +21 -21
- data/test/exceptions_test.rb +24 -16
- data/test/exclude_methods_test.rb +146 -146
- data/test/exclude_threads_test.rb +53 -53
- data/test/fiber_test.rb +79 -79
- data/test/issue137_test.rb +63 -63
- data/test/line_number_test.rb +80 -80
- data/test/measure_allocations_test.rb +26 -26
- data/test/measure_cpu_time_test.rb +212 -213
- data/test/measure_gc_runs_test.rb +32 -32
- data/test/measure_gc_time_test.rb +36 -36
- data/test/measure_memory_test.rb +33 -33
- data/test/measure_process_time_test.rb +61 -63
- data/test/measure_wall_time_test.rb +255 -255
- data/test/method_elimination_test.rb +84 -84
- data/test/module_test.rb +45 -45
- data/test/multi_printer_test.rb +104 -104
- data/test/no_method_class_test.rb +15 -15
- data/test/pause_resume_test.rb +166 -166
- data/test/prime.rb +54 -54
- data/test/printers_test.rb +275 -275
- data/test/printing_recursive_graph_test.rb +127 -127
- data/test/rack_test.rb +157 -157
- data/test/recursive_test.rb +215 -215
- data/test/singleton_test.rb +38 -38
- data/test/stack_printer_test.rb +77 -78
- data/test/stack_test.rb +138 -138
- data/test/start_stop_test.rb +112 -112
- data/test/test_helper.rb +267 -275
- data/test/thread_test.rb +187 -187
- data/test/unique_call_path_test.rb +202 -202
- data/test/yarv_test.rb +55 -55
- metadata +17 -96
- data/doc/LICENSE.html +0 -115
- data/doc/README_rdoc.html +0 -637
- data/doc/Rack.html +0 -96
- data/doc/Rack/RubyProf.html +0 -233
- data/doc/Rack/RubyProf/RackProfiler.html +0 -343
- data/doc/RubyProf.html +0 -974
- data/doc/RubyProf/AbstractPrinter.html +0 -625
- data/doc/RubyProf/AggregateCallInfo.html +0 -552
- data/doc/RubyProf/CallInfo.html +0 -579
- data/doc/RubyProf/CallInfoPrinter.html +0 -121
- data/doc/RubyProf/CallInfoVisitor.html +0 -199
- data/doc/RubyProf/CallStackPrinter.html +0 -1127
- data/doc/RubyProf/CallTreePrinter.html +0 -725
- data/doc/RubyProf/Cmd.html +0 -637
- data/doc/RubyProf/DeprecationWarnings.html +0 -148
- data/doc/RubyProf/DotPrinter.html +0 -258
- data/doc/RubyProf/FlatPrinter.html +0 -164
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +0 -210
- data/doc/RubyProf/GraphHtmlPrinter.html +0 -558
- data/doc/RubyProf/GraphPrinter.html +0 -140
- data/doc/RubyProf/MethodInfo.html +0 -676
- data/doc/RubyProf/MultiPrinter.html +0 -574
- data/doc/RubyProf/Profile.html +0 -908
- data/doc/RubyProf/Profile/ExcludeCommonMethods.html +0 -411
- data/doc/RubyProf/Profile/LegacyMethodElimination.html +0 -158
- data/doc/RubyProf/ProfileTask.html +0 -491
- data/doc/RubyProf/Thread.html +0 -275
- data/doc/created.rid +0 -33
- data/doc/css/fonts.css +0 -167
- data/doc/css/rdoc.css +0 -590
- data/doc/examples/flat_txt.html +0 -139
- data/doc/examples/graph_html.html +0 -910
- data/doc/examples/graph_txt.html +0 -248
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -666
- data/doc/js/darkfish.js +0 -161
- data/doc/js/jquery.js +0 -4
- data/doc/js/navigation.js +0 -142
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +0 -229
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +0 -1052
- data/examples/cachegrind.out.1 +0 -114
- data/examples/cachegrind.out.1.32313213 +0 -114
- data/ext/ruby_prof/vc/ruby_prof_18.vcxproj +0 -108
- data/ext/ruby_prof/vc/ruby_prof_19.vcxproj +0 -110
@@ -1,552 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>class RubyProf::AggregateCallInfo - ruby-prof</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "../";
|
11
|
-
var index_rel_prefix = "../";
|
12
|
-
</script>
|
13
|
-
|
14
|
-
<script src="../js/jquery.js"></script>
|
15
|
-
<script src="../js/darkfish.js"></script>
|
16
|
-
|
17
|
-
<link href="../css/fonts.css" rel="stylesheet">
|
18
|
-
<link href="../css/rdoc.css" rel="stylesheet">
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<body id="top" role="document" class="class">
|
23
|
-
<nav role="navigation">
|
24
|
-
<div id="project-navigation">
|
25
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
-
<h2>
|
27
|
-
<a href="../index.html" rel="home">Home</a>
|
28
|
-
</h2>
|
29
|
-
|
30
|
-
<div id="table-of-contents-navigation">
|
31
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
32
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
33
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
-
<form action="#" method="get" accept-charset="utf-8">
|
39
|
-
<div id="search-field-wrapper">
|
40
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
-
aria-autocomplete="list" aria-controls="search-results"
|
42
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<ul id="search-results" aria-label="Search Results"
|
47
|
-
aria-busy="false" aria-expanded="false"
|
48
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
-
</form>
|
50
|
-
</div>
|
51
|
-
|
52
|
-
</div>
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<div id="class-metadata">
|
57
|
-
|
58
|
-
<div id="parent-class-section" class="nav-section">
|
59
|
-
<h3>Parent</h3>
|
60
|
-
|
61
|
-
|
62
|
-
<p class="link">Object
|
63
|
-
|
64
|
-
</div>
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
<!-- Method Quickref -->
|
69
|
-
<div id="method-list-section" class="nav-section">
|
70
|
-
<h3>Methods</h3>
|
71
|
-
|
72
|
-
<ul class="link-list" role="directory">
|
73
|
-
|
74
|
-
<li ><a href="#method-c-new">::new</a>
|
75
|
-
|
76
|
-
<li ><a href="#method-i-called">#called</a>
|
77
|
-
|
78
|
-
<li ><a href="#method-i-children">#children</a>
|
79
|
-
|
80
|
-
<li ><a href="#method-i-children_time">#children_time</a>
|
81
|
-
|
82
|
-
<li ><a href="#method-i-line">#line</a>
|
83
|
-
|
84
|
-
<li ><a href="#method-i-parent">#parent</a>
|
85
|
-
|
86
|
-
<li ><a href="#method-i-self_time">#self_time</a>
|
87
|
-
|
88
|
-
<li ><a href="#method-i-target">#target</a>
|
89
|
-
|
90
|
-
<li ><a href="#method-i-to_s">#to_s</a>
|
91
|
-
|
92
|
-
<li ><a href="#method-i-total_time">#total_time</a>
|
93
|
-
|
94
|
-
<li ><a href="#method-i-wait_time">#wait_time</a>
|
95
|
-
|
96
|
-
</ul>
|
97
|
-
</div>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
</nav>
|
101
|
-
|
102
|
-
<main role="main" aria-labelledby="class-RubyProf::AggregateCallInfo">
|
103
|
-
<h1 id="class-RubyProf::AggregateCallInfo" class="class">
|
104
|
-
class RubyProf::AggregateCallInfo
|
105
|
-
</h1>
|
106
|
-
|
107
|
-
<section class="description">
|
108
|
-
|
109
|
-
</section>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<section class="attribute-method-details" class="method-section">
|
123
|
-
<header>
|
124
|
-
<h3>Attributes</h3>
|
125
|
-
</header>
|
126
|
-
|
127
|
-
|
128
|
-
<div id="attribute-i-call_infos" class="method-detail">
|
129
|
-
<div class="method-heading attribute-method-heading">
|
130
|
-
<span class="method-name">call_infos</span><span
|
131
|
-
class="attribute-access-type">[R]</span>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
<div class="method-description">
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
</div>
|
139
|
-
</div>
|
140
|
-
|
141
|
-
<div id="attribute-i-method_info" class="method-detail">
|
142
|
-
<div class="method-heading attribute-method-heading">
|
143
|
-
<span class="method-name">method_info</span><span
|
144
|
-
class="attribute-access-type">[R]</span>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div class="method-description">
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
</div>
|
152
|
-
</div>
|
153
|
-
|
154
|
-
</section>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
159
|
-
<header>
|
160
|
-
<h3>Public Class Methods</h3>
|
161
|
-
</header>
|
162
|
-
|
163
|
-
|
164
|
-
<div id="method-c-new" class="method-detail ">
|
165
|
-
|
166
|
-
<div class="method-heading">
|
167
|
-
<span class="method-name">new</span><span
|
168
|
-
class="method-args">(call_infos, method_info)</span>
|
169
|
-
|
170
|
-
<span class="method-click-advice">click to toggle source</span>
|
171
|
-
|
172
|
-
</div>
|
173
|
-
|
174
|
-
|
175
|
-
<div class="method-description">
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
<div class="method-source-code" id="new-source">
|
183
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 6</span>
|
184
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">call_infos</span>, <span class="ruby-identifier">method_info</span>)
|
185
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
186
|
-
<span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Must specify at least one call info."</span>)
|
187
|
-
<span class="ruby-keyword">end</span>
|
188
|
-
<span class="ruby-ivar">@call_infos</span> = <span class="ruby-identifier">call_infos</span>
|
189
|
-
<span class="ruby-ivar">@method_info</span> = <span class="ruby-identifier">method_info</span>
|
190
|
-
<span class="ruby-keyword">end</span></pre>
|
191
|
-
</div>
|
192
|
-
|
193
|
-
</div>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
</div>
|
199
|
-
|
200
|
-
|
201
|
-
</section>
|
202
|
-
|
203
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
204
|
-
<header>
|
205
|
-
<h3>Public Instance Methods</h3>
|
206
|
-
</header>
|
207
|
-
|
208
|
-
|
209
|
-
<div id="method-i-called" class="method-detail ">
|
210
|
-
|
211
|
-
<div class="method-heading">
|
212
|
-
<span class="method-name">called</span><span
|
213
|
-
class="method-args">()</span>
|
214
|
-
|
215
|
-
<span class="method-click-advice">click to toggle source</span>
|
216
|
-
|
217
|
-
</div>
|
218
|
-
|
219
|
-
|
220
|
-
<div class="method-description">
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
<div class="method-source-code" id="called-source">
|
228
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 48</span>
|
229
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">called</span>
|
230
|
-
<span class="ruby-identifier">aggregate_all</span>(<span class="ruby-value">:called</span>)
|
231
|
-
<span class="ruby-keyword">end</span></pre>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
</div>
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
</div>
|
240
|
-
|
241
|
-
|
242
|
-
<div id="method-i-children" class="method-detail ">
|
243
|
-
|
244
|
-
<div class="method-heading">
|
245
|
-
<span class="method-name">children</span><span
|
246
|
-
class="method-args">()</span>
|
247
|
-
|
248
|
-
<span class="method-click-advice">click to toggle source</span>
|
249
|
-
|
250
|
-
</div>
|
251
|
-
|
252
|
-
|
253
|
-
<div class="method-description">
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
<div class="method-source-code" id="children-source">
|
261
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 26</span>
|
262
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">children</span>
|
263
|
-
<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">result</span>, <span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
264
|
-
<span class="ruby-identifier">result</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">children</span>)
|
265
|
-
<span class="ruby-keyword">end</span>
|
266
|
-
<span class="ruby-keyword">end</span></pre>
|
267
|
-
</div>
|
268
|
-
|
269
|
-
</div>
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
</div>
|
275
|
-
|
276
|
-
|
277
|
-
<div id="method-i-children_time" class="method-detail ">
|
278
|
-
|
279
|
-
<div class="method-heading">
|
280
|
-
<span class="method-name">children_time</span><span
|
281
|
-
class="method-args">()</span>
|
282
|
-
|
283
|
-
<span class="method-click-advice">click to toggle source</span>
|
284
|
-
|
285
|
-
</div>
|
286
|
-
|
287
|
-
|
288
|
-
<div class="method-description">
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
<div class="method-source-code" id="children_time-source">
|
296
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 44</span>
|
297
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">children_time</span>
|
298
|
-
<span class="ruby-identifier">aggregate_roots</span>(<span class="ruby-value">:children_time</span>)
|
299
|
-
<span class="ruby-keyword">end</span></pre>
|
300
|
-
</div>
|
301
|
-
|
302
|
-
</div>
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
</div>
|
308
|
-
|
309
|
-
|
310
|
-
<div id="method-i-line" class="method-detail ">
|
311
|
-
|
312
|
-
<div class="method-heading">
|
313
|
-
<span class="method-name">line</span><span
|
314
|
-
class="method-args">()</span>
|
315
|
-
|
316
|
-
<span class="method-click-advice">click to toggle source</span>
|
317
|
-
|
318
|
-
</div>
|
319
|
-
|
320
|
-
|
321
|
-
<div class="method-description">
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
<div class="method-source-code" id="line-source">
|
329
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 22</span>
|
330
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">line</span>
|
331
|
-
<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">line</span>
|
332
|
-
<span class="ruby-keyword">end</span></pre>
|
333
|
-
</div>
|
334
|
-
|
335
|
-
</div>
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
</div>
|
341
|
-
|
342
|
-
|
343
|
-
<div id="method-i-parent" class="method-detail ">
|
344
|
-
|
345
|
-
<div class="method-heading">
|
346
|
-
<span class="method-name">parent</span><span
|
347
|
-
class="method-args">()</span>
|
348
|
-
|
349
|
-
<span class="method-click-advice">click to toggle source</span>
|
350
|
-
|
351
|
-
</div>
|
352
|
-
|
353
|
-
|
354
|
-
<div class="method-description">
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
<div class="method-source-code" id="parent-source">
|
362
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 18</span>
|
363
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parent</span>
|
364
|
-
<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">parent</span>
|
365
|
-
<span class="ruby-keyword">end</span></pre>
|
366
|
-
</div>
|
367
|
-
|
368
|
-
</div>
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
</div>
|
374
|
-
|
375
|
-
|
376
|
-
<div id="method-i-self_time" class="method-detail ">
|
377
|
-
|
378
|
-
<div class="method-heading">
|
379
|
-
<span class="method-name">self_time</span><span
|
380
|
-
class="method-args">()</span>
|
381
|
-
|
382
|
-
<span class="method-click-advice">click to toggle source</span>
|
383
|
-
|
384
|
-
</div>
|
385
|
-
|
386
|
-
|
387
|
-
<div class="method-description">
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
<div class="method-source-code" id="self_time-source">
|
395
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 36</span>
|
396
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">self_time</span>
|
397
|
-
<span class="ruby-identifier">aggregate_roots</span>(<span class="ruby-value">:self_time</span>)
|
398
|
-
<span class="ruby-keyword">end</span></pre>
|
399
|
-
</div>
|
400
|
-
|
401
|
-
</div>
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
</div>
|
407
|
-
|
408
|
-
|
409
|
-
<div id="method-i-target" class="method-detail ">
|
410
|
-
|
411
|
-
<div class="method-heading">
|
412
|
-
<span class="method-name">target</span><span
|
413
|
-
class="method-args">()</span>
|
414
|
-
|
415
|
-
<span class="method-click-advice">click to toggle source</span>
|
416
|
-
|
417
|
-
</div>
|
418
|
-
|
419
|
-
|
420
|
-
<div class="method-description">
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
<div class="method-source-code" id="target-source">
|
428
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 14</span>
|
429
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">target</span>
|
430
|
-
<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">target</span>
|
431
|
-
<span class="ruby-keyword">end</span></pre>
|
432
|
-
</div>
|
433
|
-
|
434
|
-
</div>
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
</div>
|
440
|
-
|
441
|
-
|
442
|
-
<div id="method-i-to_s" class="method-detail ">
|
443
|
-
|
444
|
-
<div class="method-heading">
|
445
|
-
<span class="method-name">to_s</span><span
|
446
|
-
class="method-args">()</span>
|
447
|
-
|
448
|
-
<span class="method-click-advice">click to toggle source</span>
|
449
|
-
|
450
|
-
</div>
|
451
|
-
|
452
|
-
|
453
|
-
<div class="method-description">
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
<div class="method-source-code" id="to_s-source">
|
461
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 52</span>
|
462
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
463
|
-
<span class="ruby-node">"#{call_infos.first.target.full_name}"</span>
|
464
|
-
<span class="ruby-keyword">end</span></pre>
|
465
|
-
</div>
|
466
|
-
|
467
|
-
</div>
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
</div>
|
473
|
-
|
474
|
-
|
475
|
-
<div id="method-i-total_time" class="method-detail ">
|
476
|
-
|
477
|
-
<div class="method-heading">
|
478
|
-
<span class="method-name">total_time</span><span
|
479
|
-
class="method-args">()</span>
|
480
|
-
|
481
|
-
<span class="method-click-advice">click to toggle source</span>
|
482
|
-
|
483
|
-
</div>
|
484
|
-
|
485
|
-
|
486
|
-
<div class="method-description">
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
<div class="method-source-code" id="total_time-source">
|
494
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 32</span>
|
495
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">total_time</span>
|
496
|
-
<span class="ruby-identifier">aggregate_roots</span>(<span class="ruby-value">:total_time</span>)
|
497
|
-
<span class="ruby-keyword">end</span></pre>
|
498
|
-
</div>
|
499
|
-
|
500
|
-
</div>
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
</div>
|
506
|
-
|
507
|
-
|
508
|
-
<div id="method-i-wait_time" class="method-detail ">
|
509
|
-
|
510
|
-
<div class="method-heading">
|
511
|
-
<span class="method-name">wait_time</span><span
|
512
|
-
class="method-args">()</span>
|
513
|
-
|
514
|
-
<span class="method-click-advice">click to toggle source</span>
|
515
|
-
|
516
|
-
</div>
|
517
|
-
|
518
|
-
|
519
|
-
<div class="method-description">
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
<div class="method-source-code" id="wait_time-source">
|
527
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 40</span>
|
528
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">wait_time</span>
|
529
|
-
<span class="ruby-identifier">aggregate_roots</span>(<span class="ruby-value">:wait_time</span>)
|
530
|
-
<span class="ruby-keyword">end</span></pre>
|
531
|
-
</div>
|
532
|
-
|
533
|
-
</div>
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
</div>
|
539
|
-
|
540
|
-
|
541
|
-
</section>
|
542
|
-
|
543
|
-
</section>
|
544
|
-
</main>
|
545
|
-
|
546
|
-
|
547
|
-
<footer id="validator-badges" role="contentinfo">
|
548
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
549
|
-
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
|
550
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
551
|
-
</footer>
|
552
|
-
|