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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +14 -0
  3. data/README.rdoc +1 -1
  4. data/Rakefile +2 -3
  5. data/bin/ruby-prof +4 -4
  6. data/bin/ruby-prof-check-trace +45 -0
  7. data/doc/LICENSE.html +49 -88
  8. data/doc/README_rdoc.html +92 -106
  9. data/doc/Rack.html +47 -116
  10. data/doc/Rack/RubyProf.html +119 -174
  11. data/doc/RubyProf.html +184 -216
  12. data/doc/RubyProf/AbstractPrinter.html +131 -162
  13. data/doc/RubyProf/AggregateCallInfo.html +136 -166
  14. data/doc/RubyProf/CallInfo.html +113 -154
  15. data/doc/RubyProf/CallInfoPrinter.html +56 -123
  16. data/doc/RubyProf/CallInfoVisitor.html +87 -216
  17. data/doc/RubyProf/CallStackPrinter.html +222 -215
  18. data/doc/RubyProf/CallTreePrinter.html +91 -142
  19. data/doc/RubyProf/Cmd.html +115 -157
  20. data/doc/RubyProf/DotPrinter.html +88 -140
  21. data/doc/RubyProf/FlatPrinter.html +66 -129
  22. data/doc/RubyProf/FlatPrinterWithLineNumbers.html +69 -132
  23. data/doc/RubyProf/GraphHtmlPrinter.html +115 -166
  24. data/doc/RubyProf/GraphPrinter.html +58 -125
  25. data/doc/RubyProf/MethodInfo.html +147 -172
  26. data/doc/RubyProf/MultiPrinter.html +104 -150
  27. data/doc/RubyProf/Profile.html +125 -179
  28. data/doc/RubyProf/ProfileTask.html +117 -157
  29. data/doc/RubyProf/Test.html +115 -154
  30. data/doc/RubyProf/Thread.html +87 -147
  31. data/doc/created.rid +13 -14
  32. data/doc/examples/flat_txt.html +51 -90
  33. data/doc/examples/graph_html.html +852 -0
  34. data/doc/examples/graph_txt.html +64 -92
  35. data/doc/fonts.css +167 -0
  36. data/doc/fonts/Lato-Light.ttf +0 -0
  37. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  38. data/doc/fonts/Lato-Regular.ttf +0 -0
  39. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  40. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  41. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  42. data/doc/images/add.png +0 -0
  43. data/doc/images/arrow_up.png +0 -0
  44. data/doc/images/delete.png +0 -0
  45. data/doc/images/tag_blue.png +0 -0
  46. data/doc/index.html +75 -65
  47. data/doc/js/darkfish.js +0 -15
  48. data/doc/js/search.js +20 -5
  49. data/doc/js/search_index.js +1 -1
  50. data/doc/rdoc.css +255 -218
  51. data/doc/table_of_contents.html +751 -353
  52. data/ext/ruby_prof/extconf.rb +20 -22
  53. data/ext/ruby_prof/rp_measure_allocations.c +9 -5
  54. data/ext/ruby_prof/rp_measure_gc_runs.c +8 -0
  55. data/ext/ruby_prof/rp_measure_gc_time.c +5 -2
  56. data/ext/ruby_prof/rp_measure_wall_time.c +1 -0
  57. data/ext/ruby_prof/rp_method.c +0 -9
  58. data/ext/ruby_prof/rp_method.h +1 -6
  59. data/ext/ruby_prof/ruby_prof.c +32 -112
  60. data/ext/ruby_prof/ruby_prof.h +9 -10
  61. data/lib/ruby-prof.rb +2 -1
  62. data/lib/ruby-prof/aggregate_call_info.rb +4 -6
  63. data/lib/ruby-prof/call_info_visitor.rb +42 -44
  64. data/lib/ruby-prof/printers/graph_html_printer.rb +0 -8
  65. data/lib/ruby-prof/profile.rb +4 -4
  66. data/lib/ruby-prof/rack.rb +47 -47
  67. data/lib/ruby-prof/task.rb +0 -0
  68. data/lib/ruby-prof/thread.rb +22 -22
  69. data/lib/ruby-prof/version.rb +3 -0
  70. data/ruby-prof.gemspec +7 -11
  71. data/test/call_info_test.rb +78 -78
  72. data/test/call_info_visitor_test.rb +31 -31
  73. data/test/fiber_test.rb +2 -2
  74. data/test/measure_gc_runs_test.rb +1 -1
  75. data/test/measure_process_time_test.rb +7 -6
  76. data/test/printers_test.rb +4 -8
  77. data/test/recursive_test.rb +5 -9
  78. data/test/test_helper.rb +1 -1
  79. data/test/unique_call_path_test.rb +7 -29
  80. data/test/yarv_test.rb +55 -0
  81. metadata +63 -55
  82. data/ext/ruby_prof/version.h +0 -7
  83. data/lib/ruby-prof/test.rb +0 -150
  84. data/test/exec_test.rb +0 -14
  85. data/test/test_suite.rb +0 -37
