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.
Files changed (185) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +500 -482
  3. data/LICENSE +24 -24
  4. data/README.rdoc +487 -485
  5. data/Rakefile +113 -113
  6. data/bin/ruby-prof +345 -345
  7. data/bin/ruby-prof-check-trace +45 -45
  8. data/examples/flat.txt +50 -50
  9. data/examples/graph.dot +84 -84
  10. data/examples/graph.html +823 -823
  11. data/examples/graph.txt +139 -139
  12. data/examples/multi.flat.txt +23 -23
  13. data/examples/multi.graph.html +760 -760
  14. data/examples/multi.grind.dat +114 -114
  15. data/examples/multi.stack.html +547 -547
  16. data/examples/stack.html +547 -547
  17. data/ext/ruby_prof/extconf.rb +68 -68
  18. data/ext/ruby_prof/rp_call_info.c +425 -425
  19. data/ext/ruby_prof/rp_call_info.h +53 -53
  20. data/ext/ruby_prof/rp_measure.c +40 -40
  21. data/ext/ruby_prof/rp_measure.h +45 -45
  22. data/ext/ruby_prof/rp_measure_allocations.c +76 -76
  23. data/ext/ruby_prof/rp_measure_cpu_time.c +136 -136
  24. data/ext/ruby_prof/rp_measure_gc_runs.c +73 -73
  25. data/ext/ruby_prof/rp_measure_gc_time.c +60 -60
  26. data/ext/ruby_prof/rp_measure_memory.c +77 -77
  27. data/ext/ruby_prof/rp_measure_process_time.c +71 -71
  28. data/ext/ruby_prof/rp_measure_wall_time.c +45 -45
  29. data/ext/ruby_prof/rp_method.c +630 -636
  30. data/ext/ruby_prof/rp_method.h +75 -75
  31. data/ext/ruby_prof/rp_stack.c +173 -173
  32. data/ext/ruby_prof/rp_stack.h +63 -63
  33. data/ext/ruby_prof/rp_thread.c +277 -276
  34. data/ext/ruby_prof/rp_thread.h +27 -27
  35. data/ext/ruby_prof/ruby_prof.c +794 -774
  36. data/ext/ruby_prof/ruby_prof.h +60 -59
  37. data/ext/ruby_prof/vc/ruby_prof.sln +20 -21
  38. data/ext/ruby_prof/vc/{ruby_prof_20.vcxproj → ruby_prof.vcxproj} +31 -0
  39. data/lib/ruby-prof.rb +68 -68
  40. data/lib/ruby-prof/aggregate_call_info.rb +76 -76
  41. data/lib/ruby-prof/assets/call_stack_printer.css.html +116 -116
  42. data/lib/ruby-prof/assets/call_stack_printer.js.html +384 -384
  43. data/lib/ruby-prof/call_info.rb +115 -115
  44. data/lib/ruby-prof/call_info_visitor.rb +40 -40
  45. data/lib/ruby-prof/compatibility.rb +179 -178
  46. data/lib/ruby-prof/method_info.rb +121 -121
  47. data/lib/ruby-prof/printers/abstract_printer.rb +104 -103
  48. data/lib/ruby-prof/printers/call_info_printer.rb +41 -41
  49. data/lib/ruby-prof/printers/call_stack_printer.rb +265 -265
  50. data/lib/ruby-prof/printers/call_tree_printer.rb +143 -143
  51. data/lib/ruby-prof/printers/dot_printer.rb +132 -132
  52. data/lib/ruby-prof/printers/flat_printer.rb +70 -70
  53. data/lib/ruby-prof/printers/flat_printer_with_line_numbers.rb +83 -83
  54. data/lib/ruby-prof/printers/graph_html_printer.rb +249 -249
  55. data/lib/ruby-prof/printers/graph_printer.rb +116 -116
  56. data/lib/ruby-prof/printers/multi_printer.rb +84 -84
  57. data/lib/ruby-prof/profile.rb +26 -26
  58. data/lib/ruby-prof/profile/exclude_common_methods.rb +207 -201
  59. data/lib/ruby-prof/profile/legacy_method_elimination.rb +50 -49
  60. data/lib/ruby-prof/rack.rb +174 -174
  61. data/lib/ruby-prof/task.rb +147 -147
  62. data/lib/ruby-prof/thread.rb +35 -35
  63. data/lib/ruby-prof/version.rb +3 -3
  64. data/lib/unprof.rb +10 -10
  65. data/ruby-prof.gemspec +58 -58
  66. data/test/abstract_printer_test.rb +53 -0
  67. data/test/aggregate_test.rb +136 -136
  68. data/test/basic_test.rb +128 -128
  69. data/test/block_test.rb +74 -74
  70. data/test/call_info_test.rb +78 -78
  71. data/test/call_info_visitor_test.rb +31 -31
  72. data/test/duplicate_names_test.rb +32 -32
  73. data/test/dynamic_method_test.rb +55 -55
  74. data/test/enumerable_test.rb +21 -21
  75. data/test/exceptions_test.rb +24 -16
  76. data/test/exclude_methods_test.rb +146 -146
  77. data/test/exclude_threads_test.rb +53 -53
  78. data/test/fiber_test.rb +79 -79
  79. data/test/issue137_test.rb +63 -63
  80. data/test/line_number_test.rb +80 -80
  81. data/test/measure_allocations_test.rb +26 -26
  82. data/test/measure_cpu_time_test.rb +212 -213
  83. data/test/measure_gc_runs_test.rb +32 -32
  84. data/test/measure_gc_time_test.rb +36 -36
  85. data/test/measure_memory_test.rb +33 -33
  86. data/test/measure_process_time_test.rb +61 -63
  87. data/test/measure_wall_time_test.rb +255 -255
  88. data/test/method_elimination_test.rb +84 -84
  89. data/test/module_test.rb +45 -45
  90. data/test/multi_printer_test.rb +104 -104
  91. data/test/no_method_class_test.rb +15 -15
  92. data/test/pause_resume_test.rb +166 -166
  93. data/test/prime.rb +54 -54
  94. data/test/printers_test.rb +275 -275
  95. data/test/printing_recursive_graph_test.rb +127 -127
  96. data/test/rack_test.rb +157 -157
  97. data/test/recursive_test.rb +215 -215
  98. data/test/singleton_test.rb +38 -38
  99. data/test/stack_printer_test.rb +77 -78
  100. data/test/stack_test.rb +138 -138
  101. data/test/start_stop_test.rb +112 -112
  102. data/test/test_helper.rb +267 -275
  103. data/test/thread_test.rb +187 -187
  104. data/test/unique_call_path_test.rb +202 -202
  105. data/test/yarv_test.rb +55 -55
  106. metadata +17 -96
  107. data/doc/LICENSE.html +0 -115
  108. data/doc/README_rdoc.html +0 -637
  109. data/doc/Rack.html +0 -96
  110. data/doc/Rack/RubyProf.html +0 -233
  111. data/doc/Rack/RubyProf/RackProfiler.html +0 -343
  112. data/doc/RubyProf.html +0 -974
  113. data/doc/RubyProf/AbstractPrinter.html +0 -625
  114. data/doc/RubyProf/AggregateCallInfo.html +0 -552
  115. data/doc/RubyProf/CallInfo.html +0 -579
  116. data/doc/RubyProf/CallInfoPrinter.html +0 -121
  117. data/doc/RubyProf/CallInfoVisitor.html +0 -199
  118. data/doc/RubyProf/CallStackPrinter.html +0 -1127
  119. data/doc/RubyProf/CallTreePrinter.html +0 -725
  120. data/doc/RubyProf/Cmd.html +0 -637
  121. data/doc/RubyProf/DeprecationWarnings.html +0 -148
  122. data/doc/RubyProf/DotPrinter.html +0 -258
  123. data/doc/RubyProf/FlatPrinter.html +0 -164
  124. data/doc/RubyProf/FlatPrinterWithLineNumbers.html +0 -210
  125. data/doc/RubyProf/GraphHtmlPrinter.html +0 -558
  126. data/doc/RubyProf/GraphPrinter.html +0 -140
  127. data/doc/RubyProf/MethodInfo.html +0 -676
  128. data/doc/RubyProf/MultiPrinter.html +0 -574
  129. data/doc/RubyProf/Profile.html +0 -908
  130. data/doc/RubyProf/Profile/ExcludeCommonMethods.html +0 -411
  131. data/doc/RubyProf/Profile/LegacyMethodElimination.html +0 -158
  132. data/doc/RubyProf/ProfileTask.html +0 -491
  133. data/doc/RubyProf/Thread.html +0 -275
  134. data/doc/created.rid +0 -33
  135. data/doc/css/fonts.css +0 -167
  136. data/doc/css/rdoc.css +0 -590
  137. data/doc/examples/flat_txt.html +0 -139
  138. data/doc/examples/graph_html.html +0 -910
  139. data/doc/examples/graph_txt.html +0 -248
  140. data/doc/fonts/Lato-Light.ttf +0 -0
  141. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  142. data/doc/fonts/Lato-Regular.ttf +0 -0
  143. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  144. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  145. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  146. data/doc/images/add.png +0 -0
  147. data/doc/images/arrow_up.png +0 -0
  148. data/doc/images/brick.png +0 -0
  149. data/doc/images/brick_link.png +0 -0
  150. data/doc/images/bug.png +0 -0
  151. data/doc/images/bullet_black.png +0 -0
  152. data/doc/images/bullet_toggle_minus.png +0 -0
  153. data/doc/images/bullet_toggle_plus.png +0 -0
  154. data/doc/images/date.png +0 -0
  155. data/doc/images/delete.png +0 -0
  156. data/doc/images/find.png +0 -0
  157. data/doc/images/loadingAnimation.gif +0 -0
  158. data/doc/images/macFFBgHack.png +0 -0
  159. data/doc/images/package.png +0 -0
  160. data/doc/images/page_green.png +0 -0
  161. data/doc/images/page_white_text.png +0 -0
  162. data/doc/images/page_white_width.png +0 -0
  163. data/doc/images/plugin.png +0 -0
  164. data/doc/images/ruby.png +0 -0
  165. data/doc/images/tag_blue.png +0 -0
  166. data/doc/images/tag_green.png +0 -0
  167. data/doc/images/transparent.png +0 -0
  168. data/doc/images/wrench.png +0 -0
  169. data/doc/images/wrench_orange.png +0 -0
  170. data/doc/images/zoom.png +0 -0
  171. data/doc/index.html +0 -666
  172. data/doc/js/darkfish.js +0 -161
  173. data/doc/js/jquery.js +0 -4
  174. data/doc/js/navigation.js +0 -142
  175. data/doc/js/navigation.js.gz +0 -0
  176. data/doc/js/search.js +0 -109
  177. data/doc/js/search_index.js +0 -1
  178. data/doc/js/search_index.js.gz +0 -0
  179. data/doc/js/searcher.js +0 -229
  180. data/doc/js/searcher.js.gz +0 -0
  181. data/doc/table_of_contents.html +0 -1052
  182. data/examples/cachegrind.out.1 +0 -114
  183. data/examples/cachegrind.out.1.32313213 +0 -114
  184. data/ext/ruby_prof/vc/ruby_prof_18.vcxproj +0 -108
  185. data/ext/ruby_prof/vc/ruby_prof_19.vcxproj +0 -110
