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/Thread.html
CHANGED
@@ -2,161 +2,95 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class RubyProf::Thread - ruby-prof</title>
|
8
8
|
|
9
|
-
<link
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
10
11
|
|
11
12
|
<script type="text/javascript">
|
12
13
|
var rdoc_rel_prefix = "../";
|
13
14
|
</script>
|
14
15
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
<script
|
18
|
-
<script
|
19
|
-
<script
|
20
|
-
<script
|
16
|
+
<script src="../js/jquery.js"></script>
|
17
|
+
<script src="../js/navigation.js"></script>
|
18
|
+
<script src="../js/search_index.js"></script>
|
19
|
+
<script src="../js/search.js"></script>
|
20
|
+
<script src="../js/searcher.js"></script>
|
21
|
+
<script src="../js/darkfish.js"></script>
|
21
22
|
|
22
23
|
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
28
34
|
<a href="../table_of_contents.html#classes">Classes</a>
|
29
35
|
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
36
|
+
</div>
|
37
|
+
</div>
|
33
38
|
|
34
|
-
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
40
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
45
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
46
|
+
</div>
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</ul>
|
52
|
-
</nav>
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
53
|
|
54
|
-
|
55
54
|
</div>
|
56
55
|
|
56
|
+
|
57
|
+
|
57
58
|
<div id="class-metadata">
|
58
59
|
|
59
|
-
<
|
60
|
-
<h3
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
61
63
|
|
62
64
|
<p class="link">Object
|
63
65
|
|
64
|
-
</
|
66
|
+
</div>
|
65
67
|
|
66
68
|
|
69
|
+
|
67
70
|
<!-- Method Quickref -->
|
68
|
-
<
|
69
|
-
<h3
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
70
73
|
|
71
|
-
<ul class="link-list">
|
74
|
+
<ul class="link-list" role="directory">
|
72
75
|
|
73
|
-
<li><a href="#method-i-top_methods">#top_methods</a>
|
76
|
+
<li ><a href="#method-i-top_methods">#top_methods</a>
|
74
77
|
|
75
|
-
<li><a href="#method-i-total_time">#total_time</a>
|
78
|
+
<li ><a href="#method-i-total_time">#total_time</a>
|
76
79
|
|
77
80
|
</ul>
|
78
|
-
</
|
81
|
+
</div>
|
79
82
|
|
80
83
|
</div>
|
81
|
-
|
82
|
-
<div id="project-metadata">
|
83
|
-
<nav id="fileindex-section" class="section project-section">
|
84
|
-
<h3 class="section-header">Pages</h3>
|
85
|
-
|
86
|
-
<ul>
|
87
|
-
|
88
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
89
|
-
|
90
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
91
|
-
|
92
|
-
<li class="file"><a href="../examples/flat_txt.html">flat</a>
|
93
|
-
|
94
|
-
<li class="file"><a href="../examples/graph_txt.html">graph</a>
|
95
|
-
|
96
|
-
</ul>
|
97
84
|
</nav>
|
98
85
|
|
99
|
-
|
100
|
-
<
|
86
|
+
<main role="main" aria-labelledby="class-RubyProf::Thread">
|
87
|
+
<h1 id="class-RubyProf::Thread" class="class">
|
88
|
+
class RubyProf::Thread
|
89
|
+
</h1>
|
101
90
|
|
102
|
-
<
|
103
|
-
|
104
|
-
<li><a href="../RubyProf.html">RubyProf</a>
|
105
|
-
|
106
|
-
<li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
107
|
-
|
108
|
-
<li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
109
|
-
|
110
|
-
<li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
|
111
|
-
|
112
|
-
<li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
|
113
|
-
|
114
|
-
<li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
|
115
|
-
|
116
|
-
<li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
|
117
|
-
|
118
|
-
<li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
119
|
-
|
120
|
-
<li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
|
121
|
-
|
122
|
-
<li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
123
|
-
|
124
|
-
<li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
125
|
-
|
126
|
-
<li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
127
|
-
|
128
|
-
<li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
129
|
-
|
130
|
-
<li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
131
|
-
|
132
|
-
<li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
133
|
-
|
134
|
-
<li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
135
|
-
|
136
|
-
<li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
|
137
|
-
|
138
|
-
<li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
139
|
-
|
140
|
-
<li><a href="../RubyProf/Test.html">RubyProf::Test</a>
|
141
|
-
|
142
|
-
<li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
|
143
|
-
|
144
|
-
<li><a href="../Rack.html">Rack</a>
|
145
|
-
|
146
|
-
<li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
|
147
|
-
|
148
|
-
</ul>
|
149
|
-
</nav>
|
150
|
-
|
151
|
-
</div>
|
152
|
-
</nav>
|
153
|
-
|
154
|
-
<div id="documentation">
|
155
|
-
<h1 class="class">class RubyProf::Thread</h1>
|
156
|
-
|
157
|
-
<div id="description" class="description">
|
91
|
+
<section class="description">
|
158
92
|
|
159
|
-
</
|
93
|
+
</section>
|
160
94
|
|
161
95
|
|
162
96
|
|
@@ -170,10 +104,11 @@
|
|
170
104
|
|
171
105
|
|
172
106
|
|
173
|
-
<!-- Methods -->
|
174
107
|
|
175
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section
|
176
|
-
|
108
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
109
|
+
<header>
|
110
|
+
<h3>Public Instance Methods</h3>
|
111
|
+
</header>
|
177
112
|
|
178
113
|
|
179
114
|
<div id="method-i-top_methods" class="method-detail ">
|
@@ -181,7 +116,9 @@
|
|
181
116
|
<div class="method-heading">
|
182
117
|
<span class="method-name">top_methods</span><span
|
183
118
|
class="method-args">()</span>
|
119
|
+
|
184
120
|
<span class="method-click-advice">click to toggle source</span>
|
121
|
+
|
185
122
|
</div>
|
186
123
|
|
187
124
|
|
@@ -189,25 +126,26 @@
|
|
189
126
|
|
190
127
|
|
191
128
|
|
129
|
+
|
192
130
|
|
193
131
|
|
194
132
|
<div class="method-source-code" id="top_methods-source">
|
195
133
|
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 3</span>
|
196
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">top_methods</span>
|
197
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">methods</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method_info</span><span class="ruby-operator">|</span>
|
198
|
-
<span class="ruby-identifier">method_info</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">detect</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
199
|
-
<span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
200
|
-
<span class="ruby-keyword">end</span>
|
201
|
-
<span class="ruby-keyword">end</span>
|
134
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">top_methods</span>
|
135
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">methods</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method_info</span><span class="ruby-operator">|</span>
|
136
|
+
<span class="ruby-identifier">method_info</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">detect</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
137
|
+
<span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
138
|
+
<span class="ruby-keyword">end</span>
|
139
|
+
<span class="ruby-keyword">end</span>
|
202
140
|
<span class="ruby-keyword">end</span></pre>
|
203
|
-
</div
|
141
|
+
</div>
|
204
142
|
|
205
143
|
</div>
|
206
144
|
|
207
145
|
|
208
146
|
|
209
147
|
|
210
|
-
</div
|
148
|
+
</div>
|
211
149
|
|
212
150
|
|
213
151
|
<div id="method-i-total_time" class="method-detail ">
|
@@ -215,7 +153,9 @@
|
|
215
153
|
<div class="method-heading">
|
216
154
|
<span class="method-name">total_time</span><span
|
217
155
|
class="method-args">()</span>
|
156
|
+
|
218
157
|
<span class="method-click-advice">click to toggle source</span>
|
158
|
+
|
219
159
|
</div>
|
220
160
|
|
221
161
|
|
@@ -223,40 +163,40 @@
|
|
223
163
|
|
224
164
|
|
225
165
|
|
166
|
+
|
226
167
|
|
227
168
|
|
228
169
|
<div class="method-source-code" id="total_time-source">
|
229
170
|
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 11</span>
|
230
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">total_time</span>
|
231
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">top_methods</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sum</span>, <span class="ruby-identifier">method_info</span><span class="ruby-operator">|</span>
|
232
|
-
<span class="ruby-identifier">method_info</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
233
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
234
|
-
<span class="ruby-identifier">sum</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">total_time</span>
|
235
|
-
<span class="ruby-keyword">end</span>
|
236
|
-
<span class="ruby-keyword">end</span>
|
237
|
-
<span class="ruby-identifier">sum</span>
|
238
|
-
<span class="ruby-keyword">end</span>
|
171
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">total_time</span>
|
172
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">top_methods</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sum</span>, <span class="ruby-identifier">method_info</span><span class="ruby-operator">|</span>
|
173
|
+
<span class="ruby-identifier">method_info</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
174
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
175
|
+
<span class="ruby-identifier">sum</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">total_time</span>
|
176
|
+
<span class="ruby-keyword">end</span>
|
177
|
+
<span class="ruby-keyword">end</span>
|
178
|
+
<span class="ruby-identifier">sum</span>
|
179
|
+
<span class="ruby-keyword">end</span>
|
239
180
|
<span class="ruby-keyword">end</span></pre>
|
240
|
-
</div
|
181
|
+
</div>
|
241
182
|
|
242
183
|
</div>
|
243
184
|
|
244
185
|
|
245
186
|
|
246
187
|
|
247
|
-
</div
|
188
|
+
</div>
|
248
189
|
|
249
190
|
|
250
|
-
</section
|
191
|
+
</section>
|
251
192
|
|
252
|
-
</section
|
253
|
-
|
254
|
-
</div><!-- documentation -->
|
193
|
+
</section>
|
194
|
+
</main>
|
255
195
|
|
256
196
|
|
257
|
-
<footer id="validator-badges">
|
258
|
-
<p><a href="http://validator.w3.org/check/referer">
|
259
|
-
<p>Generated by <a href="
|
260
|
-
<p>
|
197
|
+
<footer id="validator-badges" role="contentinfo">
|
198
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
199
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
200
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
261
201
|
</footer>
|
262
202
|
|
data/doc/created.rid
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
bin/ruby-prof
|
1
|
+
Thu, 02 Jan 2014 13:25:32 +0100
|
2
|
+
bin/ruby-prof Wed, 25 Dec 2013 08:28:55 +0100
|
3
3
|
bin/ruby-prof-check-trace Sun, 10 Mar 2013 10:57:14 +0100
|
4
4
|
examples/flat.txt Tue, 29 Jan 2013 16:43:39 +0100
|
5
5
|
examples/graph.txt Tue, 29 Jan 2013 16:43:39 +0100
|
6
6
|
examples/graph.html Tue, 29 Jan 2013 16:43:39 +0100
|
7
|
-
lib/ruby-prof.rb
|
8
|
-
lib/ruby-prof/aggregate_call_info.rb
|
7
|
+
lib/ruby-prof.rb Mon, 30 Dec 2013 14:52:43 +0100
|
8
|
+
lib/ruby-prof/aggregate_call_info.rb Wed, 25 Dec 2013 09:41:59 +0100
|
9
9
|
lib/ruby-prof/call_info.rb Tue, 29 Jan 2013 16:44:27 +0100
|
10
|
-
lib/ruby-prof/call_info_visitor.rb
|
11
|
-
lib/ruby-prof/compatibility.rb
|
10
|
+
lib/ruby-prof/call_info_visitor.rb Wed, 25 Dec 2013 09:43:12 +0100
|
11
|
+
lib/ruby-prof/compatibility.rb Mon, 30 Dec 2013 08:25:04 +0100
|
12
12
|
lib/ruby-prof/method_info.rb Tue, 29 Jan 2013 16:44:27 +0100
|
13
13
|
lib/ruby-prof/printers/abstract_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
14
14
|
lib/ruby-prof/printers/call_info_printer.rb Sun, 10 Mar 2013 10:57:14 +0100
|
@@ -17,16 +17,15 @@ lib/ruby-prof/printers/call_tree_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
|
17
17
|
lib/ruby-prof/printers/dot_printer.rb Tue, 29 Jan 2013 16:44:27 +0100
|
18
18
|
lib/ruby-prof/printers/flat_printer.rb Sun, 10 Mar 2013 10:57:14 +0100
|
19
19
|
lib/ruby-prof/printers/flat_printer_with_line_numbers.rb Tue, 29 Jan 2013 16:44:27 +0100
|
20
|
-
lib/ruby-prof/printers/graph_html_printer.rb
|
20
|
+
lib/ruby-prof/printers/graph_html_printer.rb Mon, 30 Dec 2013 14:49:55 +0100
|
21
21
|
lib/ruby-prof/printers/graph_printer.rb Sun, 10 Mar 2013 10:57:14 +0100
|
22
22
|
lib/ruby-prof/printers/multi_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
23
|
-
lib/ruby-prof/profile.rb
|
24
|
-
lib/ruby-prof/rack.rb
|
23
|
+
lib/ruby-prof/profile.rb Wed, 25 Dec 2013 08:59:06 +0100
|
24
|
+
lib/ruby-prof/rack.rb Wed, 25 Dec 2013 09:34:14 +0100
|
25
25
|
lib/ruby-prof/task.rb Tue, 29 Jan 2013 16:43:39 +0100
|
26
|
-
lib/ruby-prof/
|
27
|
-
lib/ruby-prof/
|
26
|
+
lib/ruby-prof/thread.rb Wed, 25 Dec 2013 09:34:14 +0100
|
27
|
+
lib/ruby-prof/version.rb Thu, 02 Jan 2014 13:03:14 +0100
|
28
28
|
lib/unprof.rb Tue, 29 Jan 2013 16:43:39 +0100
|
29
|
-
ext/ruby_prof/ruby_prof.c
|
30
|
-
|
31
|
-
README.rdoc Tue, 26 Nov 2013 08:07:21 +0100
|
29
|
+
ext/ruby_prof/ruby_prof.c Mon, 30 Dec 2013 14:56:05 +0100
|
30
|
+
README.rdoc Wed, 25 Dec 2013 10:55:27 +0100
|
32
31
|
LICENSE Tue, 29 Jan 2013 16:43:39 +0100
|
data/doc/examples/flat_txt.html
CHANGED
@@ -2,122 +2,84 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>flat - 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 class="file">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
24
|
+
<body id="top" role="document" class="file">
|
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
|
-
|
47
|
-
<nav id="fileindex-section" class="section project-section">
|
48
|
-
<h3 class="section-header">Pages</h3>
|
54
|
+
</div>
|
49
55
|
|
50
|
-
<ul>
|
51
|
-
|
52
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
53
|
-
|
54
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
55
|
-
|
56
|
-
<li class="file"><a href="../examples/flat_txt.html">flat</a>
|
57
|
-
|
58
|
-
<li class="file"><a href="../examples/graph_txt.html">graph</a>
|
59
56
|
|
60
|
-
</ul>
|
61
|
-
</nav>
|
62
57
|
|
63
|
-
|
64
|
-
|
58
|
+
<div id="project-metadata">
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
60
|
+
<h3>Pages</h3>
|
65
61
|
|
66
62
|
<ul class="link-list">
|
67
63
|
|
68
|
-
<li><a href="../
|
69
|
-
|
70
|
-
<li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
71
|
-
|
72
|
-
<li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
64
|
+
<li><a href="../LICENSE.html">LICENSE</a>
|
73
65
|
|
74
|
-
<li><a href="../
|
66
|
+
<li><a href="../README_rdoc.html">README</a>
|
75
67
|
|
76
|
-
<li><a href="../
|
68
|
+
<li><a href="../examples/flat_txt.html">flat</a>
|
77
69
|
|
78
|
-
<li><a href="../
|
70
|
+
<li><a href="../examples/graph_html.html">graph.html</a>
|
79
71
|
|
80
|
-
<li><a href="../
|
81
|
-
|
82
|
-
<li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
83
|
-
|
84
|
-
<li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
|
85
|
-
|
86
|
-
<li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
87
|
-
|
88
|
-
<li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
89
|
-
|
90
|
-
<li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
91
|
-
|
92
|
-
<li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
93
|
-
|
94
|
-
<li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
95
|
-
|
96
|
-
<li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
97
|
-
|
98
|
-
<li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
99
|
-
|
100
|
-
<li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
|
101
|
-
|
102
|
-
<li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
103
|
-
|
104
|
-
<li><a href="../RubyProf/Test.html">RubyProf::Test</a>
|
105
|
-
|
106
|
-
<li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
|
107
|
-
|
108
|
-
<li><a href="../Rack.html">Rack</a>
|
109
|
-
|
110
|
-
<li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
|
72
|
+
<li><a href="../examples/graph_txt.html">graph</a>
|
111
73
|
|
112
74
|
</ul>
|
113
|
-
</
|
75
|
+
</div>
|
114
76
|
|
115
77
|
</div>
|
116
78
|
</nav>
|
117
79
|
|
118
|
-
<
|
119
|
-
|
120
|
-
<h1 id="label-Flat+Profiles">Flat Profiles
|
80
|
+
<main role="main" aria-label="Page examples/flat.txt">
|
81
|
+
|
82
|
+
<h1 id="label-Flat+Profiles">Flat Profiles<span><a href="#label-Flat+Profiles">¶</a> <a href="#documentation">↑</a></span></h1>
|
121
83
|
|
122
84
|
<p>Flat profiles show the total amount of time spent in each method. As an
|
123
85
|
example, here is the output from running printers_test.rb.</p>
|
@@ -171,21 +133,20 @@ longest are listed first.</p>
|
|
171
133
|
</li><li>
|
172
134
|
<p>MyObject#test - An instance method “test” of the class “MyObject”</p>
|
173
135
|
</li><li>
|
174
|
-
<p><Object:MyObject>
|
136
|
+
<p><Object:MyObject>#test - The <> characters indicate a singleton
|
175
137
|
method on a singleton class.</p>
|
176
138
|
</li></ul>
|
177
139
|
|
178
140
|
<p>For example, wee can see that Integer#upto took the most time, 4.06
|
179
141
|
seconds. An additional 4.66 seconds were spent in its children, for a
|
180
142
|
total time of 8.72 seconds.</p>
|
181
|
-
|
182
|
-
</div>
|
143
|
+
</main>
|
183
144
|
|
184
145
|
|
185
146
|
|
186
|
-
<footer id="validator-badges">
|
187
|
-
<p><a href="http://validator.w3.org/check/referer">
|
188
|
-
<p>Generated by <a href="
|
189
|
-
<p>
|
147
|
+
<footer id="validator-badges" role="contentinfo">
|
148
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
149
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
150
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
190
151
|
</footer>
|
191
152
|
|