@@ -2,170 +2,104 @@
2
2
 
3
3
  <html>
4
4
  <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
5
+ <meta charset="UTF-8">
6
6
 
7
7
  <title>class RubyProf::CallTreePrinter - ruby-prof</title>
8
8
 
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
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 type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></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 id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
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
- </h3>
31
- </nav>
32
-
36
+ </div>
37
+ </div>
33
38
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
35
40
  <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
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
- </h3>
40
- </form>
46
+ </div>
41
47
 
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/ruby-prof/printers/call_tree_printer.rb
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
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
60
+ <div id="parent-class-section" class="nav-section">
61
+ <h3>Parent</h3>
62
+
61
63
 
62
64
  <p class="link"><a href="AbstractPrinter.html">RubyProf::AbstractPrinter</a>
63
65
 
64
- </nav>
66
+ </div>
65
67
 
66
68
 
69
+
67
70
  <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</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-i-convert">#convert</a>
76
+ <li ><a href="#method-i-convert">#convert</a>
74
77
 
75
- <li><a href="#method-i-file">#file</a>
78
+ <li ><a href="#method-i-file">#file</a>
76
79
 
77
- <li><a href="#method-i-print">#print</a>
80
+ <li ><a href="#method-i-print">#print</a>
78
81
 
79
- <li><a href="#method-i-print_thread">#print_thread</a>
82
+ <li ><a href="#method-i-print_thread">#print_thread</a>
80
83
 
81
- <li><a href="#method-i-print_threads">#print_threads</a>
84
+ <li ><a href="#method-i-print_threads">#print_threads</a>
82
85
 
83
86
  </ul>
84
- </nav>
85
-
86
- </div>
87
-
88
- <div id="project-metadata">
89
- <nav id="fileindex-section" class="section project-section">
90
- <h3 class="section-header">Pages</h3>
91
-
92
- <ul>
93
-
94
- <li class="file"><a href="../LICENSE.html">LICENSE</a>
95
-
96
- <li class="file"><a href="../README_rdoc.html">README</a>
97
-
98
- <li class="file"><a href="../examples/flat_txt.html">flat</a>
99
-
100
- <li class="file"><a href="../examples/graph_txt.html">graph</a>
101
-
102
- </ul>
103
- </nav>
104
-
105
- <nav id="classindex-section" class="section project-section">
106
- <h3 class="section-header">Class and Module Index</h3>
107
-
108
- <ul class="link-list">
109
-
110
- <li><a href="../RubyProf.html">RubyProf</a>
111
-
112
- <li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
113
-
114
- <li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
115
-
116
- <li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
117
-
118
- <li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
119
-
120
- <li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
121
-
122
- <li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
123
-
124
- <li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
125
-
126
- <li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
127
-
128
- <li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
129
-
130
- <li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
131
-
132
- <li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
133
-
134
- <li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
135
-
136
- <li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
137
-
138
- <li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
139
-
140
- <li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
141
-
142
- <li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
143
-
144
- <li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
145
-
146
- <li><a href="../RubyProf/Test.html">RubyProf::Test</a>
147
-
148
- <li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
149
-
150
- <li><a href="../Rack.html">Rack</a>
151
-
152
- <li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
153
-
154
- </ul>
155
- </nav>
87
+ </div>
156
88
 
157
89
  </div>
158
90
  </nav>
159
91
 
160
- <div id="documentation">
161
- <h1 class="class">class RubyProf::CallTreePrinter</h1>
92
+ <main role="main" aria-labelledby="class-RubyProf::CallTreePrinter">
93
+ <h1 id="class-RubyProf::CallTreePrinter" class="class">
94
+ class RubyProf::CallTreePrinter
95
+ </h1>
162
96
 
