ruby-prof 0.13.1 → 0.14.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 +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,167 +2,101 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class RubyProf::ProfileTask - 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>
|
46
|
+
</div>
|
41
47
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<nav id="file-list-section" class="section">
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
49
|
-
<ul>
|
50
|
-
<li>lib/ruby-prof/task.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
|
-
<
|
60
|
-
<h3
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
61
63
|
|
62
64
|
<p class="link">Rake::TestTask
|
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 class="calls-super" ><a href="#method-c-new">::new</a>
|
74
77
|
|
75
|
-
<li><a href="#method-i-clean_output_directory">#clean_output_directory</a>
|
78
|
+
<li ><a href="#method-i-clean_output_directory">#clean_output_directory</a>
|
76
79
|
|
77
|
-
<li><a href="#method-i-create_output_directory">#create_output_directory</a>
|
80
|
+
<li ><a href="#method-i-create_output_directory">#create_output_directory</a>
|
78
81
|
|
79
|
-
<li><a href="#method-i-define">#define</a>
|
82
|
+
<li ><a href="#method-i-define">#define</a>
|
80
83
|
|
81
|
-
<li><a href="#method-i-output_directory">#output_directory</a>
|
84
|
+
<li ><a href="#method-i-output_directory">#output_directory</a>
|
82
85
|
|
83
|
-
<li><a href="#method-i-run_script">#run_script</a>
|
86
|
+
<li ><a href="#method-i-run_script">#run_script</a>
|
84
87
|
|
85
88
|
</ul>
|
86
|
-
</
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
<div id="project-metadata">
|
91
|
-
<nav id="fileindex-section" class="section project-section">
|
92
|
-
<h3 class="section-header">Pages</h3>
|
93
|
-
|
94
|
-
<ul>
|
95
|
-
|
96
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
97
|
-
|
98
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
99
|
-
|
100
|
-
<li class="file"><a href="../examples/flat_txt.html">flat</a>
|
101
|
-
|
102
|
-
<li class="file"><a href="../examples/graph_txt.html">graph</a>
|
103
|
-
|
104
|
-
</ul>
|
105
|
-
</nav>
|
106
|
-
|
107
|
-
<nav id="classindex-section" class="section project-section">
|
108
|
-
<h3 class="section-header">Class and Module Index</h3>
|
109
|
-
|
110
|
-
<ul class="link-list">
|
111
|
-
|
112
|
-
<li><a href="../RubyProf.html">RubyProf</a>
|
113
|
-
|
114
|
-
<li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
115
|
-
|
116
|
-
<li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
117
|
-
|
118
|
-
<li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
|
119
|
-
|
120
|
-
<li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
|
121
|
-
|
122
|
-
<li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
|
123
|
-
|
124
|
-
<li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
|
125
|
-
|
126
|
-
<li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
127
|
-
|
128
|
-
<li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
|
129
|
-
|
130
|
-
<li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
131
|
-
|
132
|
-
<li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
133
|
-
|
134
|
-
<li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
135
|
-
|
136
|
-
<li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
137
|
-
|
138
|
-
<li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
139
|
-
|
140
|
-
<li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
141
|
-
|
142
|
-
<li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
143
|
-
|
144
|
-
<li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
|
145
|
-
|
146
|
-
<li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
147
|
-
|
148
|
-
<li><a href="../RubyProf/Test.html">RubyProf::Test</a>
|
149
|
-
|
150
|
-
<li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
|
151
|
-
|
152
|
-
<li><a href="../Rack.html">Rack</a>
|
153
|
-
|
154
|
-
<li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
|
155
|
-
|
156
|
-
</ul>
|
157
|
-
</nav>
|
89
|
+
</div>
|
158
90
|
|
159
91
|
</div>
|
160
92
|
</nav>
|
161
93
|
|
162
|
-
<
|
163
|
-
<h1
|
94
|
+
<main role="main" aria-labelledby="class-RubyProf::ProfileTask">
|
95
|
+
<h1 id="class-RubyProf::ProfileTask" class="class">
|
96
|
+
class RubyProf::ProfileTask
|
97
|
+
</h1>
|
164
98
|
|
165
|
-
<
|
99
|
+
<section class="description">
|
166
100
|
|
167
101
|
<p>Define a task library for profiling unit tests with ruby-prof.</p>
|
168
102
|
|
@@ -213,7 +147,7 @@ rake profile TEST=just_one_file.rb # run just one test file.
|
|
213
147
|
rake profile TESTOPTS="-v" # run in verbose mode
|
214
148
|
rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
215
149
|
|
216
|
-
</
|
150
|
+
</section>
|
217
151
|
|
218
152
|
|
219
153
|
|
@@ -226,9 +160,10 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
226
160
|
|
227
161
|
|
228
162
|
|
229
|
-
|
230
|
-
|
231
|
-
|
163
|
+
<section class="attribute-method-details" class="method-section">
|
164
|
+
<header>
|
165
|
+
<h3>Attributes</h3>
|
166
|
+
</header>
|
232
167
|
|
233
168
|
|
234
169
|
<div id="attribute-i-min_percent" class="method-detail">
|
@@ -270,13 +205,14 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
270
205
|
</div>
|
271
206
|
</div>
|
272
207
|
|
273
|
-
</section
|
208
|
+
</section>
|
274
209
|
|
275
210
|
|
276
|
-
<!-- Methods -->
|
277
211
|
|
278
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
279
|
-
|
212
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
213
|
+
<header>
|
214
|
+
<h3>Public Class Methods</h3>
|
215
|
+
</header>
|
280
216
|
|
281
217
|
|
282
218
|
<div id="method-c-new" class="method-detail ">
|
@@ -284,7 +220,9 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
284
220
|
<div class="method-heading">
|
285
221
|
<span class="method-name">new</span><span
|
286
222
|
class="method-args">(name = :profile)</span>
|
223
|
+
|
287
224
|
<span class="method-click-advice">click to toggle source</span>
|
225
|
+
|
288
226
|
</div>
|
289
227
|
|
290
228
|
|
@@ -292,27 +230,35 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
292
230
|
|
293
231
|
|
294
232
|
|
233
|
+
|
234
|
+
<div class="method-calls-super">
|
235
|
+
Calls superclass method
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
295
239
|
|
296
240
|
|
297
241
|
<div class="method-source-code" id="new-source">
|
298
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line
|
242
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 64</span>
|
299
243
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span> = <span class="ruby-value">:profile</span>)
|
300
244
|
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">name</span>)
|
301
245
|
<span class="ruby-keyword">end</span></pre>
|
302
|
-
</div
|
246
|
+
</div>
|
303
247
|
|
304
248
|
</div>
|
305
249
|
|
306
250
|
|
307
251
|
|
308
252
|
|
309
|
-
</div
|
253
|
+
</div>
|
310
254
|
|
311
255
|
|
312
|
-
</section
|
256
|
+
</section>
|
313
257
|
|
314
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section
|
315
|
-
|
258
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
259
|
+
<header>
|
260
|
+
<h3>Public Instance Methods</h3>
|
261
|
+
</header>
|
316
262
|
|
317
263
|
|
318
264
|
<div id="method-i-clean_output_directory" class="method-detail ">
|
@@ -320,7 +266,9 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
320
266
|
<div class="method-heading">
|
321
267
|
<span class="method-name">clean_output_directory</span><span
|
322
268
|
class="method-args">()</span>
|
269
|
+
|
323
270
|
<span class="method-click-advice">click to toggle source</span>
|
271
|
+
|
324
272
|
</div>
|
325
273
|
|
326
274
|
|
@@ -328,24 +276,25 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
328
276
|
|
329
277
|
|
330
278
|
|
279
|
+
|
331
280
|
|
332
281
|
|
333
282
|
<div class="method-source-code" id="clean_output_directory-source">
|
334
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line
|
283
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 135</span>
|
335
284
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">clean_output_directory</span>
|
336
285
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">output_directory</span>)
|
337
286
|
<span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">output_directory</span> <span class="ruby-operator">+</span> <span class="ruby-string">'/*'</span>)
|
338
287
|
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-identifier">files</span>)
|
339
288
|
<span class="ruby-keyword">end</span>
|
340
289
|
<span class="ruby-keyword">end</span></pre>
|
341
|
-
</div
|
290
|
+
</div>
|
342
291
|
|
343
292
|
</div>
|
344
293
|
|
345
294
|
|
346
295
|
|
347
296
|
|
348
|
-
</div
|
297
|
+
</div>
|
349
298
|
|
350
299
|
|
351
300
|
<div id="method-i-create_output_directory" class="method-detail ">
|
@@ -353,7 +302,9 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
353
302
|
<div class="method-heading">
|
354
303
|
<span class="method-name">create_output_directory</span><span
|
355
304
|
class="method-args">()</span>
|
305
|
+
|
356
306
|
<span class="method-click-advice">click to toggle source</span>
|
307
|
+
|
357
308
|
</div>
|
358
309
|
|
359
310
|
|
@@ -361,23 +312,24 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
361
312
|
|
362
313
|
|
363
314
|
|
315
|
+
|
364
316
|
|
365
317
|
|
366
318
|
<div class="method-source-code" id="create_output_directory-source">
|
367
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line
|
319
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 129</span>
|
368
320
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create_output_directory</span>
|
369
321
|
<span class="ruby-keyword">if</span> <span class="ruby-keyword">not</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">output_directory</span>)
|
370
322
|
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">output_directory</span>)
|
371
323
|
<span class="ruby-keyword">end</span>
|
372
324
|
<span class="ruby-keyword">end</span></pre>
|
373
|
-
</div
|
325
|
+
</div>
|
374
326
|
|
375
327
|
</div>
|
376
328
|
|
377
329
|
|
378
330
|
|
379
331
|
|
380
|
-
</div
|
332
|
+
</div>
|
381
333
|
|
382
334
|
|
383
335
|
<div id="method-i-define" class="method-detail ">
|
@@ -385,7 +337,9 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
385
337
|
<div class="method-heading">
|
386
338
|
<span class="method-name">define</span><span
|
387
339
|
class="method-args">()</span>
|
340
|
+
|
388
341
|
<span class="method-click-advice">click to toggle source</span>
|
342
|
+
|
389
343
|
</div>
|
390
344
|
|
391
345
|
|
@@ -393,10 +347,11 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
393
347
|
|
394
348
|
<p>Create the tasks defined by this task lib.</p>
|
395
349
|
|
350
|
+
|
396
351
|
|
397
352
|
|
398
353
|
<div class="method-source-code" id="define-source">
|
399
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line
|
354
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 69</span>
|
400
355
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">define</span>
|
401
356
|
<span class="ruby-identifier">lib_path</span> = <span class="ruby-ivar">@libs</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>)
|
402
357
|
<span class="ruby-identifier">desc</span> <span class="ruby-string">"Profile"</span> <span class="ruby-operator">+</span> (<span class="ruby-ivar">@name</span><span class="ruby-operator">==</span><span class="ruby-value">:profile</span> <span class="ruby-operator">?</span> <span class="ruby-string">""</span> <span class="ruby-operator">:</span> <span class="ruby-node">" for #{@name}"</span>)
|
@@ -416,14 +371,14 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
416
371
|
<span class="ruby-keyword">end</span>
|
417
372
|
<span class="ruby-keyword">self</span>
|
418
373
|
<span class="ruby-keyword">end</span></pre>
|
419
|
-
</div
|
374
|
+
</div>
|
420
375
|
|
421
376
|
</div>
|
422
377
|
|
423
378
|
|
424
379
|
|
425
380
|
|
426
|
-
</div
|
381
|
+
</div>
|
427
382
|
|
428
383
|
|
429
384
|
<div id="method-i-output_directory" class="method-detail ">
|
@@ -431,7 +386,9 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
431
386
|
<div class="method-heading">
|
432
387
|
<span class="method-name">output_directory</span><span
|
433
388
|
class="method-args">()</span>
|
389
|
+
|
434
390
|
<span class="method-click-advice">click to toggle source</span>
|
391
|
+
|
435
392
|
</div>
|
436
393
|
|
437
394
|
|
@@ -439,21 +396,22 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
439
396
|
|
440
397
|
|
441
398
|
|
399
|
+
|
442
400
|
|
443
401
|
|
444
402
|
<div class="method-source-code" id="output_directory-source">
|
445
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line
|
403
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 125</span>
|
446
404
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">output_directory</span>
|
447
405
|
<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-ivar">@output_dir</span>)
|
448
406
|
<span class="ruby-keyword">end</span></pre>
|
449
|
-
</div
|
407
|
+
</div>
|
450
408
|
|
451
409
|
</div>
|
452
410
|
|
453
411
|
|
454
412
|
|
455
413
|
|
456
|
-
</div
|
414
|
+
</div>
|
457
415
|
|
458
416
|
|
459
417
|
<div id="method-i-run_script" class="method-detail ">
|
@@ -461,7 +419,9 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
461
419
|
<div class="method-heading">
|
462
420
|
<span class="method-name">run_script</span><span
|
463
421
|
class="method-args">(script_path)</span>
|
422
|
+
|
464
423
|
<span class="method-click-advice">click to toggle source</span>
|
424
|
+
|
465
425
|
</div>
|
466
426
|
|
467
427
|
|
@@ -469,10 +429,11 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
469
429
|
|
470
430
|
<p>Run script</p>
|
471
431
|
|
432
|
+
|
472
433
|
|
473
434
|
|
474
435
|
<div class="method-source-code" id="run_script-source">
|
475
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line
|
436
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 90</span>
|
476
437
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">run_script</span>(<span class="ruby-identifier">script_path</span>)
|
477
438
|
<span class="ruby-identifier">run_code</span> = <span class="ruby-string">''</span>
|
478
439
|
<span class="ruby-constant">RakeFileUtils</span>.<span class="ruby-identifier">verbose</span>(<span class="ruby-ivar">@verbose</span>) <span class="ruby-keyword">do</span>
|
@@ -507,26 +468,25 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
507
468
|
<span class="ruby-identifier">puts</span> <span class="ruby-string">""</span>
|
508
469
|
<span class="ruby-keyword">end</span>
|
509
470
|
<span class="ruby-keyword">end</span></pre>
|
510
|
-
</div
|
471
|
+
</div>
|
511
472
|
|
512
473
|
</div>
|
513
474
|
|
514
475
|
|
515
476
|
|
516
477
|
|
517
|
-
</div
|
478
|
+
</div>
|
518
479
|
|
519
480
|
|
520
|
-
</section
|
481
|
+
</section>
|
521
482
|
|
522
|
-
</section
|
523
|
-
|
524
|
-
</div><!-- documentation -->
|
483
|
+
</section>
|
484
|
+
</main>
|
525
485
|
|
526
486
|
|
527
|
-
<footer id="validator-badges">
|
528
|
-
<p><a href="http://validator.w3.org/check/referer">
|
529
|
-
<p>Generated by <a href="
|
530
|
-
<p>
|
487
|
+
<footer id="validator-badges" role="contentinfo">
|
488
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
489
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
490
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
531
491
|
</footer>
|
532
492
|
|