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
data/doc/RubyProf.html
CHANGED
@@ -2,212 +2,124 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>module RubyProf - 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="module">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
24
|
+
<body id="top" role="document" class="module">
|
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>
|
46
|
+
</div>
|
44
47
|
|
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>
|
45
53
|
|
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
|
-
<li>lib/ruby-prof.rb
|
52
|
-
<li>lib/ruby-prof/aggregate_call_info.rb
|
53
|
-
<li>lib/ruby-prof/call_info.rb
|
54
|
-
<li>lib/ruby-prof/call_info_visitor.rb
|
55
|
-
<li>lib/ruby-prof/compatibility.rb
|
56
|
-
<li>lib/ruby-prof/method_info.rb
|
57
|
-
<li>lib/ruby-prof/printers/abstract_printer.rb
|
58
|
-
<li>lib/ruby-prof/printers/call_info_printer.rb
|
59
|
-
<li>lib/ruby-prof/printers/call_stack_printer.rb
|
60
|
-
<li>lib/ruby-prof/printers/call_tree_printer.rb
|
61
|
-
<li>lib/ruby-prof/printers/dot_printer.rb
|
62
|
-
<li>lib/ruby-prof/printers/flat_printer.rb
|
63
|
-
<li>lib/ruby-prof/printers/flat_printer_with_line_numbers.rb
|
64
|
-
<li>lib/ruby-prof/printers/graph_html_printer.rb
|
65
|
-
<li>lib/ruby-prof/printers/graph_printer.rb
|
66
|
-
<li>lib/ruby-prof/printers/multi_printer.rb
|
67
|
-
<li>lib/ruby-prof/profile.rb
|
68
|
-
<li>lib/ruby-prof/task.rb
|
69
|
-
<li>lib/ruby-prof/test.rb
|
70
|
-
<li>lib/ruby-prof/thread.rb
|
71
|
-
<li>ext/ruby_prof/ruby_prof.c
|
72
|
-
</ul>
|
73
|
-
</nav>
|
74
|
-
|
75
|
-
|
76
54
|
</div>
|
77
55
|
|
56
|
+
|
57
|
+
|
78
58
|
<div id="class-metadata">
|
79
59
|
|
80
60
|
|
81
61
|
|
62
|
+
|
82
63
|
<!-- Method Quickref -->
|
83
|
-
<
|
84
|
-
<h3
|
64
|
+
<div id="method-list-section" class="nav-section">
|
65
|
+
<h3>Methods</h3>
|
85
66
|
|
86
|
-
<ul class="link-list">
|
67
|
+
<ul class="link-list" role="directory">
|
87
68
|
|
88
|
-
<li><a href="#method-c-cpu_frequency">::cpu_frequency</a>
|
69
|
+
<li ><a href="#method-c-cpu_frequency">::cpu_frequency</a>
|
89
70
|
|
90
|
-
<li><a href="#method-c-cpu_frequency-3D">::cpu_frequency=</a>
|
71
|
+
<li ><a href="#method-c-cpu_frequency-3D">::cpu_frequency=</a>
|
91
72
|
|
92
|
-
<li><a href="#method-c-exclude_threads">::exclude_threads</a>
|
73
|
+
<li ><a href="#method-c-exclude_threads">::exclude_threads</a>
|
93
74
|
|
94
|
-
<li><a href="#method-c-exclude_threads-3D">::exclude_threads=</a>
|
75
|
+
<li ><a href="#method-c-exclude_threads-3D">::exclude_threads=</a>
|
95
76
|
|
96
|
-
<li><a href="#method-c-figure_measure_mode">::figure_measure_mode</a>
|
77
|
+
<li ><a href="#method-c-figure_measure_mode">::figure_measure_mode</a>
|
97
78
|
|
98
|
-
<li><a href="#method-c-measure_allocations">::measure_allocations</a>
|
79
|
+
<li ><a href="#method-c-measure_allocations">::measure_allocations</a>
|
99
80
|
|
100
|
-
<li><a href="#method-c-measure_cpu_time">::measure_cpu_time</a>
|
81
|
+
<li ><a href="#method-c-measure_cpu_time">::measure_cpu_time</a>
|
101
82
|
|
102
|
-
<li><a href="#method-c-measure_gc_runs">::measure_gc_runs</a>
|
83
|
+
<li ><a href="#method-c-measure_gc_runs">::measure_gc_runs</a>
|
103
84
|
|
104
|
-
<li><a href="#method-c-measure_gc_time">::measure_gc_time</a>
|
85
|
+
<li ><a href="#method-c-measure_gc_time">::measure_gc_time</a>
|
105
86
|
|
106
|
-
<li><a href="#method-c-measure_memory">::measure_memory</a>
|
87
|
+
<li ><a href="#method-c-measure_memory">::measure_memory</a>
|
107
88
|
|
108
|
-
<li><a href="#method-c-measure_mode">::measure_mode</a>
|
89
|
+
<li ><a href="#method-c-measure_mode">::measure_mode</a>
|
109
90
|
|
110
|
-
<li><a href="#method-c-measure_mode-3D">::measure_mode=</a>
|
91
|
+
<li ><a href="#method-c-measure_mode-3D">::measure_mode=</a>
|
111
92
|
|
112
|
-
<li><a href="#method-c-measure_process_time">::measure_process_time</a>
|
93
|
+
<li ><a href="#method-c-measure_process_time">::measure_process_time</a>
|
113
94
|
|
114
|
-
<li><a href="#method-c-measure_wall_time">::measure_wall_time</a>
|
95
|
+
<li ><a href="#method-c-measure_wall_time">::measure_wall_time</a>
|
115
96
|
|
116
|
-
<li><a href="#method-c-pause">::pause</a>
|
97
|
+
<li ><a href="#method-c-pause">::pause</a>
|
117
98
|
|
118
|
-
<li><a href="#method-c-profile">::profile</a>
|
99
|
+
<li ><a href="#method-c-profile">::profile</a>
|
119
100
|
|
120
|
-
<li><a href="#method-c-resume">::resume</a>
|
101
|
+
<li ><a href="#method-c-resume">::resume</a>
|
121
102
|
|
122
|
-
<li><a href="#method-c-running-3F">::running?</a>
|
103
|
+
<li ><a href="#method-c-running-3F">::running?</a>
|
123
104
|
|
124
|
-
<li><a href="#method-c-start">::start</a>
|
105
|
+
<li ><a href="#method-c-start">::start</a>
|
125
106
|
|
126
|
-
<li><a href="#method-c-start_script">::start_script</a>
|
107
|
+
<li ><a href="#method-c-start_script">::start_script</a>
|
127
108
|
|
128
|
-
<li><a href="#method-c-stop">::stop</a>
|
109
|
+
<li ><a href="#method-c-stop">::stop</a>
|
129
110
|
|
130
111
|
</ul>
|
131
|
-
</
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
<div id="project-metadata">
|
136
|
-
<nav id="fileindex-section" class="section project-section">
|
137
|
-
<h3 class="section-header">Pages</h3>
|
138
|
-
|
139
|
-
<ul>
|
140
|
-
|
141
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a>
|
142
|
-
|
143
|
-
<li class="file"><a href="./README_rdoc.html">README</a>
|
144
|
-
|
145
|
-
<li class="file"><a href="./examples/flat_txt.html">flat</a>
|
146
|
-
|
147
|
-
<li class="file"><a href="./examples/graph_txt.html">graph</a>
|
148
|
-
|
149
|
-
</ul>
|
150
|
-
</nav>
|
151
|
-
|
152
|
-
<nav id="classindex-section" class="section project-section">
|
153
|
-
<h3 class="section-header">Class and Module Index</h3>
|
154
|
-
|
155
|
-
<ul class="link-list">
|
156
|
-
|
157
|
-
<li><a href="./RubyProf.html">RubyProf</a>
|
158
|
-
|
159
|
-
<li><a href="./RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
160
|
-
|
161
|
-
<li><a href="./RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
162
|
-
|
163
|
-
<li><a href="./RubyProf/CallInfo.html">RubyProf::CallInfo</a>
|
164
|
-
|
165
|
-
<li><a href="./RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
|
166
|
-
|
167
|
-
<li><a href="./RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
|
168
|
-
|
169
|
-
<li><a href="./RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
|
170
|
-
|
171
|
-
<li><a href="./RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
172
|
-
|
173
|
-
<li><a href="./RubyProf/Cmd.html">RubyProf::Cmd</a>
|
174
|
-
|
175
|
-
<li><a href="./RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
176
|
-
|
177
|
-
<li><a href="./RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
178
|
-
|
179
|
-
<li><a href="./RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
180
|
-
|
181
|
-
<li><a href="./RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
182
|
-
|
183
|
-
<li><a href="./RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
184
|
-
|
185
|
-
<li><a href="./RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
186
|
-
|
187
|
-
<li><a href="./RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
188
|
-
|
189
|
-
<li><a href="./RubyProf/Profile.html">RubyProf::Profile</a>
|
190
|
-
|
191
|
-
<li><a href="./RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
192
|
-
|
193
|
-
<li><a href="./RubyProf/Test.html">RubyProf::Test</a>
|
194
|
-
|
195
|
-
<li><a href="./RubyProf/Thread.html">RubyProf::Thread</a>
|
196
|
-
|
197
|
-
<li><a href="./Rack.html">Rack</a>
|
198
|
-
|
199
|
-
<li><a href="./Rack/RubyProf.html">Rack::RubyProf</a>
|
200
|
-
|
201
|
-
</ul>
|
202
|
-
</nav>
|
112
|
+
</div>
|
203
113
|
|
204
114
|
</div>
|
205
115
|
</nav>
|
206
116
|
|
207
|
-
<
|
208
|
-
<h1 class="module">
|
117
|
+
<main role="main" aria-labelledby="module-RubyProf">
|
118
|
+
<h1 id="module-RubyProf" class="module">
|
119
|
+
module RubyProf
|
120
|
+
</h1>
|
209
121
|
|
210
|
-
<
|
122
|
+
<section class="description">
|
211
123
|
|
212
124
|
<p>The call info visitor class does a depth-first traversal across a
|
213
125
|
thread's call stack. At each call_info node, the visitor executes the
|
@@ -229,7 +141,7 @@ the event and the call_info instance. Event will be either :enter or
|
|
229
141
|
<p>These methods are here for backwards compatability with previous <a
|
230
142
|
href="RubyProf.html">RubyProf</a> releases</p>
|
231
143
|
|
232
|
-
</
|
144
|
+
</section>
|
233
145
|
|
234
146
|
|
235
147
|
|
@@ -240,14 +152,15 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
240
152
|
|
241
153
|
|
242
154
|
|
243
|
-
|
244
|
-
|
245
|
-
|
155
|
+
<section class="constants-list">
|
156
|
+
<header>
|
157
|
+
<h3>Constants</h3>
|
158
|
+
</header>
|
246
159
|
<dl>
|
247
160
|
|
248
161
|
<dt id="VERSION">VERSION
|
249
162
|
|
250
|
-
<dd
|
163
|
+
<dd>
|
251
164
|
|
252
165
|
|
253
166
|
</dl>
|
@@ -256,10 +169,11 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
256
169
|
|
257
170
|
|
258
171
|
|
259
|
-
<!-- Methods -->
|
260
172
|
|
261
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
262
|
-
|
173
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
174
|
+
<header>
|
175
|
+
<h3>Public Class Methods</h3>
|
176
|
+
</header>
|
263
177
|
|
264
178
|
|
265
179
|
<div id="method-c-cpu_frequency" class="method-detail ">
|
@@ -267,7 +181,9 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
267
181
|
<div class="method-heading">
|
268
182
|
<span class="method-name">cpu_frequency</span><span
|
269
183
|
class="method-args">()</span>
|
184
|
+
|
270
185
|
<span class="method-click-advice">click to toggle source</span>
|
186
|
+
|
271
187
|
</div>
|
272
188
|
|
273
189
|
|
@@ -275,6 +191,7 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
275
191
|
|
276
192
|
<p>Measurements</p>
|
277
193
|
|
194
|
+
|
278
195
|
|
279
196
|
|
280
197
|
<div class="method-source-code" id="cpu_frequency-source">
|
@@ -282,14 +199,14 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
282
199
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">cpu_frequency</span>
|
283
200
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">CpuTime</span>.<span class="ruby-identifier">frequency</span>
|
284
201
|
<span class="ruby-keyword">end</span></pre>
|
285
|
-
</div
|
202
|
+
</div>
|
286
203
|
|
287
204
|
</div>
|
288
205
|
|
289
206
|
|
290
207
|
|
291
208
|
|
292
|
-
</div
|
209
|
+
</div>
|
293
210
|
|
294
211
|
|
295
212
|
<div id="method-c-cpu_frequency-3D" class="method-detail ">
|
@@ -297,7 +214,9 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
297
214
|
<div class="method-heading">
|
298
215
|
<span class="method-name">cpu_frequency=</span><span
|
299
216
|
class="method-args">(value)</span>
|
217
|
+
|
300
218
|
<span class="method-click-advice">click to toggle source</span>
|
219
|
+
|
301
220
|
</div>
|
302
221
|
|
303
222
|
|
@@ -305,6 +224,7 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
305
224
|
|
306
225
|
|
307
226
|
|
227
|
+
|
308
228
|
|
309
229
|
|
310
230
|
<div class="method-source-code" id="cpu_frequency-3D-source">
|
@@ -312,14 +232,14 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
312
232
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">cpu_frequency=</span>(<span class="ruby-identifier">value</span>)
|
313
233
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">CpuTime</span>.<span class="ruby-identifier">frequency</span> = <span class="ruby-identifier">value</span>
|
314
234
|
<span class="ruby-keyword">end</span></pre>
|
315
|
-
</div
|
235
|
+
</div>
|
316
236
|
|
317
237
|
</div>
|
318
238
|
|
319
239
|
|
320
240
|
|
321
241
|
|
322
|
-
</div
|
242
|
+
</div>
|
323
243
|
|
324
244
|
|
325
245
|
<div id="method-c-exclude_threads" class="method-detail ">
|
@@ -340,6 +260,7 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
340
260
|
|
341
261
|
<p>Returns threads ruby-prof should exclude from profiling</p>
|
342
262
|
|
263
|
+
|
343
264
|
|
344
265
|
|
345
266
|
<div class="method-source-code" id="exclude_threads-source">
|
@@ -347,14 +268,14 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
347
268
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">exclude_threads</span>
|
348
269
|
<span class="ruby-ivar">@exclude_threads</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
349
270
|
<span class="ruby-keyword">end</span></pre>
|
350
|
-
</div
|
271
|
+
</div>
|
351
272
|
|
352
273
|
</div>
|
353
274
|
|
354
275
|
|
355
276
|
|
356
277
|
|
357
|
-
</div
|
278
|
+
</div>
|
358
279
|
|
359
280
|
|
360
281
|
<div id="method-c-exclude_threads-3D" class="method-detail ">
|
@@ -375,6 +296,7 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
375
296
|
|
376
297
|
<p>Specifies what threads ruby-prof should exclude from profiling</p>
|
377
298
|
|
299
|
+
|
378
300
|
|
379
301
|
|
380
302
|
<div class="method-source-code" id="exclude_threads-3D-source">
|
@@ -382,14 +304,14 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
382
304
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">exclude_threads=</span>(<span class="ruby-identifier">value</span>)
|
383
305
|
<span class="ruby-ivar">@exclude_threads</span> = <span class="ruby-identifier">value</span>
|
384
306
|
<span class="ruby-keyword">end</span></pre>
|
385
|
-
</div
|
307
|
+
</div>
|
386
308
|
|
387
309
|
</div>
|
388
310
|
|
389
311
|
|
390
312
|
|
391
313
|
|
392
|
-
</div
|
314
|
+
</div>
|
393
315
|
|
394
316
|
|
395
317
|
<div id="method-c-figure_measure_mode" class="method-detail ">
|
@@ -397,7 +319,9 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
397
319
|
<div class="method-heading">
|
398
320
|
<span class="method-name">figure_measure_mode</span><span
|
399
321
|
class="method-args">()</span>
|
322
|
+
|
400
323
|
<span class="method-click-advice">click to toggle source</span>
|
324
|
+
|
401
325
|
</div>
|
402
326
|
|
403
327
|
|
@@ -406,10 +330,11 @@ href="RubyProf.html">RubyProf</a> releases</p>
|
|
406
330
|
<p>Checks if the user specified the clock mode via the RUBY_PROF_MEASURE_MODE
|
407
331
|
environment variable</p>
|
408
332
|
|
333
|
+
|
409
334
|
|
410
335
|
|
411
336
|
<div class="method-source-code" id="figure_measure_mode-source">
|
412
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof.rb, line
|
337
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof.rb, line 34</span>
|
413
338
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">figure_measure_mode</span>
|
414
339
|
<span class="ruby-keyword">case</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">"RUBY_PROF_MEASURE_MODE"</span>]
|
415
340
|
<span class="ruby-keyword">when</span> <span class="ruby-string">"wall"</span> <span class="ruby-operator">||</span> <span class="ruby-string">"wall_time"</span>
|
@@ -421,9 +346,9 @@ environment variable</p>
|
|
421
346
|
<span class="ruby-keyword">begin</span>
|
422
347
|
<span class="ruby-identifier">open</span>(<span class="ruby-string">"/proc/cpuinfo"</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
423
348
|
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">each_line</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
424
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-regexp"
|
349
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-regexp">/cpu MHz\s*:\s*(.*)/</span>, <span class="ruby-value">1</span>)
|
425
350
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">s</span>
|
426
|
-
<span class="ruby-constant">RubyProf</span>.<span class="ruby-identifier">cpu_frequency</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">to_f</span>
|
351
|
+
<span class="ruby-constant">RubyProf</span>.<span class="ruby-identifier">cpu_frequency</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">*</span> <span class="ruby-value">1000000</span>
|
427
352
|
<span class="ruby-keyword">break</span>
|
428
353
|
<span class="ruby-keyword">end</span>
|
429
354
|
<span class="ruby-keyword">end</span>
|
@@ -441,14 +366,14 @@ environment variable</p>
|
|
441
366
|
<span class="ruby-constant">RubyProf</span>.<span class="ruby-identifier">measure_mode</span> = <span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">PROCESS_TIME</span>
|
442
367
|
<span class="ruby-keyword">end</span>
|
443
368
|
<span class="ruby-keyword">end</span></pre>
|
444
|
-
</div
|
369
|
+
</div>
|
445
370
|
|
446
371
|
</div>
|
447
372
|
|
448
373
|
|
449
374
|
|
450
375
|
|
451
|
-
</div
|
376
|
+
</div>
|
452
377
|
|
453
378
|
|
454
379
|
<div id="method-c-measure_allocations" class="method-detail ">
|
@@ -456,7 +381,9 @@ environment variable</p>
|
|
456
381
|
<div class="method-heading">
|
457
382
|
<span class="method-name">measure_allocations</span><span
|
458
383
|
class="method-args">()</span>
|
384
|
+
|
459
385
|
<span class="method-click-advice">click to toggle source</span>
|
386
|
+
|
460
387
|
</div>
|
461
388
|
|
462
389
|
|
@@ -464,6 +391,7 @@ environment variable</p>
|
|
464
391
|
|
465
392
|
|
466
393
|
|
394
|
+
|
467
395
|
|
468
396
|
|
469
397
|
<div class="method-source-code" id="measure_allocations-source">
|
@@ -471,14 +399,14 @@ environment variable</p>
|
|
471
399
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_allocations</span>
|
472
400
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">Allocations</span>.<span class="ruby-identifier">measure</span>
|
473
401
|
<span class="ruby-keyword">end</span></pre>
|
474
|
-
</div
|
402
|
+
</div>
|
475
403
|
|
476
404
|
</div>
|
477
405
|
|
478
406
|
|
479
407
|
|
480
408
|
|
481
|
-
</div
|
409
|
+
</div>
|
482
410
|
|
483
411
|
|
484
412
|
<div id="method-c-measure_cpu_time" class="method-detail ">
|
@@ -486,7 +414,9 @@ environment variable</p>
|
|
486
414
|
<div class="method-heading">
|
487
415
|
<span class="method-name">measure_cpu_time</span><span
|
488
416
|
class="method-args">()</span>
|
417
|
+
|
489
418
|
<span class="method-click-advice">click to toggle source</span>
|
419
|
+
|
490
420
|
</div>
|
491
421
|
|
492
422
|
|
@@ -494,6 +424,7 @@ environment variable</p>
|
|
494
424
|
|
495
425
|
|
496
426
|
|
427
|
+
|
497
428
|
|
498
429
|
|
499
430
|
<div class="method-source-code" id="measure_cpu_time-source">
|
@@ -501,14 +432,14 @@ environment variable</p>
|
|
501
432
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_cpu_time</span>
|
502
433
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">CpuTime</span>.<span class="ruby-identifier">measure</span>
|
503
434
|
<span class="ruby-keyword">end</span></pre>
|
504
|
-
</div
|
435
|
+
</div>
|
505
436
|
|
506
437
|
</div>
|
507
438
|
|
508
439
|
|
509
440
|
|
510
441
|
|
511
|
-
</div
|
442
|
+
</div>
|
512
443
|
|
513
444
|
|
514
445
|
<div id="method-c-measure_gc_runs" class="method-detail ">
|
@@ -516,7 +447,9 @@ environment variable</p>
|
|
516
447
|
<div class="method-heading">
|
517
448
|
<span class="method-name">measure_gc_runs</span><span
|
518
449
|
class="method-args">()</span>
|
450
|
+
|
519
451
|
<span class="method-click-advice">click to toggle source</span>
|
452
|
+
|
520
453
|
</div>
|
521
454
|
|
522
455
|
|
@@ -524,6 +457,7 @@ environment variable</p>
|
|
524
457
|
|
525
458
|
|
526
459
|
|
460
|
+
|
527
461
|
|
528
462
|
|
529
463
|
<div class="method-source-code" id="measure_gc_runs-source">
|
@@ -531,14 +465,14 @@ environment variable</p>
|
|
531
465
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_gc_runs</span>
|
532
466
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">GcRuns</span>.<span class="ruby-identifier">measure</span>
|
533
467
|
<span class="ruby-keyword">end</span></pre>
|
534
|
-
</div
|
468
|
+
</div>
|
535
469
|
|
536
470
|
</div>
|
537
471
|
|
538
472
|
|
539
473
|
|
540
474
|
|
541
|
-
</div
|
475
|
+
</div>
|
542
476
|
|
543
477
|
|
544
478
|
<div id="method-c-measure_gc_time" class="method-detail ">
|
@@ -546,7 +480,9 @@ environment variable</p>
|
|
546
480
|
<div class="method-heading">
|
547
481
|
<span class="method-name">measure_gc_time</span><span
|
548
482
|
class="method-args">()</span>
|
483
|
+
|
549
484
|
<span class="method-click-advice">click to toggle source</span>
|
485
|
+
|
550
486
|
</div>
|
551
487
|
|
552
488
|
|
@@ -554,6 +490,7 @@ environment variable</p>
|
|
554
490
|
|
555
491
|
|
556
492
|
|
493
|
+
|
557
494
|
|
558
495
|
|
559
496
|
<div class="method-source-code" id="measure_gc_time-source">
|
@@ -561,14 +498,14 @@ environment variable</p>
|
|
561
498
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_gc_time</span>
|
562
499
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">GcTime</span>.<span class="ruby-identifier">measure</span>
|
563
500
|
<span class="ruby-keyword">end</span></pre>
|
564
|
-
</div
|
501
|
+
</div>
|
565
502
|
|
566
503
|
</div>
|
567
504
|
|
568
505
|
|
569
506
|
|
570
507
|
|
571
|
-
</div
|
508
|
+
</div>
|
572
509
|
|
573
510
|
|
574
511
|
<div id="method-c-measure_memory" class="method-detail ">
|
@@ -576,7 +513,9 @@ environment variable</p>
|
|
576
513
|
<div class="method-heading">
|
577
514
|
<span class="method-name">measure_memory</span><span
|
578
515
|
class="method-args">()</span>
|
516
|
+
|
579
517
|
<span class="method-click-advice">click to toggle source</span>
|
518
|
+
|
580
519
|
</div>
|
581
520
|
|
582
521
|
|
@@ -584,6 +523,7 @@ environment variable</p>
|
|
584
523
|
|
585
524
|
|
586
525
|
|
526
|
+
|
587
527
|
|
588
528
|
|
589
529
|
<div class="method-source-code" id="measure_memory-source">
|
@@ -591,14 +531,14 @@ environment variable</p>
|
|
591
531
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_memory</span>
|
592
532
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">Memory</span>.<span class="ruby-identifier">measure</span>
|
593
533
|
<span class="ruby-keyword">end</span></pre>
|
594
|
-
</div
|
534
|
+
</div>
|
595
535
|
|
596
536
|
</div>
|
597
537
|
|
598
538
|
|
599
539
|
|
600
540
|
|
601
|
-
</div
|
541
|
+
</div>
|
602
542
|
|
603
543
|
|
604
544
|
<div id="method-c-measure_mode" class="method-detail ">
|
@@ -631,6 +571,7 @@ Measure number of garbage collections. This requires a patched Ruby
|
|
631
571
|
interpreter. *RubyProf::GC_TIME - Measure time spent doing garbage
|
632
572
|
collection. This requires a patched Ruby interpreter.*/</p>
|
633
573
|
|
574
|
+
|
634
575
|
|
635
576
|
|
636
577
|
<div class="method-source-code" id="measure_mode-source">
|
@@ -638,14 +579,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
638
579
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_mode</span>
|
639
580
|
<span class="ruby-ivar">@measure_mode</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">WALL_TIME</span>
|
640
581
|
<span class="ruby-keyword">end</span></pre>
|
641
|
-
</div
|
582
|
+
</div>
|
642
583
|
|
643
584
|
</div>
|
644
585
|
|
645
586
|
|
646
587
|
|
647
588
|
|
648
|
-
</div
|
589
|
+
</div>
|
649
590
|
|
650
591
|
|
651
592
|
<div id="method-c-measure_mode-3D" class="method-detail ">
|
@@ -678,6 +619,7 @@ Measure number of garbage collections. This requires a patched Ruby
|
|
678
619
|
interpreter. *RubyProf::GC_TIME - Measure time spent doing garbage
|
679
620
|
collection. This requires a patched Ruby interpreter.*/</p>
|
680
621
|
|
622
|
+
|
681
623
|
|
682
624
|
|
683
625
|
<div class="method-source-code" id="measure_mode-3D-source">
|
@@ -685,14 +627,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
685
627
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_mode=</span>(<span class="ruby-identifier">value</span>)
|
686
628
|
<span class="ruby-ivar">@measure_mode</span> = <span class="ruby-identifier">value</span>
|
687
629
|
<span class="ruby-keyword">end</span></pre>
|
688
|
-
</div
|
630
|
+
</div>
|
689
631
|
|
690
632
|
</div>
|
691
633
|
|
692
634
|
|
693
635
|
|
694
636
|
|
695
|
-
</div
|
637
|
+
</div>
|
696
638
|
|
697
639
|
|
698
640
|
<div id="method-c-measure_process_time" class="method-detail ">
|
@@ -700,7 +642,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
700
642
|
<div class="method-heading">
|
701
643
|
<span class="method-name">measure_process_time</span><span
|
702
644
|
class="method-args">()</span>
|
645
|
+
|
703
646
|
<span class="method-click-advice">click to toggle source</span>
|
647
|
+
|
704
648
|
</div>
|
705
649
|
|
706
650
|
|
@@ -708,6 +652,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
708
652
|
|
709
653
|
|
710
654
|
|
655
|
+
|
711
656
|
|
712
657
|
|
713
658
|
<div class="method-source-code" id="measure_process_time-source">
|
@@ -715,14 +660,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
715
660
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_process_time</span>
|
716
661
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">ProcessTime</span>.<span class="ruby-identifier">measure</span>
|
717
662
|
<span class="ruby-keyword">end</span></pre>
|
718
|
-
</div
|
663
|
+
</div>
|
719
664
|
|
720
665
|
</div>
|
721
666
|
|
722
667
|
|
723
668
|
|
724
669
|
|
725
|
-
</div
|
670
|
+
</div>
|
726
671
|
|
727
672
|
|
728
673
|
<div id="method-c-measure_wall_time" class="method-detail ">
|
@@ -730,7 +675,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
730
675
|
<div class="method-heading">
|
731
676
|
<span class="method-name">measure_wall_time</span><span
|
732
677
|
class="method-args">()</span>
|
678
|
+
|
733
679
|
<span class="method-click-advice">click to toggle source</span>
|
680
|
+
|
734
681
|
</div>
|
735
682
|
|
736
683
|
|
@@ -738,6 +685,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
738
685
|
|
739
686
|
|
740
687
|
|
688
|
+
|
741
689
|
|
742
690
|
|
743
691
|
<div class="method-source-code" id="measure_wall_time-source">
|
@@ -745,14 +693,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
745
693
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_wall_time</span>
|
746
694
|
<span class="ruby-constant">Measure</span><span class="ruby-operator">::</span><span class="ruby-constant">WallTime</span>.<span class="ruby-identifier">measure</span>
|
747
695
|
<span class="ruby-keyword">end</span></pre>
|
748
|
-
</div
|
696
|
+
</div>
|
749
697
|
|
750
698
|
</div>
|
751
699
|
|
752
700
|
|
753
701
|
|
754
702
|
|
755
|
-
</div
|
703
|
+
</div>
|
756
704
|
|
757
705
|
|
758
706
|
<div id="method-c-pause" class="method-detail ">
|
@@ -760,7 +708,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
760
708
|
<div class="method-heading">
|
761
709
|
<span class="method-name">pause</span><span
|
762
710
|
class="method-args">()</span>
|
711
|
+
|
763
712
|
<span class="method-click-advice">click to toggle source</span>
|
713
|
+
|
764
714
|
</div>
|
765
715
|
|
766
716
|
|
@@ -768,6 +718,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
768
718
|
|
769
719
|
|
770
720
|
|
721
|
+
|
771
722
|
|
772
723
|
|
773
724
|
<div class="method-source-code" id="pause-source">
|
@@ -777,14 +728,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
777
728
|
<span class="ruby-identifier">disable_gc_stats_if_needed</span>
|
778
729
|
<span class="ruby-ivar">@profile</span>.<span class="ruby-identifier">pause</span>
|
779
730
|
<span class="ruby-keyword">end</span></pre>
|
780
|
-
</div
|
731
|
+
</div>
|
781
732
|
|
782
733
|
</div>
|
783
734
|
|
784
735
|
|
785
736
|
|
786
737
|
|
787
|
-
</div
|
738
|
+
</div>
|
788
739
|
|
789
740
|
|
790
741
|
<div id="method-c-profile" class="method-detail ">
|
@@ -792,7 +743,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
792
743
|
<div class="method-heading">
|
793
744
|
<span class="method-name">profile</span><span
|
794
745
|
class="method-args">(&block)</span>
|
746
|
+
|
795
747
|
<span class="method-click-advice">click to toggle source</span>
|
748
|
+
|
796
749
|
</div>
|
797
750
|
|
798
751
|
|
@@ -800,25 +753,26 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
800
753
|
|
801
754
|
<p><a href="RubyProf/Profile.html">Profile</a> a block</p>
|
802
755
|
|
756
|
+
|
803
757
|
|
804
758
|
|
805
759
|
<div class="method-source-code" id="profile-source">
|
806
760
|
<pre><span class="ruby-comment"># File lib/ruby-prof/compatibility.rb, line 134</span>
|
807
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">profile</span>(
|
761
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">profile</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
808
762
|
<span class="ruby-identifier">ensure_not_running!</span>
|
809
763
|
<span class="ruby-identifier">gc_stat_was_enabled</span> = <span class="ruby-identifier">enable_gc_stats_if_needed</span>
|
810
|
-
<span class="ruby-identifier">res</span> = <span class="ruby-constant">Profile</span>.<span class="ruby-identifier">profile</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_mode</span>, <span class="ruby-keyword">self</span>.<span class="ruby-identifier">exclude_threads</span>,
|
764
|
+
<span class="ruby-identifier">res</span> = <span class="ruby-constant">Profile</span>.<span class="ruby-identifier">profile</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">measure_mode</span>, <span class="ruby-keyword">self</span>.<span class="ruby-identifier">exclude_threads</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
811
765
|
<span class="ruby-identifier">disable_gc_stats_if_needed</span>(<span class="ruby-identifier">gc_stat_was_enabled</span>)
|
812
766
|
<span class="ruby-identifier">res</span>
|
813
767
|
<span class="ruby-keyword">end</span></pre>
|
814
|
-
</div
|
768
|
+
</div>
|
815
769
|
|
816
770
|
</div>
|
817
771
|
|
818
772
|
|
819
773
|
|
820
774
|
|
821
|
-
</div
|
775
|
+
</div>
|
822
776
|
|
823
777
|
|
824
778
|
<div id="method-c-resume" class="method-detail ">
|
@@ -826,7 +780,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
826
780
|
<div class="method-heading">
|
827
781
|
<span class="method-name">resume</span><span
|
828
782
|
class="method-args">()</span>
|
783
|
+
|
829
784
|
<span class="method-click-advice">click to toggle source</span>
|
785
|
+
|
830
786
|
</div>
|
831
787
|
|
832
788
|
|
@@ -834,6 +790,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
834
790
|
|
835
791
|
|
836
792
|
|
793
|
+
|
837
794
|
|
838
795
|
|
839
796
|
<div class="method-source-code" id="resume-source">
|
@@ -843,14 +800,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
843
800
|
<span class="ruby-identifier">enable_gc_stats_if_needed</span>
|
844
801
|
<span class="ruby-ivar">@profile</span>.<span class="ruby-identifier">resume</span>
|
845
802
|
<span class="ruby-keyword">end</span></pre>
|
846
|
-
</div
|
803
|
+
</div>
|
847
804
|
|
848
805
|
</div>
|
849
806
|
|
850
807
|
|
851
808
|
|
852
809
|
|
853
|
-
</div
|
810
|
+
</div>
|
854
811
|
|
855
812
|
|
856
813
|
<div id="method-c-running-3F" class="method-detail ">
|
@@ -858,7 +815,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
858
815
|
<div class="method-heading">
|
859
816
|
<span class="method-name">running?</span><span
|
860
817
|
class="method-args">()</span>
|
818
|
+
|
861
819
|
<span class="method-click-advice">click to toggle source</span>
|
820
|
+
|
862
821
|
</div>
|
863
822
|
|
864
823
|
|
@@ -866,6 +825,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
866
825
|
|
867
826
|
|
868
827
|
|
828
|
+
|
869
829
|
|
870
830
|
|
871
831
|
<div class="method-source-code" id="running-3F-source">
|
@@ -877,14 +837,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
877
837
|
<span class="ruby-keyword">false</span>
|
878
838
|
<span class="ruby-keyword">end</span>
|
879
839
|
<span class="ruby-keyword">end</span></pre>
|
880
|
-
</div
|
840
|
+
</div>
|
881
841
|
|
882
842
|
</div>
|
883
843
|
|
884
844
|
|
885
845
|
|
886
846
|
|
887
|
-
</div
|
847
|
+
</div>
|
888
848
|
|
889
849
|
|
890
850
|
<div id="method-c-start" class="method-detail ">
|
@@ -892,7 +852,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
892
852
|
<div class="method-heading">
|
893
853
|
<span class="method-name">start</span><span
|
894
854
|
class="method-args">()</span>
|
855
|
+
|
895
856
|
<span class="method-click-advice">click to toggle source</span>
|
857
|
+
|
896
858
|
</div>
|
897
859
|
|
898
860
|
|
@@ -900,6 +862,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
900
862
|
|
901
863
|
|
902
864
|
|
865
|
+
|
903
866
|
|
904
867
|
|
905
868
|
<div class="method-source-code" id="start-source">
|
@@ -910,14 +873,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
910
873
|
<span class="ruby-identifier">enable_gc_stats_if_needed</span>
|
911
874
|
<span class="ruby-ivar">@profile</span>.<span class="ruby-identifier">start</span>
|
912
875
|
<span class="ruby-keyword">end</span></pre>
|
913
|
-
</div
|
876
|
+
</div>
|
914
877
|
|
915
878
|
</div>
|
916
879
|
|
917
880
|
|
918
881
|
|
919
882
|
|
920
|
-
</div
|
883
|
+
</div>
|
921
884
|
|
922
885
|
|
923
886
|
<div id="method-c-start_script" class="method-detail ">
|
@@ -925,7 +888,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
925
888
|
<div class="method-heading">
|
926
889
|
<span class="method-name">start_script</span><span
|
927
890
|
class="method-args">(script)</span>
|
891
|
+
|
928
892
|
<span class="method-click-advice">click to toggle source</span>
|
893
|
+
|
929
894
|
</div>
|
930
895
|
|
931
896
|
|
@@ -933,6 +898,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
933
898
|
|
934
899
|
<p>Profiling</p>
|
935
900
|
|
901
|
+
|
936
902
|
|
937
903
|
|
938
904
|
<div class="method-source-code" id="start_script-source">
|
@@ -941,14 +907,14 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
941
907
|
<span class="ruby-identifier">start</span>
|
942
908
|
<span class="ruby-identifier">load</span> <span class="ruby-identifier">script</span>
|
943
909
|
<span class="ruby-keyword">end</span></pre>
|
944
|
-
</div
|
910
|
+
</div>
|
945
911
|
|
946
912
|
</div>
|
947
913
|
|
948
914
|
|
949
915
|
|
950
916
|
|
951
|
-
</div
|
917
|
+
</div>
|
952
918
|
|
953
919
|
|
954
920
|
<div id="method-c-stop" class="method-detail ">
|
@@ -956,7 +922,9 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
956
922
|
<div class="method-heading">
|
957
923
|
<span class="method-name">stop</span><span
|
958
924
|
class="method-args">()</span>
|
925
|
+
|
959
926
|
<span class="method-click-advice">click to toggle source</span>
|
927
|
+
|
960
928
|
</div>
|
961
929
|
|
962
930
|
|
@@ -964,6 +932,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
964
932
|
|
965
933
|
|
966
934
|
|
935
|
+
|
967
936
|
|
968
937
|
|
969
938
|
<div class="method-source-code" id="stop-source">
|
@@ -975,26 +944,25 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
975
944
|
<span class="ruby-ivar">@profile</span> = <span class="ruby-keyword">nil</span>
|
976
945
|
<span class="ruby-identifier">result</span>
|
977
946
|
<span class="ruby-keyword">end</span></pre>
|
978
|
-
</div
|
947
|
+
</div>
|
979
948
|
|
980
949
|
</div>
|
981
950
|
|
982
951
|
|
983
952
|
|
984
953
|
|
985
|
-
</div
|
954
|
+
</div>
|
986
955
|
|
987
956
|
|
988
|
-
</section
|
957
|
+
</section>
|
989
958
|
|
990
|
-
</section
|
991
|
-
|
992
|
-
</div><!-- documentation -->
|
959
|
+
</section>
|
960
|
+
</main>
|
993
961
|
|
994
962
|
|
995
|
-
<footer id="validator-badges">
|
996
|
-
<p><a href="http://validator.w3.org/check/referer">
|
997
|
-
<p>Generated by <a href="
|
998
|
-
<p>
|
963
|
+
<footer id="validator-badges" role="contentinfo">
|
964
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
965
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
966
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
999
967
|
</footer>
|
1000
968
|
|