163
- <div id="description" class="description">
97
+ <section class="description">
164
98
 
165
99
  <p>Generate profiling information in calltree format for use by kcachegrind
166
100
  and similar tools.</p>
167
101
 
168
- </div><!-- description -->
102
+ </section>
169
103
 
170
104
 
171
105
 
@@ -179,10 +113,11 @@ and similar tools.</p>
179
113
 
180
114
 
181
115
 
182
- <!-- Methods -->
183
116
 
184
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
185
- <h3 class="section-header">Public Instance Methods</h3>
117
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
118
+ <header>
119
+ <h3>Public Instance Methods</h3>
120
+ </header>
186
121
 
187
122
 
188
123
  <div id="method-i-convert" class="method-detail ">
@@ -190,7 +125,9 @@ and similar tools.</p>
190
125
  <div class="method-heading">
191
126
  <span class="method-name">convert</span><span
192
127
  class="method-args">(value)</span>
128
+
193
129
  <span class="method-click-advice">click to toggle source</span>
130
+
194
131
  </div>
195
132
 
196
133
 
@@ -198,21 +135,22 @@ and similar tools.</p>
198
135
 
199
136
 
200
137
 
138
+
201
139
 
202
140
 
203
141
  <div class="method-source-code" id="convert-source">
204
142
  <pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_tree_printer.rb, line 61</span>
205
143
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">value</span>)
206
- (<span class="ruby-identifier">value</span> * <span class="ruby-ivar">@value_scale</span>).<span class="ruby-identifier">round</span>
144
+ (<span class="ruby-identifier">value</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@value_scale</span>).<span class="ruby-identifier">round</span>
207
145
  <span class="ruby-keyword">end</span></pre>
208
- </div><!-- convert-source -->
146
+ </div>
209
147
 
210
148
  </div>
211
149
 
212
150
 
213
151
 
214
152
 
215
- </div><!-- convert-method -->
153
+ </div>
216
154
 
217
155
 
218
156
  <div id="method-i-file" class="method-detail ">
@@ -220,7 +158,9 @@ and similar tools.</p>
220
158
  <div class="method-heading">
221
159
  <span class="method-name">file</span><span
222
160
  class="method-args">(method)</span>
161
+
223
162
  <span class="method-click-advice">click to toggle source</span>
163
+
224
164
  </div>
225
165
 
226
166
 
@@ -228,6 +168,7 @@ and similar tools.</p>
228
168
 
229
169
 
230
170
 
171
+
231
172
 
232
173
 
233
174
  <div class="method-source-code" id="file-source">
@@ -235,14 +176,14 @@ and similar tools.</p>
235
176
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">method</span>)
236
177
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">method</span>.<span class="ruby-identifier">source_file</span>)
237
178
  <span class="ruby-keyword">end</span></pre>
238
- </div><!-- file-source -->
179
+ </div>
239
180
 
240
181
  </div>
241
182
 
242
183
 
243
184
 
244
185
 
245
- </div><!-- file-method -->
186
+ </div>
246
187
 
247
188
 
248
189
  <div id="method-i-print" class="method-detail ">
@@ -250,7 +191,9 @@ and similar tools.</p>
250
191
  <div class="method-heading">
251
192
  <span class="method-name">print</span><span
252
193
  class="method-args">(output = STDOUT, options = {})</span>
194
+
253
195
  <span class="method-click-advice">click to toggle source</span>
196
+
254
197
  </div>
255
198
 
256
199
 
@@ -269,6 +212,7 @@ and similar tools.</p>
269
212
  :print_file - True or false. Specifies if a method&#39;s source
270
213
  file should be printed. Default value if false.</pre>
271
214
 
215
+
272
216
 
273
217
 
274
218
  <div class="method-source-code" id="print-source">
@@ -308,14 +252,14 @@ and similar tools.</p>
308
252
 
309
253
  <span class="ruby-identifier">print_threads</span>
310
254
  <span class="ruby-keyword">end</span></pre>
311
- </div><!-- print-source -->
255
+ </div>
312
256
 
313
257
  </div>
314
258
 
315
259
 
316
260
 
317
261
 
318
- </div><!-- print-method -->
262
+ </div>
319
263
 
320
264
 
321
265
  <div id="method-i-print_thread" class="method-detail ">