@@ -1,625 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class RubyProf::AbstractPrinter - 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-needs_dir-3F">::needs_dir?</a>
75
-
76
- <li ><a href="#method-c-new">::new</a>
77
-
78
- <li ><a href="#method-i-editor_uri">#editor_uri</a>
79
-
80
- <li ><a href="#method-i-method_name">#method_name</a>
81
-
82
- <li ><a href="#method-i-min_percent">#min_percent</a>
83
-
84
- <li ><a href="#method-i-print">#print</a>
85
-
86
- <li ><a href="#method-i-print_file">#print_file</a>
87
-
88
- <li ><a href="#method-i-print_footer">#print_footer</a>
89
-
90
- <li ><a href="#method-i-print_header">#print_header</a>
91
-
92
- <li ><a href="#method-i-print_thread">#print_thread</a>
93
-
94
- <li ><a href="#method-i-print_threads">#print_threads</a>
95
-
96
- <li ><a href="#method-i-setup_options">#setup_options</a>
97
-
98
- <li ><a href="#method-i-sort_method">#sort_method</a>
99
-
100
- </ul>
101
- </div>
102
-
103
- </div>
104
- </nav>
105
-
106
- <main role="main" aria-labelledby="class-RubyProf::AbstractPrinter">
107
- <h1 id="class-RubyProf::AbstractPrinter" class="class">
108
- class RubyProf::AbstractPrinter
109
- </h1>
110
-
111
- <section class="description">
112
-
113
- </section>
114
-
115
-
116
-
117
-
118
- <section id="5Buntitled-5D" class="documentation-section">
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
129
- <header>
130
- <h3>Public Class Methods</h3>
131
- </header>
132
-
133
-
134
- <div id="method-c-needs_dir-3F" class="method-detail ">
135
-
136
- <div class="method-heading">
137
- <span class="method-name">needs_dir?</span><span
138
- class="method-args">()</span>
139
-
140
- <span class="method-click-advice">click to toggle source</span>
141
-
142
- </div>
143
-
144
-
145
- <div class="method-description">
146
-
147
- <p>whether this printer need a :path option pointing to a directory</p>
148
-
149
-
150
-
151
-
152
- <div class="method-source-code" id="needs_dir-3F-source">
153
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 98</span>
154
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">needs_dir?</span>
155
- <span class="ruby-keyword">false</span>
156
- <span class="ruby-keyword">end</span></pre>
157
- </div>
158
-
159
- </div>
160
-
161
-
162
-
163
-
164
- </div>
165
-
166
-
167
- <div id="method-c-new" class="method-detail ">
168
-
169
- <div class="method-heading">
170
- <span class="method-name">new</span><span
171
- class="method-args">(result)</span>
172
-
173
- <span class="method-click-advice">click to toggle source</span>
174
-
175
- </div>
176
-
177
-
178
- <div class="method-description">
179
-
180
- <p>Create a new printer.</p>
181
-
182
- <p>result should be the output generated from a profiling run</p>
183
-
184
-
185
-
186
-
187
- <div class="method-source-code" id="new-source">
188
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 7</span>
189
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">result</span>)
190
- <span class="ruby-ivar">@result</span> = <span class="ruby-identifier">result</span>
191
- <span class="ruby-ivar">@output</span> = <span class="ruby-keyword">nil</span>
192
- <span class="ruby-keyword">end</span></pre>
193
- </div>
194
-
195
- </div>
196
-
197
-
198
-
199
-
200
- </div>
201
-
202
-
203
- </section>
204
-
205
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
206
- <header>
207
- <h3>Public Instance Methods</h3>
208
- </header>
209
-
210
-
211
- <div id="method-i-editor_uri" class="method-detail ">
212
-
213
- <div class="method-heading">
214
- <span class="method-name">editor_uri</span><span
215
- class="method-args">()</span>
216
-
217
- <span class="method-click-advice">click to toggle source</span>
218
-
219
- </div>
220
-
221
-
222
- <div class="method-description">
223
-
224
-
225
-
226
-
227
-
228
-
229
- <div class="method-source-code" id="editor_uri-source">
230
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 47</span>
231
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">editor_uri</span>
232
- <span class="ruby-identifier">default_uri</span> = <span class="ruby-keyword">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/darwin/</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;RUBY_PROF_EDITOR_URI&#39;</span>]
233
- <span class="ruby-string">&#39;txmt&#39;</span>
234
- <span class="ruby-keyword">else</span>
235
- <span class="ruby-keyword">false</span>
236
- <span class="ruby-keyword">end</span>
237
- <span class="ruby-constant">ENV</span>[<span class="ruby-string">&#39;RUBY_PROF_EDITOR_URI&#39;</span>] <span class="ruby-operator">||</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:editor_uri</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">default_uri</span>
238
- <span class="ruby-keyword">end</span></pre>
239
- </div>
240
-
241
- </div>
242
-
243
-
244
-
245
-
246
- </div>
247
-
248
-
249
- <div id="method-i-method_name" class="method-detail ">
250
-
251
- <div class="method-heading">
252
- <span class="method-name">method_name</span><span
253
- class="method-args">(method)</span>
254
-
255
- <span class="method-click-advice">click to toggle source</span>
256
-
257
- </div>
258
-
259
-
260
- <div class="method-description">
261
-
262
-
263
-
264
-
265
-
266
-
267
- <div class="method-source-code" id="method_name-source">
268
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 57</span>
269
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_name</span>(<span class="ruby-identifier">method</span>)
270
- <span class="ruby-identifier">name</span> = <span class="ruby-identifier">method</span>.<span class="ruby-identifier">full_name</span>
271
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">print_file</span>
272
- <span class="ruby-identifier">name</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot; (#{method.source_file}:#{method.line}}&quot;</span>
273
- <span class="ruby-keyword">end</span>
274
- <span class="ruby-identifier">name</span>
275
- <span class="ruby-keyword">end</span></pre>
276
- </div>
277
-
278
- </div>
279
-
280
-
281
-
282
-
283
- </div>
284
-
285
-
286
- <div id="method-i-min_percent" class="method-detail ">
287
-
288
- <div class="method-heading">
289
- <span class="method-name">min_percent</span><span
290
- class="method-args">()</span>
291
-
292
- <span class="method-click-advice">click to toggle source</span>
293
-
294
- </div>
295
-
296
-
297
- <div class="method-description">
298
-
299
-
300
-
301
-
302
-
303
-
304
- <div class="method-source-code" id="min_percent-source">
305
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 35</span>
306
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">min_percent</span>
307
- <span class="ruby-ivar">@options</span>[<span class="ruby-value">:min_percent</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
308
- <span class="ruby-keyword">end</span></pre>
309
- </div>
310
-
311
- </div>
312
-
313
-
314
-
315
-
316
- </div>
317
-
318
-
319
- <div id="method-i-print" class="method-detail ">
320
-
321
- <div class="method-heading">
322
- <span class="method-name">print</span><span
323
- class="method-args">(output = STDOUT, options = {})</span>
324
-
325
- <span class="method-click-advice">click to toggle source</span>
326
-
327
- </div>
328
-
329
-
330
- <div class="method-description">
331
-
332
- <p>Print a profiling report to the provided output.</p>
333
-
334
- <p>output - Any IO object, including STDOUT or a file. The default value is
335
- STDOUT.</p>
336
-
337
- <p>options - Hash of print options. See <a
338
- href="AbstractPrinter.html#method-i-setup_options">setup_options</a> for
339
- more information. Note that each printer can define its own set of
340
- options.</p>
341
-
342
-
343
-
344
-
345
- <div class="method-source-code" id="print-source">
346
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 73</span>
347
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">print</span>(<span class="ruby-identifier">output</span> = <span class="ruby-constant">STDOUT</span>, <span class="ruby-identifier">options</span> = {})
348
- <span class="ruby-ivar">@output</span> = <span class="ruby-identifier">output</span>
349
- <span class="ruby-identifier">setup_options</span>(<span class="ruby-identifier">options</span>)
350
- <span class="ruby-identifier">print_threads</span>
351
- <span class="ruby-keyword">end</span></pre>
352
- </div>
353
-
354
- </div>
355
-
356
-
357
-
358
-
359
- </div>
360
-
361
-
362
- <div id="method-i-print_file" class="method-detail ">
363
-
364
- <div class="method-heading">
365
- <span class="method-name">print_file</span><span
366
- class="method-args">()</span>
367
-
368
- <span class="method-click-advice">click to toggle source</span>
369
-
370
- </div>
371
-
372
-
373
- <div class="method-description">
374
-
375
-
376
-
377
-
378
-
379
-
380
- <div class="method-source-code" id="print_file-source">
381
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 39</span>
382
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_file</span>
383
- <span class="ruby-ivar">@options</span>[<span class="ruby-value">:print_file</span>] <span class="ruby-operator">||</span> <span class="ruby-keyword">false</span>
384
- <span class="ruby-keyword">end</span></pre>
385
- </div>
386
-
387
- </div>
388
-
389
-
390
-
391
-
392
- </div>
393
-
394
-
395
- <div id="method-i-print_footer" class="method-detail ">
396
-
397
- <div class="method-heading">
398
- <span class="method-name">print_footer</span><span
399
- class="method-args">(thread)</span>
400
-
401
- <span class="method-click-advice">click to toggle source</span>
402
-
403
- </div>
404
-
405
-
406
- <div class="method-description">
407
-
408
-
409
-
410
-
411
-
412
-
413
- <div class="method-source-code" id="print_footer-source">
414
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 94</span>
415
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_footer</span>(<span class="ruby-identifier">thread</span>)
416
- <span class="ruby-keyword">end</span></pre>
417
- </div>
418
-
419
- </div>
420
-
421
-
422
-
423
-
424
- </div>
425
-
426
-
427
- <div id="method-i-print_header" class="method-detail ">
428
-
429
- <div class="method-heading">
430
- <span class="method-name">print_header</span><span
431
- class="method-args">(thread)</span>
432
-
433
- <span class="method-click-advice">click to toggle source</span>
434
-
435
- </div>
436
-
437
-
438
- <div class="method-description">
439
-
440
-
441
-
442
-
443
-
444
-
445
- <div class="method-source-code" id="print_header-source">
446
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 91</span>
447
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_header</span>(<span class="ruby-identifier">thread</span>)
448
- <span class="ruby-keyword">end</span></pre>
449
- </div>
450
-
451
- </div>
452
-
453
-
454
-
455
-
456
- </div>
457
-
458
-
459
- <div id="method-i-print_thread" class="method-detail ">
460
-
461
- <div class="method-heading">
462
- <span class="method-name">print_thread</span><span
463
- class="method-args">(thread)</span>
464
-
465
- <span class="method-click-advice">click to toggle source</span>
466
-
467
- </div>
468
-
469
-
470
- <div class="method-description">
471
-
472
-
473
-
474
-
475
-
476
-
477
- <div class="method-source-code" id="print_thread-source">
478
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 85</span>
479
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_thread</span>(<span class="ruby-identifier">thread</span>)
480
- <span class="ruby-identifier">print_header</span>(<span class="ruby-identifier">thread</span>)
481
- <span class="ruby-identifier">print_methods</span>(<span class="ruby-identifier">thread</span>)
482
- <span class="ruby-identifier">print_footer</span>(<span class="ruby-identifier">thread</span>)
483
- <span class="ruby-keyword">end</span></pre>
484
- </div>
485
-
486
- </div>
487
-
488
-
489
-
490
-
491
- </div>
492
-
493
-
494
- <div id="method-i-print_threads" class="method-detail ">
495
-
496
- <div class="method-heading">
497
- <span class="method-name">print_threads</span><span
498
- class="method-args">()</span>
499
-
500
- <span class="method-click-advice">click to toggle source</span>
501
-
502
- </div>
503
-
504
-
505
- <div class="method-description">
506
-
507
-
508
-
509
-
510
-
511
-
512
- <div class="method-source-code" id="print_threads-source">
513
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 79</span>
514
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_threads</span>
515
- <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">threads</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">thread</span><span class="ruby-operator">|</span>
516
- <span class="ruby-identifier">print_thread</span>(<span class="ruby-identifier">thread</span>)
517
- <span class="ruby-keyword">end</span>
518
- <span class="ruby-keyword">end</span></pre>
519
- </div>
520
-
521
- </div>
522
-
523
-
524
-
525
-
526
- </div>
527
-
528
-
529
- <div id="method-i-setup_options" class="method-detail ">
530
-
531
- <div class="method-heading">
532
- <span class="method-name">setup_options</span><span
533
- class="method-args">(options = {})</span>
534
-
535
- <span class="method-click-advice">click to toggle source</span>
536
-
537
- </div>
538
-
539
-
540
- <div class="method-description">
541
-
542
- <p>Specify print options.</p>
543
-
544
- <p>options - Hash table</p>
545
-
546
- <pre>:min_percent - Number 0 to 100 that specifes the minimum
547
- %self (the methods self time divided by the
548
- overall total time) that a method must take
549
- for it to be printed out in the report.
550
- Default value is 0.
551
-
552
- :print_file - True or false. Specifies if a method&#39;s source
553
- file should be printed. Default value if false.
554
-
555
- :sort_method - Specifies method used for sorting method infos.
556
- Available values are :total_time, :self_time,
557
- :wait_time, :children_time
558
- Default value is :total_time
559
- :editor_uri - Specifies editor uri scheme used for opening files
560
- e.g. :atm or :mvim. For OS X default is :txmt.
561
- Use RUBY_PROF_EDITOR_URI environment variable to overide.</pre>
562
-
563
-
564
-
565
-
566
- <div class="method-source-code" id="setup_options-source">
567
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 31</span>
568
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">setup_options</span>(<span class="ruby-identifier">options</span> = {})
569
- <span class="ruby-ivar">@options</span> = <span class="ruby-identifier">options</span>
570
- <span class="ruby-keyword">end</span></pre>
571
- </div>
572
-
573
- </div>
574
-
575
-
576
-
577
-
578
- </div>
579
-
580
-
581
- <div id="method-i-sort_method" class="method-detail ">
582
-
583
- <div class="method-heading">
584
- <span class="method-name">sort_method</span><span
585
- class="method-args">()</span>
586
-
587
- <span class="method-click-advice">click to toggle source</span>
588
-
589
- </div>
590
-
591
-
592
- <div class="method-description">
593
-
594
-
595
-
596
-
597
-
598
-
599
- <div class="method-source-code" id="sort_method-source">
600
- <pre><span class="ruby-comment"># File lib/ruby-prof/printers/abstract_printer.rb, line 43</span>
601
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">sort_method</span>
602
- <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>
603
- <span class="ruby-keyword">end</span></pre>
604
- </div>
605
-
606
- </div>
607
-
608
-
609
-
610
-
611
- </div>
612
-
613
-
614
- </section>
615
-
616
- </section>
617
- </main>
618
-
619
-
620
- <footer id="validator-badges" role="contentinfo">
621
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
622
- <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
623
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
624
- </footer>
625
-