ruby-prof 0.13.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +14 -0
- data/README.rdoc +1 -1
- data/Rakefile +2 -3
- data/bin/ruby-prof +4 -4
- data/bin/ruby-prof-check-trace +45 -0
- data/doc/LICENSE.html +49 -88
- data/doc/README_rdoc.html +92 -106
- data/doc/Rack.html +47 -116
- data/doc/Rack/RubyProf.html +119 -174
- data/doc/RubyProf.html +184 -216
- data/doc/RubyProf/AbstractPrinter.html +131 -162
- data/doc/RubyProf/AggregateCallInfo.html +136 -166
- data/doc/RubyProf/CallInfo.html +113 -154
- data/doc/RubyProf/CallInfoPrinter.html +56 -123
- data/doc/RubyProf/CallInfoVisitor.html +87 -216
- data/doc/RubyProf/CallStackPrinter.html +222 -215
- data/doc/RubyProf/CallTreePrinter.html +91 -142
- data/doc/RubyProf/Cmd.html +115 -157
- data/doc/RubyProf/DotPrinter.html +88 -140
- data/doc/RubyProf/FlatPrinter.html +66 -129
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +69 -132
- data/doc/RubyProf/GraphHtmlPrinter.html +115 -166
- data/doc/RubyProf/GraphPrinter.html +58 -125
- data/doc/RubyProf/MethodInfo.html +147 -172
- data/doc/RubyProf/MultiPrinter.html +104 -150
- data/doc/RubyProf/Profile.html +125 -179
- data/doc/RubyProf/ProfileTask.html +117 -157
- data/doc/RubyProf/Test.html +115 -154
- data/doc/RubyProf/Thread.html +87 -147
- data/doc/created.rid +13 -14
- data/doc/examples/flat_txt.html +51 -90
- data/doc/examples/graph_html.html +852 -0
- data/doc/examples/graph_txt.html +64 -92
- data/doc/fonts.css +167 -0
- 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/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/index.html +75 -65
- data/doc/js/darkfish.js +0 -15
- data/doc/js/search.js +20 -5
- data/doc/js/search_index.js +1 -1
- data/doc/rdoc.css +255 -218
- data/doc/table_of_contents.html +751 -353
- data/ext/ruby_prof/extconf.rb +20 -22
- data/ext/ruby_prof/rp_measure_allocations.c +9 -5
- data/ext/ruby_prof/rp_measure_gc_runs.c +8 -0
- data/ext/ruby_prof/rp_measure_gc_time.c +5 -2
- data/ext/ruby_prof/rp_measure_wall_time.c +1 -0
- data/ext/ruby_prof/rp_method.c +0 -9
- data/ext/ruby_prof/rp_method.h +1 -6
- data/ext/ruby_prof/ruby_prof.c +32 -112
- data/ext/ruby_prof/ruby_prof.h +9 -10
- data/lib/ruby-prof.rb +2 -1
- data/lib/ruby-prof/aggregate_call_info.rb +4 -6
- data/lib/ruby-prof/call_info_visitor.rb +42 -44
- data/lib/ruby-prof/printers/graph_html_printer.rb +0 -8
- data/lib/ruby-prof/profile.rb +4 -4
- data/lib/ruby-prof/rack.rb +47 -47
- data/lib/ruby-prof/task.rb +0 -0
- data/lib/ruby-prof/thread.rb +22 -22
- data/lib/ruby-prof/version.rb +3 -0
- data/ruby-prof.gemspec +7 -11
- data/test/call_info_test.rb +78 -78
- data/test/call_info_visitor_test.rb +31 -31
- data/test/fiber_test.rb +2 -2
- data/test/measure_gc_runs_test.rb +1 -1
- data/test/measure_process_time_test.rb +7 -6
- data/test/printers_test.rb +4 -8
- data/test/recursive_test.rb +5 -9
- data/test/test_helper.rb +1 -1
- data/test/unique_call_path_test.rb +7 -29
- data/test/yarv_test.rb +55 -0
- metadata +63 -55
- data/ext/ruby_prof/version.h +0 -7
- data/lib/ruby-prof/test.rb +0 -150
- data/test/exec_test.rb +0 -14
- data/test/test_suite.rb +0 -37
@@ -2,179 +2,113 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class RubyProf::AbstractPrinter - ruby-prof</title>
|
8
8
|
|
9
|
-
<link
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
10
11
|
|
11
12
|
<script type="text/javascript">
|
12
13
|
var rdoc_rel_prefix = "../";
|
13
14
|
</script>
|
14
15
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
<script
|
18
|
-
<script
|
19
|
-
<script
|
20
|
-
<script
|
16
|
+
<script src="../js/jquery.js"></script>
|
17
|
+
<script src="../js/navigation.js"></script>
|
18
|
+
<script src="../js/search_index.js"></script>
|
19
|
+
<script src="../js/search.js"></script>
|
20
|
+
<script src="../js/searcher.js"></script>
|
21
|
+
<script src="../js/darkfish.js"></script>
|
21
22
|
|
22
23
|
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
28
34
|
<a href="../table_of_contents.html#classes">Classes</a>
|
29
35
|
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
36
|
+
</div>
|
37
|
+
</div>
|
33
38
|
|
34
|
-
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
40
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
45
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
46
|
+
</div>
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</ul>
|
52
|
-
</nav>
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
53
|
|
54
|
-
|
55
54
|
</div>
|
56
55
|
|
56
|
+
|
57
|
+
|
57
58
|
<div id="class-metadata">
|
58
59
|
|
59
|
-
<
|
60
|
-
<h3
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
61
63
|
|
62
64
|
<p class="link">Object
|
63
65
|
|
64
|
-
</
|
66
|
+
</div>
|
65
67
|
|
66
68
|
|
69
|
+
|
67
70
|
<!-- Method Quickref -->
|
68
|
-
<
|
69
|
-
<h3
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
70
73
|
|
71
|
-
<ul class="link-list">
|
74
|
+
<ul class="link-list" role="directory">
|
72
75
|
|
73
|
-
<li><a href="#method-c-new">::new</a>
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
74
77
|
|
75
|
-
<li><a href="#method-i-method_name">#method_name</a>
|
78
|
+
<li ><a href="#method-i-method_name">#method_name</a>
|
76
79
|
|
77
|
-
<li><a href="#method-i-min_percent">#min_percent</a>
|
80
|
+
<li ><a href="#method-i-min_percent">#min_percent</a>
|
78
81
|
|
79
|
-
<li><a href="#method-i-print">#print</a>
|
82
|
+
<li ><a href="#method-i-print">#print</a>
|
80
83
|
|
81
|
-
<li><a href="#method-i-print_file">#print_file</a>
|
84
|
+
<li ><a href="#method-i-print_file">#print_file</a>
|
82
85
|
|
83
|
-
<li><a href="#method-i-print_footer">#print_footer</a>
|
86
|
+
<li ><a href="#method-i-print_footer">#print_footer</a>
|
84
87
|
|
85
|
-
<li><a href="#method-i-print_header">#print_header</a>
|
88
|
+
<li ><a href="#method-i-print_header">#print_header</a>
|
86
89
|
|
87
|
-
<li><a href="#method-i-print_thread">#print_thread</a>
|
90
|
+
<li ><a href="#method-i-print_thread">#print_thread</a>
|
88
91
|
|
89
|
-
<li><a href="#method-i-print_threads">#print_threads</a>
|
92
|
+
<li ><a href="#method-i-print_threads">#print_threads</a>
|
90
93
|
|
91
|
-
<li><a href="#method-i-setup_options">#setup_options</a>
|
94
|
+
<li ><a href="#method-i-setup_options">#setup_options</a>
|
92
95
|
|
93
|
-
<li><a href="#method-i-sort_method">#sort_method</a>
|
96
|
+
<li ><a href="#method-i-sort_method">#sort_method</a>
|
94
97
|
|
95
98
|
</ul>
|
96
|
-
</
|
97
|
-
|
98
|
-
</div>
|
99
|
-
|
100
|
-
<div id="project-metadata">
|
101
|
-
<nav id="fileindex-section" class="section project-section">
|
102
|
-
<h3 class="section-header">Pages</h3>
|
103
|
-
|
104
|
-
<ul>
|
105
|
-
|
106
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
107
|
-
|
108
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
109
|
-
|
110
|
-
<li class="file"><a href="../examples/flat_txt.html">flat</a>
|
111
|
-
|
112
|
-
<li class="file"><a href="../examples/graph_txt.html">graph</a>
|
113
|
-
|
114
|
-
</ul>
|
115
|
-
</nav>
|
116
|
-
|
117
|
-
<nav id="classindex-section" class="section project-section">
|
118
|
-
<h3 class="section-header">Class and Module Index</h3>
|
119
|
-
|
120
|
-
<ul class="link-list">
|
121
|
-
|
122
|
-
<li><a href="../RubyProf.html">RubyProf</a>
|
123
|
-
|
124
|
-
<li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
125
|
-
|
126
|
-
<li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
127
|
-
|
128
|
-
<li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
|
129
|
-
|
130
|
-
<li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
|
131
|
-
|
132
|
-
<li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
|
133
|
-
|
134
|
-
<li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
|
135
|
-
|
136
|
-
<li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
137
|
-
|
138
|
-
<li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
|
139
|
-
|
140
|
-
<li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
141
|
-
|
142
|
-
<li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
143
|
-
|
144
|
-
<li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
145
|
-
|
146
|
-
<li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
147
|
-
|
148
|
-
<li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
149
|
-
|
150
|
-
<li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
151
|
-
|
152
|
-
<li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
153
|
-
|
154
|
-
<li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
|
155
|
-
|
156
|
-
<li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
157
|
-
|
158
|
-
<li><a href="../RubyProf/Test.html">RubyProf::Test</a>
|
159
|
-
|
160
|
-
<li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
|
161
|
-
|
162
|
-
<li><a href="../Rack.html">Rack</a>
|
163
|
-
|
164
|
-
<li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
|
165
|
-
|
166
|
-
</ul>
|
167
|
-
</nav>
|
99
|
+
</div>
|
168
100
|
|
169
101
|
</div>
|
170
102
|
</nav>
|
171
103
|
|
172
|
-
<
|
173
|
-
<h1
|
104
|
+
<main role="main" aria-labelledby="class-RubyProf::AbstractPrinter">
|
105
|
+
<h1 id="class-RubyProf::AbstractPrinter" class="class">
|
106
|
+
class RubyProf::AbstractPrinter
|
107
|
+
</h1>
|
174
108
|
|
175
|
-
<
|
109
|
+
<section class="description">
|
176
110
|
|
177
|
-
</
|
111
|
+
</section>
|
178
112
|
|
179
113
|
|
180
114
|
|
@@ -188,10 +122,11 @@
|
|
188
122
|
|
189
123
|
|
190
124
|
|
191
|
-
<!-- Methods -->
|
192
125
|
|
193
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
194
|
-
|
126
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
127
|
+
<header>
|
128
|
+
<h3>Public Class Methods</h3>
|
129
|
+
</header>
|
195
130
|
|
196
131
|
|
197
132
|
<div id="method-c-new" class="method-detail ">
|
@@ -199,7 +134,9 @@
|
|
199
134
|
<div class="method-heading">
|
200
135
|
<span class="method-name">new</span><span
|
201
136
|
class="method-args">(result)</span>
|
137
|
+
|
202
138
|
<span class="method-click-advice">click to toggle source</span>
|
139
|
+
|
203
140
|
</div>
|
204
141
|
|
205
142
|
|
@@ -209,6 +146,7 @@
|
|
209
146
|
|
210
147
|
<p>result should be the output generated from a profiling run</p>
|
211
148
|
|
149
|
+
|
212
150
|
|
213
151
|
|
214
152
|
<div class="method-source-code" id="new-source">
|
@@ -217,20 +155,22 @@
|
|
217
155
|
<span class="ruby-ivar">@result</span> = <span class="ruby-identifier">result</span>
|
218
156
|
<span class="ruby-ivar">@output</span> = <span class="ruby-keyword">nil</span>
|
219
157
|
<span class="ruby-keyword">end</span></pre>
|
220
|
-
</div
|
158
|
+
</div>
|
221
159
|
|
222
160
|
</div>
|
223
161
|
|
224
162
|
|
225
163
|
|
226
164
|
|
227
|
-
</div
|
165
|
+
</div>
|
228
166
|
|
229
167
|
|
230
|
-
</section
|
168
|
+
</section>
|
231
169
|
|
232
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section
|
233
|
-
|
170
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
171
|
+
<header>
|
172
|
+
<h3>Public Instance Methods</h3>
|
173
|
+
</header>
|
234
174
|
|
235
175
|
|
236
176
|
<div id="method-i-method_name" class="method-detail ">
|
@@ -238,7 +178,9 @@
|
|
238
178
|
<div class="method-heading">
|
239
179
|
<span class="method-name">method_name</span><span
|
240
180
|
class="method-args">(method)</span>
|
181
|
+
|
241
182
|
<span class="method-click-advice">click to toggle source</span>
|
183
|
+
|
242
184
|
</div>
|
243
185
|
|
244
186
|
|
@@ -246,6 +188,7 @@
|
|
246
188
|
|
247
189
|
|
248
190
|
|
191
|
+
|
249
192
|
|
250
193
|
|
251
194
|
<div class="method-source-code" id="method_name-source">
|
@@ -257,14 +200,14 @@
|
|
257
200
|
<span class="ruby-keyword">end</span>
|
258
201
|
<span class="ruby-identifier">name</span>
|
259
202
|
<span class="ruby-keyword">end</span></pre>
|
260
|
-
</div
|
203
|
+
</div>
|
261
204
|
|
262
205
|
</div>
|
263
206
|
|
264
207
|
|
265
208
|
|
266
209
|
|
267
|
-
</div
|
210
|
+
</div>
|
268
211
|
|
269
212
|
|
270
213
|
<div id="method-i-min_percent" class="method-detail ">
|
@@ -272,7 +215,9 @@
|
|
272
215
|
<div class="method-heading">
|
273
216
|
<span class="method-name">min_percent</span><span
|
274
217
|
class="method-args">()</span>
|
218
|
+
|
275
219
|
<span class="method-click-advice">click to toggle source</span>
|
220
|
+
|
276
221
|
</div>
|
277
222
|
|
278
223
|
|
@@ -280,6 +225,7 @@
|
|
280
225
|
|
281
226
|
|
282
227
|
|
228
|
+
|
283
229
|
|
284
230
|
|
285
231
|
<div class="method-source-code" id="min_percent-source">
|
@@ -287,14 +233,14 @@
|
|
287
233
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">min_percent</span>
|
288
234
|
<span class="ruby-ivar">@options</span>[<span class="ruby-value">:min_percent</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
289
235
|
<span class="ruby-keyword">end</span></pre>
|
290
|
-
</div
|
236
|
+
</div>
|
291
237
|
|
292
238
|
</div>
|
293
239
|
|
294
240
|
|
295
241
|
|
296
242
|
|
297
|
-
</div
|
243
|
+
</div>
|
298
244
|
|
299
245
|
|
300
246
|
<div id="method-i-print" class="method-detail ">
|
@@ -302,7 +248,9 @@
|
|
302
248
|
<div class="method-heading">
|
303
249
|
<span class="method-name">print</span><span
|
304
250
|
class="method-args">(output = STDOUT, options = {})</span>
|
251
|
+
|
305
252
|
<span class="method-click-advice">click to toggle source</span>
|
253
|
+
|
306
254
|
</div>
|
307
255
|
|
308
256
|
|
@@ -318,6 +266,7 @@ href="AbstractPrinter.html#method-i-setup_options">setup_options</a> for
|
|
318
266
|
more information. Note that each printer can define its own set of
|
319
267
|
options.</p>
|
320
268
|
|
269
|
+
|
321
270
|
|
322
271
|
|
323
272
|
<div class="method-source-code" id="print-source">
|
@@ -327,14 +276,14 @@ options.</p>
|
|
327
276
|
<span class="ruby-identifier">setup_options</span>(<span class="ruby-identifier">options</span>)
|
328
277
|
<span class="ruby-identifier">print_threads</span>
|
329
278
|
<span class="ruby-keyword">end</span></pre>
|
330
|
-
</div
|
279
|
+
</div>
|
331
280
|
|
332
281
|
</div>
|
333
282
|
|
334
283
|
|
335
284
|
|
336
285
|
|
337
|
-
</div
|
286
|
+
</div>
|
338
287
|
|
339
288
|
|
340
289
|
<div id="method-i-print_file" class="method-detail ">
|
@@ -342,7 +291,9 @@ options.</p>
|
|
342
291
|
<div class="method-heading">
|
343
292
|
<span class="method-name">print_file</span><span
|
344
293
|
class="method-args">()</span>
|
294
|
+
|
345
295
|
<span class="method-click-advice">click to toggle source</span>
|
296
|
+
|
346
297
|
</div>
|
347
298
|
|
348
299
|
|
@@ -350,6 +301,7 @@ options.</p>
|
|
350
301
|
|
351
302
|
|
352
303
|
|
304
|
+
|
353
305
|
|
354
306
|
|
355
307
|
<div class="method-source-code" id="print_file-source">
|
@@ -357,14 +309,14 @@ options.</p>
|
|
357
309
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_file</span>
|
358
310
|
<span class="ruby-ivar">@options</span>[<span class="ruby-value">:print_file</span>] <span class="ruby-operator">||</span> <span class="ruby-keyword">false</span>
|
359
311
|
<span class="ruby-keyword">end</span></pre>
|
360
|
-
</div
|
312
|
+
</div>
|
361
313
|
|
362
314
|
</div>
|
363
315
|
|
364
316
|
|
365
317
|
|
366
318
|
|
367
|
-
</div
|
319
|
+
</div>
|
368
320
|
|
369
321
|
|
370
322
|
<div id="method-i-print_footer" class="method-detail ">
|
@@ -372,7 +324,9 @@ options.</p>
|
|
372
324
|
<div class="method-heading">
|
373
325
|
<span class="method-name">print_footer</span><span
|
374
326
|
class="method-args">(thread)</span>
|
327
|
+
|
375
328
|
<span class="method-click-advice">click to toggle source</span>
|
329
|
+
|
376
330
|
</div>
|
377
331
|
|
378
332
|
|
@@ -380,20 +334,21 @@ options.</p>
|
|
380
334
|
|
381
335
|
|
382
336
|
|
337
|
+
|
383
338
|
|
384
339
|
|
385
340
|
<div class="method-source-code" id="print_footer-source">
|
386
341
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 81</span>
|
387
342
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_footer</span>(<span class="ruby-identifier">thread</span>)
|
388
343
|
<span class="ruby-keyword">end</span></pre>
|
389
|
-
</div
|
344
|
+
</div>
|
390
345
|
|
391
346
|
</div>
|
392
347
|
|
393
348
|
|
394
349
|
|
395
350
|
|
396
|
-
</div
|
351
|
+
</div>
|
397
352
|
|
398
353
|
|
399
354
|
<div id="method-i-print_header" class="method-detail ">
|
@@ -401,7 +356,9 @@ options.</p>
|
|
401
356
|
<div class="method-heading">
|
402
357
|
<span class="method-name">print_header</span><span
|
403
358
|
class="method-args">(thread)</span>
|
359
|
+
|
404
360
|
<span class="method-click-advice">click to toggle source</span>
|
361
|
+
|
405
362
|
</div>
|
406
363
|
|
407
364
|
|
@@ -409,20 +366,21 @@ options.</p>
|
|
409
366
|
|
410
367
|
|
411
368
|
|
369
|
+
|
412
370
|
|
413
371
|
|
414
372
|
<div class="method-source-code" id="print_header-source">
|
415
373
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 78</span>
|
416
374
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_header</span>(<span class="ruby-identifier">thread</span>)
|
417
375
|
<span class="ruby-keyword">end</span></pre>
|
418
|
-
</div
|
376
|
+
</div>
|
419
377
|
|
420
378
|
</div>
|
421
379
|
|
422
380
|
|
423
381
|
|
424
382
|
|
425
|
-
</div
|
383
|
+
</div>
|
426
384
|
|
427
385
|
|
428
386
|
<div id="method-i-print_thread" class="method-detail ">
|
@@ -430,7 +388,9 @@ options.</p>
|
|
430
388
|
<div class="method-heading">
|
431
389
|
<span class="method-name">print_thread</span><span
|
432
390
|
class="method-args">(thread)</span>
|
391
|
+
|
433
392
|
<span class="method-click-advice">click to toggle source</span>
|
393
|
+
|
434
394
|
</div>
|
435
395
|
|
436
396
|
|
@@ -438,6 +398,7 @@ options.</p>
|
|
438
398
|
|
439
399
|
|
440
400
|
|
401
|
+
|
441
402
|
|
442
403
|
|
443
404
|
<div class="method-source-code" id="print_thread-source">
|
@@ -447,14 +408,14 @@ options.</p>
|
|
447
408
|
<span class="ruby-identifier">print_methods</span>(<span class="ruby-identifier">thread</span>)
|
448
409
|
<span class="ruby-identifier">print_footer</span>(<span class="ruby-identifier">thread</span>)
|
449
410
|
<span class="ruby-keyword">end</span></pre>
|
450
|
-
</div
|
411
|
+
</div>
|
451
412
|
|
452
413
|
</div>
|
453
414
|
|
454
415
|
|
455
416
|
|
456
417
|
|
457
|
-
</div
|
418
|
+
</div>
|
458
419
|
|
459
420
|
|
460
421
|
<div id="method-i-print_threads" class="method-detail ">
|
@@ -462,7 +423,9 @@ options.</p>
|
|
462
423
|
<div class="method-heading">
|
463
424
|
<span class="method-name">print_threads</span><span
|
464
425
|
class="method-args">()</span>
|
426
|
+
|
465
427
|
<span class="method-click-advice">click to toggle source</span>
|
428
|
+
|
466
429
|
</div>
|
467
430
|
|
468
431
|
|
@@ -470,6 +433,7 @@ options.</p>
|
|
470
433
|
|
471
434
|
|
472
435
|
|
436
|
+
|
473
437
|
|
474
438
|
|
475
439
|
<div class="method-source-code" id="print_threads-source">
|
@@ -479,14 +443,14 @@ options.</p>
|
|
479
443
|
<span class="ruby-identifier">print_thread</span>(<span class="ruby-identifier">thread</span>)
|
480
444
|
<span class="ruby-keyword">end</span>
|
481
445
|
<span class="ruby-keyword">end</span></pre>
|
482
|
-
</div
|
446
|
+
</div>
|
483
447
|
|
484
448
|
</div>
|
485
449
|
|
486
450
|
|
487
451
|
|
488
452
|
|
489
|
-
</div
|
453
|
+
</div>
|
490
454
|
|
491
455
|
|
492
456
|
<div id="method-i-setup_options" class="method-detail ">
|
@@ -494,7 +458,9 @@ options.</p>
|
|
494
458
|
<div class="method-heading">
|
495
459
|
<span class="method-name">setup_options</span><span
|
496
460
|
class="method-args">(options = {})</span>
|
461
|
+
|
497
462
|
<span class="method-click-advice">click to toggle source</span>
|
463
|
+
|
498
464
|
</div>
|
499
465
|
|
500
466
|
|
@@ -518,6 +484,7 @@ options.</p>
|
|
518
484
|
:wait_time, :children_time
|
519
485
|
Default value is :total_time</pre>
|
520
486
|
|
487
|
+
|
521
488
|
|
522
489
|
|
523
490
|
<div class="method-source-code" id="setup_options-source">
|
@@ -525,14 +492,14 @@ options.</p>
|
|
525
492
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">setup_options</span>(<span class="ruby-identifier">options</span> = {})
|
526
493
|
<span class="ruby-ivar">@options</span> = <span class="ruby-identifier">options</span>
|
527
494
|
<span class="ruby-keyword">end</span></pre>
|
528
|
-
</div
|
495
|
+
</div>
|
529
496
|
|
530
497
|
</div>
|
531
498
|
|
532
499
|
|
533
500
|
|
534
501
|
|
535
|
-
</div
|
502
|
+
</div>
|
536
503
|
|
537
504
|
|
538
505
|
<div id="method-i-sort_method" class="method-detail ">
|
@@ -540,7 +507,9 @@ options.</p>
|
|
540
507
|
<div class="method-heading">
|
541
508
|
<span class="method-name">sort_method</span><span
|
542
509
|
class="method-args">()</span>
|
510
|
+
|
543
511
|
<span class="method-click-advice">click to toggle source</span>
|
512
|
+
|
544
513
|
</div>
|
545
514
|
|
546
515
|
|
@@ -548,6 +517,7 @@ options.</p>
|
|
548
517
|
|
549
518
|
|
550
519
|
|
520
|
+
|
551
521
|
|
552
522
|
|
553
523
|
<div class="method-source-code" id="sort_method-source">
|
@@ -555,26 +525,25 @@ options.</p>
|
|
555
525
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">sort_method</span>
|
556
526
|
<span class="ruby-ivar">@options</span>[<span class="ruby-value">:sort_method</span>] <span class="ruby-operator">||</span> <span class="ruby-value">:total_time</span>
|
557
527
|
<span class="ruby-keyword">end</span></pre>
|
558
|
-
</div
|
528
|
+
</div>
|
559
529
|
|
560
530
|
</div>
|
561
531
|
|
562
532
|
|
563
533
|
|
564
534
|
|
565
|
-
</div
|
535
|
+
</div>
|
566
536
|
|
567
537
|
|
568
|
-
</section
|
538
|
+
</section>
|
569
539
|
|
570
|
-
</section
|
571
|
-
|
572
|
-
</div><!-- documentation -->
|
540
|
+
</section>
|
541
|
+
</main>
|
573
542
|
|
574
543
|
|
575
|
-
<footer id="validator-badges">
|
576
|
-
<p><a href="http://validator.w3.org/check/referer">
|
577
|
-
<p>Generated by <a href="
|
578
|
-
<p>
|
544
|
+
<footer id="validator-badges" role="contentinfo">
|
545
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
546
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
547
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
579
548
|
</footer>
|
580
549
|
|