@@ -323,7 +267,9 @@ and similar tools.</p>
323
267
  <div class="method-heading">
324
268
  <span class="method-name">print_thread</span><span
325
269
  class="method-args">(thread)</span>
270
+
326
271
  <span class="method-click-advice">click to toggle source</span>
272
+
327
273
  </div>
328
274
 
329
275
 
@@ -331,6 +277,7 @@ and similar tools.</p>
331
277
 
332
278
 
333
279
 
280
+
334
281
 
335
282
 
336
283
  <div class="method-source-code" id="print_thread-source">
@@ -356,14 +303,14 @@ and similar tools.</p>
356
303
  <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;\n&quot;</span>
357
304
  <span class="ruby-keyword">end</span>
358
305
  <span class="ruby-keyword">end</span></pre>
359
- </div><!-- print_thread-source -->
306
+ </div>
360
307
 
361
308
  </div>
362
309
 
363
310
 
364
311
 
365
312
 
366
- </div><!-- print_thread-method -->
313
+ </div>
367
314
 
368
315
 
369
316
  <div id="method-i-print_threads" class="method-detail ">
@@ -371,7 +318,9 @@ and similar tools.</p>
371
318
  <div class="method-heading">
372
319
  <span class="method-name">print_threads</span><span
373
320
  class="method-args">()</span>
321
+
374
322
  <span class="method-click-advice">click to toggle source</span>
323
+
375
324
  </div>
376
325
 
377
326
 
@@ -379,6 +328,7 @@ and similar tools.</p>
379
328
 
380
329
 
381
330
 
331
+
382
332
 
383
333
 
384
334
  <div class="method-source-code" id="print_threads-source">
@@ -388,26 +338,25 @@ and similar tools.</p>
388
338
  <span class="ruby-identifier">print_thread</span>(<span class="ruby-identifier">thread</span>)
389
339
  <span class="ruby-keyword">end</span>
390
340
  <span class="ruby-keyword">end</span></pre>
391
- </div><!-- print_threads-source -->
341
+ </div>
392
342
 
393
343
  </div>
394
344
 
395
345
 
396
346
 
397
347
 
398
- </div><!-- print_threads-method -->
348
+ </div>
399
349
 
400
350
 
401
- </section><!-- public-instance-method-details -->
351
+ </section>
402
352
 
403
- </section><!-- 5Buntitled-5D -->
404
-
405
- </div><!-- documentation -->
353
+ </section>
354
+ </main>
406
355
 
407
356
 
408
- <footer id="validator-badges">
409
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
410
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
411
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
357
+ <footer id="validator-badges" role="contentinfo">
358
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
359
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
360
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
412
361
  </footer>
413
362
 
@@ -2,171 +2,105 @@
2
2
 
3
3
  <html>
4
4
  <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
5
+ <meta charset="UTF-8">
6
6
 
7
7
  <title>class RubyProf::Cmd - ruby-prof</title>
8
8
 
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
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 type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></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 id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
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
- </h3>
31
- </nav>
32
-
36
+ </div>
37
+ </div>
33
38
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
35
40
  <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
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
- </h3>
40
- </form>
46
+ </div>
41
47
 
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>bin/ruby-prof
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
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</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
- </nav>
66
+ </div>
65
67
 
66
68
 
69
+
67
70
  <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</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-load_pre_execs">#load_pre_execs</a>
78
+ <li ><a href="#method-i-load_pre_execs">#load_pre_execs</a>
76
79
 
77
- <li><a href="#method-i-load_pre_libs">#load_pre_libs</a>
80
+ <li ><a href="#method-i-load_pre_libs">#load_pre_libs</a>
78
81
 
79
- <li><a href="#method-i-option_parser">#option_parser</a>
82
+ <li ><a href="#method-i-option_parser">#option_parser</a>
80
83
 
81
- <li><a href="#method-i-parse_args">#parse_args</a>
84
+ <li ><a href="#method-i-parse_args">#parse_args</a>
82
85
 
83
- <li><a href="#method-i-run">#run</a>
86
+ <li ><a href="#method-i-run">#run</a>
84
87
 
85
- <li><a href="#method-i-setup_options">#setup_options</a>
88
+ <li ><a href="#method-i-setup_options">#setup_options</a>
86
89
 
87
90
  </ul>
88
- </nav>
91
+ </div>
89
92
 
90
93
  </div>
91
-
92
- <div id="project-metadata">
93
- <nav id="fileindex-section" class="section project-section">
94
- <h3 class="section-header">Pages</h3>
95
-
96
- <ul>
97
-
98
- <li class="file"><a href="../LICENSE.html">LICENSE</a>
99
-
100
- <li class="file"><a href="../README_rdoc.html">README</a>
101
-
102
- <li class="file"><a href="../examples/flat_txt.html">flat</a>
103
-
104
- <li class="file"><a href="../examples/graph_txt.html">graph</a>
105
-
106
- </ul>
107
94
  </nav>
108
95
 
109
- <nav id="classindex-section" class="section project-section">
110
- <h3 class="section-header">Class and Module Index</h3>
96
+ <main role="main" aria-labelledby="class-RubyProf::Cmd">
97
+ <h1 id="class-RubyProf::Cmd" class="class">
98
+ class RubyProf::Cmd
99
+ </h1>
111
100
 
112
- <ul class="link-list">
113
-
114
- <li><a href="../RubyProf.html">RubyProf</a>
115
-
116
- <li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
117
-
118
- <li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
119
-
120
- <li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
121
-
122
- <li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
123
-
124
- <li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
125
-
126
- <li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
127
-
128
- <li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
129
-
130
- <li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
131
-
132
- <li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
133
-
134
- <li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
135
-
136
- <li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
137
-
138
- <li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
139
-
140
- <li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
141
-
142
- <li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
143
-
144
- <li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
145
-
146
- <li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
147
-
148
- <li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
149
-
150
- <li><a href="../RubyProf/Test.html">RubyProf::Test</a>
151
-
152
- <li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
153
-
154
- <li><a href="../Rack.html">Rack</a>
155
-
156
- <li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
157
-
158
- </ul>
159
- </nav>
160
-
161
- </div>
162
- </nav>
163
-
164
- <div id="documentation">
165
- <h1 class="class">class RubyProf::Cmd</h1>
166
-
167
- <div id="description" class="description">
101
+ <section class="description">
168
102
 
169
- </div><!-- description -->
103
+ </section>
170
104
 
171
105
 
172
106
 
@@ -179,9 +113,10 @@
179
113
 
180
114
 
181
115
 
182
- <!-- Attributes -->
183
- <section id="attribute-method-details" class="method-section section">
184
- <h3 class="section-header">Attributes</h3>
116
+ <section class="attribute-method-details" class="method-section">
117
+ <header>
118
+ <h3>Attributes</h3>
119
+ </header>
185
120
 
186
121
 
187
122
  <div id="attribute-i-options" class="method-detail">
@@ -197,13 +132,14 @@
197
132
  </div>
198
133
  </div>
199
134
 
200
- </section><!-- attribute-method-details -->
135
+ </section>
201
136
 
202
137
 
203
- <!-- Methods -->
204
138
 
205
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
206
- <h3 class="section-header">Public Class Methods</h3>
139
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
140
+ <header>
141
+ <h3>Public Class Methods</h3>
142
+ </header>
207
143
 
208
144
 
209
145
  <div id="method-c-new" class="method-detail ">
@@ -211,7 +147,9 @@
211
147
  <div class="method-heading">
212
148
  <span class="method-name">new</span><span
213
149
  class="method-args">()</span>
150
+
214
151
  <span class="method-click-advice">click to toggle source</span>
152
+
215
153
  </div>
216
154
 
217
155
 
@@ -219,6 +157,7 @@
219
157
 
220
158
 
221
159
 
160
+
222
161
 
223
162
 
224
163
  <div class="method-source-code" id="new-source">
@@ -230,20 +169,22 @@
230
169
  <span class="ruby-identifier">load_pre_libs</span>
231
170
  <span class="ruby-identifier">load_pre_execs</span>
232
171
  <span class="ruby-keyword">end</span></pre>
233
- </div><!-- new-source -->
172
+ </div>
234
173
 
235
174
  </div>
236
175
 
237
176
 
238
177
 
239
178
 
240
- </div><!-- new-method -->
179
+ </div>
241
180
 
242
181
 
243
- </section><!-- public-class-method-details -->
182
+ </section>
244
183
 
245
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
246
- <h3 class="section-header">Public Instance Methods</h3>
184
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
185
+ <header>
186
+ <h3>Public Instance Methods</h3>
187
+ </header>
247
188
 
248
189
 
249
190
  <div id="method-i-load_pre_execs" class="method-detail ">
@@ -251,7 +192,9 @@
251
192
  <div class="method-heading">
252
193
  <span class="method-name">load_pre_execs</span><span
253
194
  class="method-args">()</span>
195
+
254
196
  <span class="method-click-advice">click to toggle source</span>
197
+
255
198
  </div>
256
199
 
257
200
 
@@ -259,6 +202,7 @@
259
202
 
260
203
 
261
204
 
205
+
262
206
 
263
207
 
264
208
  <div class="method-source-code" id="load_pre_execs-source">
@@ -268,14 +212,14 @@
268
212
  <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">exec</span>)
269
213
  <span class="ruby-keyword">end</span>
270
214
  <span class="ruby-keyword">end</span></pre>
271
- </div><!-- load_pre_execs-source -->
215
+ </div>
272
216
 
273
217
  </div>
274
218
 
275
219
 
276
220
 
277
221
 
278
- </div><!-- load_pre_execs-method -->
222
+ </div>
279
223
 
280
224
 
281
225
  <div id="method-i-load_pre_libs" class="method-detail ">
@@ -283,7 +227,9 @@
283
227
  <div class="method-heading">
284
228
  <span class="method-name">load_pre_libs</span><span
285
229
  class="method-args">()</span>
230
+
286
231
  <span class="method-click-advice">click to toggle source</span>
232
+
287
233
  </div>
288
234
 
289
235
 
@@ -291,6 +237,7 @@
291
237
 
292
238
 
293
239
 
240
+
294
241
 
295
242
 
296
243
  <div class="method-source-code" id="load_pre_libs-source">
@@ -300,14 +247,14 @@
300
247
  <span class="ruby-identifier">require</span> <span class="ruby-identifier">lib</span>
301
248
  <span class="ruby-keyword">end</span>
302
249
  <span class="ruby-keyword">end</span></pre>
303
- </div><!-- load_pre_libs-source -->
250
+ </div>
304
251
 
305
252
  </div>
306
253
 
307
254
 
308
255
 
309
256
 
310
- </div><!-- load_pre_libs-method -->
257
+ </div>
311
258
 
312
259
 
313
260
  <div id="method-i-option_parser" class="method-detail ">
@@ -315,7 +262,9 @@
315
262
  <div class="method-heading">
316
263
  <span class="method-name">option_parser</span><span
317
264
  class="method-args">()</span>
265
+
318
266
  <span class="method-click-advice">click to toggle source</span>
267
+
319
268
  </div>
320
269
 
321
270
 
@@ -323,6 +272,7 @@
323
272
 
324
273
 
325
274
 
275
+
326
276
 
327
277
 
328
278
  <div class="method-source-code" id="option_parser-source">
@@ -430,7 +380,7 @@
430
380
  <span class="ruby-identifier">options</span>.<span class="ruby-identifier">replace_prog_name</span> = <span class="ruby-keyword">true</span>
431
381
  <span class="ruby-keyword">end</span>
432
382
 
433
- <span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">VM</span>)
383
+ <span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">RubyVM</span>)
434
384
  <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">&quot;--specialized-instruction&quot;</span>, <span class="ruby-string">&quot;Turn on specified instruction.&quot;</span>) <span class="ruby-keyword">do</span>
435
385
  <span class="ruby-identifier">options</span>.<span class="ruby-identifier">specialized_instruction</span> = <span class="ruby-keyword">true</span>
436
386
  <span class="ruby-keyword">end</span>
@@ -517,14 +467,14 @@
517
467
  <span class="ruby-keyword">end</span>
518
468
  <span class="ruby-keyword">end</span>
519
469
  <span class="ruby-keyword">end</span></pre>
520
- </div><!-- option_parser-source -->
470
+ </div>
521
471
 
522
472
  </div>
523
473
 
524
474
 
525
475
 
526
476
 
527
- </div><!-- option_parser-method -->
477
+ </div>
528
478
 
529
479
 
530
480
  <div id="method-i-parse_args" class="method-detail ">
@@ -532,7 +482,9 @@
532
482
  <div class="method-heading">
533
483
  <span class="method-name">parse_args</span><span
534
484
  class="method-args">()</span>
485
+
535
486
  <span class="method-click-advice">click to toggle source</span>
487
+
536
488
  </div>
537
489
 
538
490
 
@@ -540,6 +492,7 @@
540
492
 
541
493
 
542
494
 
495
+
543
496
 
544
497
 
545
498
  <div class="method-source-code" id="parse_args-source">
@@ -559,14 +512,14 @@
559
512
  <span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>
560
513
  <span class="ruby-identifier">exit</span>(<span class="ruby-value">-1</span>)
561
514
  <span class="ruby-keyword">end</span></pre>
562
- </div><!-- parse_args-source -->
515
+ </div>
563
516
 
564
517
  </div>
565
518
 
566
519
 
567
520
 
568
521
 
569
- </div><!-- parse_args-method -->
522
+ </div>
570
523
 
571
524
 
572
525
  <div id="method-i-run" class="method-detail ">
@@ -574,7 +527,9 @@
574
527
  <div class="method-heading">
575
528
  <span class="method-name">run</span><span
576
529
  class="method-args">()</span>
530
+
577
531
  <span class="method-click-advice">click to toggle source</span>
532
+
578
533
  </div>
579
534
 
580
535
 
@@ -582,6 +537,7 @@
582
537
 
583
538
 
584
539
 
540
+
585
541
 
586
542
 
587
543
  <div class="method-source-code" id="run-source">
@@ -594,8 +550,8 @@
594
550
  <span class="ruby-keyword">end</span>
595
551
 
596
552
  <span class="ruby-comment"># Set VM compile option</span>
597
- <span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">VM</span>)
598
- <span class="ruby-constant">VM</span><span class="ruby-operator">::</span><span class="ruby-constant">InstructionSequence</span>.<span class="ruby-identifier">compile_option</span> = {
553
+ <span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">RubyVM</span>)
554
+ <span class="ruby-constant">RubyVM</span><span class="ruby-operator">::</span><span class="ruby-constant">InstructionSequence</span>.<span class="ruby-identifier">compile_option</span> = {
599
555
  <span class="ruby-value">:trace_instruction</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>,
600
556
  <span class="ruby-value">:specialized_instruction</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">specialized_instruction</span>
601
557
  }
@@ -605,14 +561,14 @@
605
561
  <span class="ruby-constant">RubyProf</span>.<span class="ruby-identifier">measure_mode</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">measure_mode</span>
606
562
  <span class="ruby-constant">RubyProf</span>.<span class="ruby-identifier">start_script</span>(<span class="ruby-identifier">script</span>)
607
563
  <span class="ruby-keyword">end</span></pre>
608
- </div><!-- run-source -->
564
+ </div>
609
565
 
610
566
  </div>
611
567
 
612
568
 
613
569
 
614
570
 
615
- </div><!-- run-method -->
571
+ </div>
616
572
 
617
573
 
618
574
  <div id="method-i-setup_options" class="method-detail ">
@@ -620,7 +576,9 @@
620
576
  <div class="method-heading">
621
577
  <span class="method-name">setup_options</span><span
622
578
  class="method-args">()</span>
579
+
623
580
  <span class="method-click-advice">click to toggle source</span>
581
+
624
582
  </div>
625
583
 
626
584
 
@@ -628,6 +586,7 @@
628
586
 
629
587
 
630
588
 
589
+
631
590
 
632
591
 
633
592
  <div class="method-source-code" id="setup_options-source">
@@ -644,26 +603,25 @@
644
603
  <span class="ruby-identifier">options</span>.<span class="ruby-identifier">pre_libs</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
645
604
  <span class="ruby-identifier">options</span>.<span class="ruby-identifier">pre_execs</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
646
605
  <span class="ruby-keyword">end</span></pre>
647
- </div><!-- setup_options-source -->
606
+ </div>
648
607
 
649
608
  </div>
650
609
 
651
610
 
652
611
 
653
612
 
654
- </div><!-- setup_options-method -->
613
+ </div>
655
614
 
656
615
 
657
- </section><!-- public-instance-method-details -->
616
+ </section>
658
617
 
659
- </section><!-- 5Buntitled-5D -->
660
-
661
- </div><!-- documentation -->
618
+ </section>
619
+ </main>
662
620
 
663
621
 
664
- <footer id="validator-badges">
665
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
666
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
667
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
622
+ <footer id="validator-badges" role="contentinfo">
623
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
624
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
625
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
668
626
  </footer>
669
627