ruby-prof 0.15.4 → 0.15.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +7 -1
- data/README.rdoc +1 -1
- data/bin/ruby-prof +16 -4
- data/doc/LICENSE.html +114 -0
- data/doc/README_rdoc.html +592 -0
- data/doc/Rack.html +95 -0
- data/doc/Rack/RubyProf.html +264 -0
- data/doc/RubyProf.html +962 -0
- data/doc/RubyProf/AbstractPrinter.html +546 -0
- data/doc/RubyProf/AggregateCallInfo.html +537 -0
- data/doc/RubyProf/CallInfo.html +468 -0
- data/doc/RubyProf/CallInfoPrinter.html +120 -0
- data/doc/RubyProf/CallInfoVisitor.html +200 -0
- data/doc/RubyProf/CallStackPrinter.html +1604 -0
- data/doc/RubyProf/CallTreePrinter.html +359 -0
- data/doc/RubyProf/Cmd.html +631 -0
- data/doc/RubyProf/DotPrinter.html +257 -0
- data/doc/RubyProf/FlatPrinter.html +163 -0
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +208 -0
- data/doc/RubyProf/GraphHtmlPrinter.html +575 -0
- data/doc/RubyProf/GraphPrinter.html +139 -0
- data/doc/RubyProf/MethodInfo.html +685 -0
- data/doc/RubyProf/MultiPrinter.html +358 -0
- data/doc/RubyProf/Profile.html +764 -0
- data/doc/RubyProf/ProfileTask.html +490 -0
- data/doc/RubyProf/Thread.html +199 -0
- data/doc/created.rid +14 -14
- data/doc/examples/flat_txt.html +149 -0
- data/doc/examples/graph_html.html +850 -0
- data/doc/examples/graph_txt.html +274 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +618 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/table_of_contents.html +859 -0
- data/lib/ruby-prof/printers/flat_printer_with_line_numbers.rb +21 -14
- data/lib/ruby-prof/printers/graph_printer.rb +1 -0
- data/lib/ruby-prof/version.rb +1 -1
- data/test/measure_cpu_time_test.rb +1 -1
- metadata +54 -2
@@ -0,0 +1,199 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class RubyProf::Thread - ruby-prof</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link">Object
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li ><a href="#method-i-top_methods">#top_methods</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-total_time">#total_time</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-labelledby="class-RubyProf::Thread">
|
84
|
+
<h1 id="class-RubyProf::Thread" class="class">
|
85
|
+
class RubyProf::Thread
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
106
|
+
<header>
|
107
|
+
<h3>Public Instance Methods</h3>
|
108
|
+
</header>
|
109
|
+
|
110
|
+
|
111
|
+
<div id="method-i-top_methods" class="method-detail ">
|
112
|
+
|
113
|
+
<div class="method-heading">
|
114
|
+
<span class="method-name">top_methods</span><span
|
115
|
+
class="method-args">()</span>
|
116
|
+
|
117
|
+
<span class="method-click-advice">click to toggle source</span>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
|
122
|
+
<div class="method-description">
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<div class="method-source-code" id="top_methods-source">
|
130
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 3</span>
|
131
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">top_methods</span>
|
132
|
+
<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>
|
133
|
+
<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>
|
134
|
+
<span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
135
|
+
<span class="ruby-keyword">end</span>
|
136
|
+
<span class="ruby-keyword">end</span>
|
137
|
+
<span class="ruby-keyword">end</span></pre>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
<div id="method-i-total_time" class="method-detail ">
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<span class="method-name">total_time</span><span
|
152
|
+
class="method-args">()</span>
|
153
|
+
|
154
|
+
<span class="method-click-advice">click to toggle source</span>
|
155
|
+
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method-description">
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-source-code" id="total_time-source">
|
167
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 11</span>
|
168
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">total_time</span>
|
169
|
+
<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>
|
170
|
+
<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>
|
171
|
+
<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>
|
172
|
+
<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>
|
173
|
+
<span class="ruby-keyword">end</span>
|
174
|
+
<span class="ruby-keyword">end</span>
|
175
|
+
<span class="ruby-identifier">sum</span>
|
176
|
+
<span class="ruby-keyword">end</span>
|
177
|
+
<span class="ruby-keyword">end</span></pre>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
</div>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
</div>
|
186
|
+
|
187
|
+
|
188
|
+
</section>
|
189
|
+
|
190
|
+
</section>
|
191
|
+
</main>
|
192
|
+
|
193
|
+
|
194
|
+
<footer id="validator-badges" role="contentinfo">
|
195
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
196
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
197
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
198
|
+
</footer>
|
199
|
+
|
data/doc/created.rid
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
|
2
|
-
bin/ruby-prof
|
1
|
+
Sun, 22 Feb 2015 15:46:47 +0100
|
2
|
+
bin/ruby-prof Sun, 22 Feb 2015 15:41:38 +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
7
|
lib/ruby-prof.rb Sat, 14 Feb 2015 13:03:02 +0100
|
8
8
|
lib/ruby-prof/aggregate_call_info.rb Wed, 25 Dec 2013 09:41:59 +0100
|
9
|
-
lib/ruby-prof/call_info.rb
|
10
|
-
lib/ruby-prof/call_info_visitor.rb
|
9
|
+
lib/ruby-prof/call_info.rb Sun, 22 Feb 2015 15:41:29 +0100
|
10
|
+
lib/ruby-prof/call_info_visitor.rb Sun, 22 Feb 2015 15:41:29 +0100
|
11
11
|
lib/ruby-prof/compatibility.rb Sat, 14 Feb 2015 13:02:38 +0100
|
12
|
-
lib/ruby-prof/method_info.rb Sun,
|
12
|
+
lib/ruby-prof/method_info.rb Sun, 22 Feb 2015 15:41:29 +0100
|
13
13
|
lib/ruby-prof/printers/abstract_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
14
|
-
lib/ruby-prof/printers/call_info_printer.rb Sun,
|
14
|
+
lib/ruby-prof/printers/call_info_printer.rb Sun, 22 Feb 2015 15:41:29 +0100
|
15
15
|
lib/ruby-prof/printers/call_stack_printer.rb Sun, 10 Mar 2013 10:57:14 +0100
|
16
16
|
lib/ruby-prof/printers/call_tree_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
17
|
-
lib/ruby-prof/printers/dot_printer.rb
|
17
|
+
lib/ruby-prof/printers/dot_printer.rb Sun, 22 Feb 2015 15:41:29 +0100
|
18
18
|
lib/ruby-prof/printers/flat_printer.rb Sat, 14 Feb 2015 12:40:53 +0100
|
19
|
-
lib/ruby-prof/printers/flat_printer_with_line_numbers.rb
|
20
|
-
lib/ruby-prof/printers/graph_html_printer.rb
|
21
|
-
lib/ruby-prof/printers/graph_printer.rb Sun,
|
19
|
+
lib/ruby-prof/printers/flat_printer_with_line_numbers.rb Sun, 15 Feb 2015 12:21:36 +0100
|
20
|
+
lib/ruby-prof/printers/graph_html_printer.rb Sun, 22 Feb 2015 15:41:29 +0100
|
21
|
+
lib/ruby-prof/printers/graph_printer.rb Sun, 22 Feb 2015 15:41:29 +0100
|
22
22
|
lib/ruby-prof/printers/multi_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
23
|
-
lib/ruby-prof/profile.rb
|
23
|
+
lib/ruby-prof/profile.rb Sun, 22 Feb 2015 15:41:29 +0100
|
24
24
|
lib/ruby-prof/rack.rb Thu, 23 Oct 2014 01:29:30 +0200
|
25
25
|
lib/ruby-prof/task.rb Tue, 29 Jan 2013 16:43:39 +0100
|
26
|
-
lib/ruby-prof/thread.rb
|
27
|
-
lib/ruby-prof/version.rb
|
26
|
+
lib/ruby-prof/thread.rb Sun, 22 Feb 2015 15:41:29 +0100
|
27
|
+
lib/ruby-prof/version.rb Sun, 22 Feb 2015 15:43:21 +0100
|
28
28
|
lib/unprof.rb Tue, 29 Jan 2013 16:43:39 +0100
|
29
29
|
ext/ruby_prof/ruby_prof.c Sat, 14 Feb 2015 12:36:01 +0100
|
30
|
-
README.rdoc
|
30
|
+
README.rdoc Sun, 22 Feb 2015 15:41:38 +0100
|
31
31
|
LICENSE Tue, 20 May 2014 07:16:27 +0200
|
@@ -0,0 +1,149 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>flat - ruby-prof</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="file">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="project-metadata">
|
56
|
+
<div id="fileindex-section" class="nav-section">
|
57
|
+
<h3>Pages</h3>
|
58
|
+
|
59
|
+
<ul class="link-list">
|
60
|
+
|
61
|
+
<li><a href="../LICENSE.html">LICENSE</a>
|
62
|
+
|
63
|
+
<li><a href="../README_rdoc.html">README</a>
|
64
|
+
|
65
|
+
<li><a href="../examples/flat_txt.html">flat</a>
|
66
|
+
|
67
|
+
<li><a href="../examples/graph_html.html">graph.html</a>
|
68
|
+
|
69
|
+
<li><a href="../examples/graph_txt.html">graph</a>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
</div>
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
<main role="main" aria-label="Page examples/flat.txt">
|
78
|
+
|
79
|
+
<h1 id="label-Flat+Profiles">Flat Profiles<span><a href="#label-Flat+Profiles">¶</a> <a href="#top">↑</a></span></h1>
|
80
|
+
|
81
|
+
<p>Flat profiles show the total amount of time spent in each method. As an
|
82
|
+
example, here is the output from running printers_test.rb.</p>
|
83
|
+
|
84
|
+
<p>Thread ID: 21277412</p>
|
85
|
+
|
86
|
+
<pre>%self cumulative total self children calls self/call total/call name
|
87
|
+
46.34 4.06 8.72 4.06 4.66 501 0.01 0.02 Integer#upto
|
88
|
+
23.89 6.16 2.09 2.09 0.00 61 0.03 0.03 Kernel.sleep
|
89
|
+
15.12 7.48 1.33 1.33 0.00 250862 0.00 0.00 Fixnum#%
|
90
|
+
14.13 8.72 1.24 1.24 0.00 250862 0.00 0.00 Fixnum#==
|
91
|
+
0.18 8.74 0.02 0.02 0.00 1 0.02 0.02 Array#each_index
|
92
|
+
0.17 8.75 6.64 0.01 6.63 500 0.00 0.01 Object#is_prime
|
93
|
+
0.17 8.77 6.66 0.01 6.64 1 0.01 6.66 Array#select
|
94
|
+
0.00 8.77 0.00 0.00 0.00 501 0.00 0.00 Fixnum#-
|
95
|
+
0.00 8.77 0.00 0.00 0.00 1 0.00 0.00 Array#first
|
96
|
+
0.00 8.77 0.00 0.00 0.00 1 0.00 0.00 Array#length
|
97
|
+
0.00 8.77 0.00 0.00 0.00 1 0.00 0.00 Array#initialize
|
98
|
+
0.00 8.77 8.77 0.00 8.77 1 0.00 8.77 Object#run_primes
|
99
|
+
0.00 8.77 0.00 0.00 0.00 1 0.00 0.00 Integer#to_int
|
100
|
+
0.00 8.77 6.66 0.00 6.66 1 0.00 6.66 Object#find_primes
|
101
|
+
0.00 8.77 2.09 0.00 2.09 1 0.00 2.09 Object#find_largest
|
102
|
+
0.00 8.77 0.02 0.00 0.02 1 0.00 0.02 Object#make_random_array
|
103
|
+
0.00 8.77 0.00 0.00 0.00 1 0.00 0.00 Class#new
|
104
|
+
0.00 8.77 0.00 0.00 0.00 500 0.00 0.00 Array#[]=
|
105
|
+
0.00 8.77 0.00 0.00 0.00 61 0.00 0.00 Fixnum#>
|
106
|
+
0.00 8.77 0.00 0.00 0.00 61 0.00 0.00 Array#[]
|
107
|
+
0.00 8.77 8.77 0.00 8.77 1 0.00 8.77 #toplevel
|
108
|
+
0.00 8.77 0.00 0.00 0.00 500 0.00 0.00 Kernel.rand</pre>
|
109
|
+
|
110
|
+
<p>All values are in seconds.</p>
|
111
|
+
|
112
|
+
<p>The columns are:</p>
|
113
|
+
|
114
|
+
<pre> %self - The percentage of time spent in this method, derived from self_time/total_time
|
115
|
+
cumulative - The sum of the time spent in this method and all the methods listed above it.
|
116
|
+
total - The time spent in this method and its children.
|
117
|
+
self - The time spent in this method.
|
118
|
+
children - The time spent in this method's children.
|
119
|
+
calls - The number of times this method was called.
|
120
|
+
self/call - The average time spent per call in this method.
|
121
|
+
total/call - The average time spent per call in this method and its children.
|
122
|
+
name - The name of the method.</pre>
|
123
|
+
|
124
|
+
<p>Methods are sorted based on %self, therefore the methods that execute the
|
125
|
+
longest are listed first.</p>
|
126
|
+
|
127
|
+
<p>The interpretation of method names is:</p>
|
128
|
+
<ul><li>
|
129
|
+
<p>toplevel - The root method that calls all other methods</p>
|
130
|
+
</li><li>
|
131
|
+
<p>MyObject#test - An instance method “test” of the class “MyObject”</p>
|
132
|
+
</li><li>
|
133
|
+
<p><Object:MyObject>#test - The <> characters indicate a singleton
|
134
|
+
method on a singleton class.</p>
|
135
|
+
</li></ul>
|
136
|
+
|
137
|
+
<p>For example, wee can see that Integer#upto took the most time, 4.06
|
138
|
+
seconds. An additional 4.66 seconds were spent in its children, for a
|
139
|
+
total time of 8.72 seconds.</p>
|
140
|
+
</main>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<footer id="validator-badges" role="contentinfo">
|
145
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
146
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
147
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
148
|
+
</footer>
|
149
|
+
|
@@ -0,0 +1,850 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>graph.html - ruby-prof</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="file">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="project-metadata">
|
56
|
+
<div id="fileindex-section" class="nav-section">
|
57
|
+
<h3>Pages</h3>
|
58
|
+
|
59
|
+
<ul class="link-list">
|
60
|
+
|
61
|
+
<li><a href="../LICENSE.html">LICENSE</a>
|
62
|
+
|
63
|
+
<li><a href="../README_rdoc.html">README</a>
|
64
|
+
|
65
|
+
<li><a href="../examples/flat_txt.html">flat</a>
|
66
|
+
|
67
|
+
<li><a href="../examples/graph_html.html">graph.html</a>
|
68
|
+
|
69
|
+
<li><a href="../examples/graph_txt.html">graph</a>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
</div>
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
<main role="main" aria-label="Page examples/graph.html">
|
78
|
+
|
79
|
+
<p><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “<a
|
80
|
+
href="http://www.w3.org/TR/html4/strict.dtd">www.w3.org/TR/html4/strict.dtd</a>”>
|
81
|
+
<html> <head> <style media=“all” type=“text/css”></p>
|
82
|
+
|
83
|
+
<pre> table {
|
84
|
+
border-collapse: collapse;
|
85
|
+
border: 1px solid #CCC;
|
86
|
+
font-family: Verdana, Arial, Helvetica, sans-serif;
|
87
|
+
font-size: 9pt;
|
88
|
+
line-height: normal;
|
89
|
+
}
|
90
|
+
th {
|
91
|
+
text-align: center;
|
92
|
+
border-top: 1px solid #FB7A31;
|
93
|
+
border-bottom: 1px solid #FB7A31;
|
94
|
+
background: #FFC;
|
95
|
+
padding: 0.3em;
|
96
|
+
border-left: 1px solid silver;
|
97
|
+
}
|
98
|
+
tr.break td {
|
99
|
+
border: 0;
|
100
|
+
border-top: 1px solid #FB7A31;
|
101
|
+
padding: 0;
|
102
|
+
margin: 0;
|
103
|
+
}
|
104
|
+
tr.method td {
|
105
|
+
font-weight: bold;
|
106
|
+
}
|
107
|
+
td {
|
108
|
+
padding: 0.3em;
|
109
|
+
}
|
110
|
+
td:first-child {
|
111
|
+
width: 190px;
|
112
|
+
}
|
113
|
+
td {
|
114
|
+
border-left: 1px solid #CCC;
|
115
|
+
text-align: center;
|
116
|
+
}
|
117
|
+
</style></pre>
|
118
|
+
|
119
|
+
<p></head> <body> <h1> Graph Profile</h1>
|
120
|
+
<p>Graph profiles show how long each method runs, which methods call
|
121
|
+
it</p>
|
122
|
+
|
123
|
+
<pre>and which methods it calls. To understand how to read a graph profile, refer to
|
124
|
+
the <a href="graph.txt">documentation</a> for the text graph report. </p></pre>
|
125
|
+
|
126
|
+
<p><p>The main advantage of an HTML graph format versus the text format
|
127
|
+
is the use of</p>
|
128
|
+
|
129
|
+
<pre class="ruby"><span class="ruby-identifier">hyperlinks</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">jump</span> <span class="ruby-identifier">between</span> <span class="ruby-identifier">methods</span>. <span class="ruby-constant">This</span> <span class="ruby-identifier">makes</span> <span class="ruby-identifier">it</span> <span class="ruby-identifier">easier</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">understand</span> <span class="ruby-identifier">the</span> <span class="ruby-identifier">flow</span>
|
130
|
+
</pre>
|
131
|
+
|
132
|
+
<p>of control through a program and which methods take the most
|
133
|
+
time.</p> <p>Below is the output from running printers_test.rb
|
134
|
+
reproduced in HTML. </p> <p>Profile Report</p></p>
|
135
|
+
|
136
|
+
<p><table></p>
|
137
|
+
|
138
|
+
<pre><tr>
|
139
|
+
<th>Thread ID</th>
|
140
|
+
<th>Total Time</th>
|
141
|
+
</tr>
|
142
|
+
<tr>
|
143
|
+
<td><a href="#21277412">21277412</a></td>
|
144
|
+
<td>8.766</td>
|
145
|
+
</tr></pre>
|
146
|
+
|
147
|
+
<p></table></p>
|
148
|
+
|
149
|
+
<p><h2><a name=“21277412”>Thread 21277412</a></h2>
|
150
|
+
<table></p>
|
151
|
+
|
152
|
+
<pre><tr>
|
153
|
+
<th> %Total</th>
|
154
|
+
<th> %Self</th>
|
155
|
+
<th> Total</th>
|
156
|
+
<th> Self</th>
|
157
|
+
<th> Children</th>
|
158
|
+
<th> Calls</th>
|
159
|
+
<th>Name</th>
|
160
|
+
</tr>
|
161
|
+
<tr class="method">
|
162
|
+
<td> 100.00%</td>
|
163
|
+
<td> 0.00%</td>
|
164
|
+
<td> 8.77</td>
|
165
|
+
<td> 0.00</td>
|
166
|
+
<td> 8.77</td>
|
167
|
+
<td> 1</td>
|
168
|
+
<td><a name="_toplevel_21277412">#toplevel</a></td>
|
169
|
+
</tr>
|
170
|
+
<tr>
|
171
|
+
<td>&nbsp;</td>
|
172
|
+
<td>&nbsp;</td>
|
173
|
+
<td> 8.77</td>
|
174
|
+
<td> 0.00</td>
|
175
|
+
<td> 8.77</td>
|
176
|
+
<td> 1/1</td>
|
177
|
+
<td><a href="#Object_run_primes_21277412">Object#run_primes</a></td>
|
178
|
+
</tr>
|
179
|
+
<tr class="break">
|
180
|
+
<td colspan="7"></td>
|
181
|
+
</tr>
|
182
|
+
<tr>
|
183
|
+
<td>&nbsp;</td>
|
184
|
+
<td>&nbsp;</td>
|
185
|
+
<td> 8.77</td>
|
186
|
+
<td> 0.00</td>
|
187
|
+
<td> 8.77</td>
|
188
|
+
<td> 1/1</td>
|
189
|
+
<td><a href="#_toplevel_21277412">#toplevel</a></td>
|
190
|
+
</tr>
|
191
|
+
<tr class="method">
|
192
|
+
<td> 100.00%</td>
|
193
|
+
<td> 0.00%</td>
|
194
|
+
<td> 8.77</td>
|
195
|
+
<td> 0.00</td>
|
196
|
+
<td> 8.77</td>
|
197
|
+
<td> 1</td>
|
198
|
+
<td><a name="Object_run_primes_21277412">Object#run_primes</a></td>
|
199
|
+
</tr>
|
200
|
+
<tr>
|
201
|
+
<td>&nbsp;</td>
|
202
|
+
<td>&nbsp;</td>
|
203
|
+
<td> 0.02</td>
|
204
|
+
<td> 0.00</td>
|
205
|
+
<td> 0.02</td>
|
206
|
+
<td> 1/1</td>
|
207
|
+
<td><a href="#Object_make_random_array_21277412">Object#make_random_array</a></td>
|
208
|
+
</tr>
|
209
|
+
<tr>
|
210
|
+
<td>&nbsp;</td>
|
211
|
+
<td>&nbsp;</td>
|
212
|
+
<td> 2.09</td>
|
213
|
+
<td> 0.00</td>
|
214
|
+
<td> 2.09</td>
|
215
|
+
<td> 1/1</td>
|
216
|
+
<td><a href="#Object_find_largest_21277412">Object#find_largest</a></td>
|
217
|
+
</tr>
|
218
|
+
<tr>
|
219
|
+
<td>&nbsp;</td>
|
220
|
+
<td>&nbsp;</td>
|
221
|
+
<td> 6.66</td>
|
222
|
+
<td> 0.00</td>
|
223
|
+
<td> 6.66</td>
|
224
|
+
<td> 1/1</td>
|
225
|
+
<td><a href="#Object_find_primes_21277412">Object#find_primes</a></td>
|
226
|
+
</tr>
|
227
|
+
<tr class="break">
|
228
|
+
<td colspan="7"></td>
|
229
|
+
</tr>
|
230
|
+
<tr>
|
231
|
+
<td>&nbsp;</td>
|
232
|
+
<td>&nbsp;</td>
|
233
|
+
<td> 6.63</td>
|
234
|
+
<td> 4.06</td>
|
235
|
+
<td> 2.56</td>
|
236
|
+
<td> 500/501</td>
|
237
|
+
<td><a href="#Object_is_prime_21277412">Object#is_prime</a></td>
|
238
|
+
</tr>
|
239
|
+
<tr>
|
240
|
+
<td>&nbsp;</td>
|
241
|
+
<td>&nbsp;</td>
|
242
|
+
<td> 2.09</td>
|
243
|
+
<td> 0.00</td>
|
244
|
+
<td> 2.09</td>
|
245
|
+
<td> 1/501</td>
|
246
|
+
<td><a href="#Object_find_largest_21277412">Object#find_largest</a></td>
|
247
|
+
</tr>
|
248
|
+
<tr class="method">
|
249
|
+
<td> 99.48%</td>
|
250
|
+
<td> 46.34%</td>
|
251
|
+
<td> 8.72</td>
|
252
|
+
<td> 4.06</td>
|
253
|
+
<td> 4.66</td>
|
254
|
+
<td> 501</td>
|
255
|
+
<td><a name="Integer_upto_21277412">Integer#upto</a></td>
|
256
|
+
</tr>
|
257
|
+
<tr>
|
258
|
+
<td>&nbsp;</td>
|
259
|
+
<td>&nbsp;</td>
|
260
|
+
<td> 0.00</td>
|
261
|
+
<td> 0.00</td>
|
262
|
+
<td> 0.00</td>
|
263
|
+
<td> 61/61</td>
|
264
|
+
<td><a href="#Array_[]_21277412">Array#[]</a></td>
|
265
|
+
</tr>
|
266
|
+
<tr>
|
267
|
+
<td>&nbsp;</td>
|
268
|
+
<td>&nbsp;</td>
|
269
|
+
<td> 0.00</td>
|
270
|
+
<td> 0.00</td>
|
271
|
+
<td> 0.00</td>
|
272
|
+
<td> 61/61</td>
|
273
|
+
<td><a href="#Fixnum_>_21277412">Fixnum#_</a></td>
|
274
|
+
</tr>
|
275
|
+
<tr>
|
276
|
+
<td>&nbsp;</td>
|
277
|
+
<td>&nbsp;</td>
|
278
|
+
<td> 2.09</td>
|
279
|
+
<td> 2.09</td>
|
280
|
+
<td> 0.00</td>
|
281
|
+
<td> 61/61</td>
|
282
|
+
<td><a href="#Kernel_sleep_21277412">Kernel.sleep</a></td>
|
283
|
+
</tr>
|
284
|
+
<tr>
|
285
|
+
<td>&nbsp;</td>
|
286
|
+
<td>&nbsp;</td>
|
287
|
+
<td> 1.24</td>
|
288
|
+
<td> 1.24</td>
|
289
|
+
<td> 0.00</td>
|
290
|
+
<td> 250862/250862</td>
|
291
|
+
<td><a href="#Fixnum____21277412">Fixnum#==</a></td>
|
292
|
+
</tr>
|
293
|
+
<tr>
|
294
|
+
<td>&nbsp;</td>
|
295
|
+
<td>&nbsp;</td>
|
296
|
+
<td> 1.33</td>
|
297
|
+
<td> 1.33</td>
|
298
|
+
<td> 0.00</td>
|
299
|
+
<td> 250862/250862</td>
|
300
|
+
<td><a href="#Fixnum_%_21277412">Fixnum#%</a></td>
|
301
|
+
</tr>
|
302
|
+
<tr class="break">
|
303
|
+
<td colspan="7"></td>
|
304
|
+
</tr>
|
305
|
+
<tr>
|
306
|
+
<td>&nbsp;</td>
|
307
|
+
<td>&nbsp;</td>
|
308
|
+
<td> 6.66</td>
|
309
|
+
<td> 0.01</td>
|
310
|
+
<td> 6.64</td>
|
311
|
+
<td> 1/1</td>
|
312
|
+
<td><a href="#Object_find_primes_21277412">Object#find_primes</a></td>
|
313
|
+
</tr>
|
314
|
+
<tr class="method">
|
315
|
+
<td> 75.93%</td>
|
316
|
+
<td> 0.17%</td>
|
317
|
+
<td> 6.66</td>
|
318
|
+
<td> 0.01</td>
|
319
|
+
<td> 6.64</td>
|
320
|
+
<td> 1</td>
|
321
|
+
<td><a name="Array_select_21277412">Array#select</a></td>
|
322
|
+
</tr>
|
323
|
+
<tr>
|
324
|
+
<td>&nbsp;</td>
|
325
|
+
<td>&nbsp;</td>
|
326
|
+
<td> 6.64</td>
|
327
|
+
<td> 0.01</td>
|
328
|
+
<td> 6.63</td>
|
329
|
+
<td> 500/500</td>
|
330
|
+
<td><a href="#Object_is_prime_21277412">Object#is_prime</a></td>
|
331
|
+
</tr>
|
332
|
+
<tr class="break">
|
333
|
+
<td colspan="7"></td>
|
334
|
+
</tr>
|
335
|
+
<tr>
|
336
|
+
<td>&nbsp;</td>
|
337
|
+
<td>&nbsp;</td>
|
338
|
+
<td> 6.66</td>
|
339
|
+
<td> 0.00</td>
|
340
|
+
<td> 6.66</td>
|
341
|
+
<td> 1/1</td>
|
342
|
+
<td><a href="#Object_run_primes_21277412">Object#run_primes</a></td>
|
343
|
+
</tr>
|
344
|
+
<tr class="method">
|
345
|
+
<td> 75.93%</td>
|
346
|
+
<td> 0.00%</td>
|
347
|
+
<td> 6.66</td>
|
348
|
+
<td> 0.00</td>
|
349
|
+
<td> 6.66</td>
|
350
|
+
<td> 1</td>
|
351
|
+
<td><a name="Object_find_primes_21277412">Object#find_primes</a></td>
|
352
|
+
</tr>
|
353
|
+
<tr>
|
354
|
+
<td>&nbsp;</td>
|
355
|
+
<td>&nbsp;</td>
|
356
|
+
<td> 6.66</td>
|
357
|
+
<td> 0.01</td>
|
358
|
+
<td> 6.64</td>
|
359
|
+
<td> 1/1</td>
|
360
|
+
<td><a href="#Array_select_21277412">Array#select</a></td>
|
361
|
+
</tr>
|
362
|
+
<tr class="break">
|
363
|
+
<td colspan="7"></td>
|
364
|
+
</tr>
|
365
|
+
<tr>
|
366
|
+
<td>&nbsp;</td>
|
367
|
+
<td>&nbsp;</td>
|
368
|
+
<td> 6.64</td>
|
369
|
+
<td> 0.01</td>
|
370
|
+
<td> 6.63</td>
|
371
|
+
<td> 500/500</td>
|
372
|
+
<td><a href="#Array_select_21277412">Array#select</a></td>
|
373
|
+
</tr>
|
374
|
+
<tr class="method">
|
375
|
+
<td> 75.76%</td>
|
376
|
+
<td> 0.17%</td>
|
377
|
+
<td> 6.64</td>
|
378
|
+
<td> 0.01</td>
|
379
|
+
<td> 6.63</td>
|
380
|
+
<td> 500</td>
|
381
|
+
<td><a name="Object_is_prime_21277412">Object#is_prime</a></td>
|
382
|
+
</tr>
|
383
|
+
<tr>
|
384
|
+
<td>&nbsp;</td>
|
385
|
+
<td>&nbsp;</td>
|
386
|
+
<td> 0.00</td>
|
387
|
+
<td> 0.00</td>
|
388
|
+
<td> 0.00</td>
|
389
|
+
<td> 500/501</td>
|
390
|
+
<td><a href="#Fixnum_-_21277412">Fixnum#-</a></td>
|
391
|
+
</tr>
|
392
|
+
<tr>
|
393
|
+
<td>&nbsp;</td>
|
394
|
+
<td>&nbsp;</td>
|
395
|
+
<td> 6.63</td>
|
396
|
+
<td> 4.06</td>
|
397
|
+
<td> 2.56</td>
|
398
|
+
<td> 500/501</td>
|
399
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
400
|
+
</tr>
|
401
|
+
<tr class="break">
|
402
|
+
<td colspan="7"></td>
|
403
|
+
</tr>
|
404
|
+
<tr>
|
405
|
+
<td>&nbsp;</td>
|
406
|
+
<td>&nbsp;</td>
|
407
|
+
<td> 2.09</td>
|
408
|
+
<td> 0.00</td>
|
409
|
+
<td> 2.09</td>
|
410
|
+
<td> 1/1</td>
|
411
|
+
<td><a href="#Object_run_primes_21277412">Object#run_primes</a></td>
|
412
|
+
</tr>
|
413
|
+
<tr class="method">
|
414
|
+
<td> 23.89%</td>
|
415
|
+
<td> 0.00%</td>
|
416
|
+
<td> 2.09</td>
|
417
|
+
<td> 0.00</td>
|
418
|
+
<td> 2.09</td>
|
419
|
+
<td> 1</td>
|
420
|
+
<td><a name="Object_find_largest_21277412">Object#find_largest</a></td>
|
421
|
+
</tr>
|
422
|
+
<tr>
|
423
|
+
<td>&nbsp;</td>
|
424
|
+
<td>&nbsp;</td>
|
425
|
+
<td> 0.00</td>
|
426
|
+
<td> 0.00</td>
|
427
|
+
<td> 0.00</td>
|
428
|
+
<td> 1/501</td>
|
429
|
+
<td><a href="#Fixnum_-_21277412">Fixnum#-</a></td>
|
430
|
+
</tr>
|
431
|
+
<tr>
|
432
|
+
<td>&nbsp;</td>
|
433
|
+
<td>&nbsp;</td>
|
434
|
+
<td> 2.09</td>
|
435
|
+
<td> 0.00</td>
|
436
|
+
<td> 2.09</td>
|
437
|
+
<td> 1/501</td>
|
438
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
439
|
+
</tr>
|
440
|
+
<tr>
|
441
|
+
<td>&nbsp;</td>
|
442
|
+
<td>&nbsp;</td>
|
443
|
+
<td> 0.00</td>
|
444
|
+
<td> 0.00</td>
|
445
|
+
<td> 0.00</td>
|
446
|
+
<td> 1/1</td>
|
447
|
+
<td><a href="#Array_first_21277412">Array#first</a></td>
|
448
|
+
</tr>
|
449
|
+
<tr>
|
450
|
+
<td>&nbsp;</td>
|
451
|
+
<td>&nbsp;</td>
|
452
|
+
<td> 0.00</td>
|
453
|
+
<td> 0.00</td>
|
454
|
+
<td> 0.00</td>
|
455
|
+
<td> 1/1</td>
|
456
|
+
<td><a href="#Array_length_21277412">Array#length</a></td>
|
457
|
+
</tr>
|
458
|
+
<tr class="break">
|
459
|
+
<td colspan="7"></td>
|
460
|
+
</tr>
|
461
|
+
<tr>
|
462
|
+
<td>&nbsp;</td>
|
463
|
+
<td>&nbsp;</td>
|
464
|
+
<td> 2.09</td>
|
465
|
+
<td> 2.09</td>
|
466
|
+
<td> 0.00</td>
|
467
|
+
<td> 61/61</td>
|
468
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
469
|
+
</tr>
|
470
|
+
<tr class="method">
|
471
|
+
<td> 23.89%</td>
|
472
|
+
<td> 23.89%</td>
|
473
|
+
<td> 2.09</td>
|
474
|
+
<td> 2.09</td>
|
475
|
+
<td> 0.00</td>
|
476
|
+
<td> 61</td>
|
477
|
+
<td><a name="Kernel_sleep_21277412">Kernel.sleep</a></td>
|
478
|
+
</tr>
|
479
|
+
<tr class="break">
|
480
|
+
<td colspan="7"></td>
|
481
|
+
</tr>
|
482
|
+
<tr>
|
483
|
+
<td>&nbsp;</td>
|
484
|
+
<td>&nbsp;</td>
|
485
|
+
<td> 1.33</td>
|
486
|
+
<td> 1.33</td>
|
487
|
+
<td> 0.00</td>
|
488
|
+
<td> 250862/250862</td>
|
489
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
490
|
+
</tr>
|
491
|
+
<tr class="method">
|
492
|
+
<td> 15.12%</td>
|
493
|
+
<td> 15.12%</td>
|
494
|
+
<td> 1.33</td>
|
495
|
+
<td> 1.33</td>
|
496
|
+
<td> 0.00</td>
|
497
|
+
<td> 250862</td>
|
498
|
+
<td><a name="Fixnum_%_21277412">Fixnum#%</a></td>
|
499
|
+
</tr>
|
500
|
+
<tr class="break">
|
501
|
+
<td colspan="7"></td>
|
502
|
+
</tr>
|
503
|
+
<tr>
|
504
|
+
<td>&nbsp;</td>
|
505
|
+
<td>&nbsp;</td>
|
506
|
+
<td> 1.24</td>
|
507
|
+
<td> 1.24</td>
|
508
|
+
<td> 0.00</td>
|
509
|
+
<td> 250862/250862</td>
|
510
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
511
|
+
</tr>
|
512
|
+
<tr class="method">
|
513
|
+
<td> 14.13%</td>
|
514
|
+
<td> 14.13%</td>
|
515
|
+
<td> 1.24</td>
|
516
|
+
<td> 1.24</td>
|
517
|
+
<td> 0.00</td>
|
518
|
+
<td> 250862</td>
|
519
|
+
<td><a name="Fixnum____21277412">Fixnum#==</a></td>
|
520
|
+
</tr>
|
521
|
+
<tr class="break">
|
522
|
+
<td colspan="7"></td>
|
523
|
+
</tr>
|
524
|
+
<tr>
|
525
|
+
<td>&nbsp;</td>
|
526
|
+
<td>&nbsp;</td>
|
527
|
+
<td> 0.02</td>
|
528
|
+
<td> 0.00</td>
|
529
|
+
<td> 0.02</td>
|
530
|
+
<td> 1/1</td>
|
531
|
+
<td><a href="#Object_run_primes_21277412">Object#run_primes</a></td>
|
532
|
+
</tr>
|
533
|
+
<tr class="method">
|
534
|
+
<td> 0.18%</td>
|
535
|
+
<td> 0.00%</td>
|
536
|
+
<td> 0.02</td>
|
537
|
+
<td> 0.00</td>
|
538
|
+
<td> 0.02</td>
|
539
|
+
<td> 1</td>
|
540
|
+
<td><a name="Object_make_random_array_21277412">Object#make_random_array</a></td>
|
541
|
+
</tr>
|
542
|
+
<tr>
|
543
|
+
<td>&nbsp;</td>
|
544
|
+
<td>&nbsp;</td>
|
545
|
+
<td> 0.02</td>
|
546
|
+
<td> 0.02</td>
|
547
|
+
<td> 0.00</td>
|
548
|
+
<td> 1/1</td>
|
549
|
+
<td><a href="#Array_each_index_21277412">Array#each_index</a></td>
|
550
|
+
</tr>
|
551
|
+
<tr>
|
552
|
+
<td>&nbsp;</td>
|
553
|
+
<td>&nbsp;</td>
|
554
|
+
<td> 0.00</td>
|
555
|
+
<td> 0.00</td>
|
556
|
+
<td> 0.00</td>
|
557
|
+
<td> 1/1</td>
|
558
|
+
<td><a href="#Class_new_21277412">Class#new</a></td>
|
559
|
+
</tr>
|
560
|
+
<tr class="break">
|
561
|
+
<td colspan="7"></td>
|
562
|
+
</tr>
|
563
|
+
<tr>
|
564
|
+
<td>&nbsp;</td>
|
565
|
+
<td>&nbsp;</td>
|
566
|
+
<td> 0.02</td>
|
567
|
+
<td> 0.02</td>
|
568
|
+
<td> 0.00</td>
|
569
|
+
<td> 1/1</td>
|
570
|
+
<td><a href="#Object_make_random_array_21277412">Object#make_random_array</a></td>
|
571
|
+
</tr>
|
572
|
+
<tr class="method">
|
573
|
+
<td> 0.18%</td>
|
574
|
+
<td> 0.18%</td>
|
575
|
+
<td> 0.02</td>
|
576
|
+
<td> 0.02</td>
|
577
|
+
<td> 0.00</td>
|
578
|
+
<td> 1</td>
|
579
|
+
<td><a name="Array_each_index_21277412">Array#each_index</a></td>
|
580
|
+
</tr>
|
581
|
+
<tr>
|
582
|
+
<td>&nbsp;</td>
|
583
|
+
<td>&nbsp;</td>
|
584
|
+
<td> 0.00</td>
|
585
|
+
<td> 0.00</td>
|
586
|
+
<td> 0.00</td>
|
587
|
+
<td> 500/500</td>
|
588
|
+
<td><a href="#Kernel_rand_21277412">Kernel.rand</a></td>
|
589
|
+
</tr>
|
590
|
+
<tr>
|
591
|
+
<td>&nbsp;</td>
|
592
|
+
<td>&nbsp;</td>
|
593
|
+
<td> 0.00</td>
|
594
|
+
<td> 0.00</td>
|
595
|
+
<td> 0.00</td>
|
596
|
+
<td> 500/500</td>
|
597
|
+
<td><a href="#Array_[]__21277412">Array#[]=</a></td>
|
598
|
+
</tr>
|
599
|
+
<tr class="break">
|
600
|
+
<td colspan="7"></td>
|
601
|
+
</tr>
|
602
|
+
<tr>
|
603
|
+
<td>&nbsp;</td>
|
604
|
+
<td>&nbsp;</td>
|
605
|
+
<td> 0.00</td>
|
606
|
+
<td> 0.00</td>
|
607
|
+
<td> 0.00</td>
|
608
|
+
<td> 500/501</td>
|
609
|
+
<td><a href="#Object_is_prime_21277412">Object#is_prime</a></td>
|
610
|
+
</tr>
|
611
|
+
<tr>
|
612
|
+
<td>&nbsp;</td>
|
613
|
+
<td>&nbsp;</td>
|
614
|
+
<td> 0.00</td>
|
615
|
+
<td> 0.00</td>
|
616
|
+
<td> 0.00</td>
|
617
|
+
<td> 1/501</td>
|
618
|
+
<td><a href="#Object_find_largest_21277412">Object#find_largest</a></td>
|
619
|
+
</tr>
|
620
|
+
<tr class="method">
|
621
|
+
<td> 0.00%</td>
|
622
|
+
<td> 0.00%</td>
|
623
|
+
<td> 0.00</td>
|
624
|
+
<td> 0.00</td>
|
625
|
+
<td> 0.00</td>
|
626
|
+
<td> 501</td>
|
627
|
+
<td><a name="Fixnum_-_21277412">Fixnum#-</a></td>
|
628
|
+
</tr>
|
629
|
+
<tr class="break">
|
630
|
+
<td colspan="7"></td>
|
631
|
+
</tr>
|
632
|
+
<tr>
|
633
|
+
<td>&nbsp;</td>
|
634
|
+
<td>&nbsp;</td>
|
635
|
+
<td> 0.00</td>
|
636
|
+
<td> 0.00</td>
|
637
|
+
<td> 0.00</td>
|
638
|
+
<td> 1/1</td>
|
639
|
+
<td><a href="#Kernel_rand_21277412">Kernel.rand</a></td>
|
640
|
+
</tr>
|
641
|
+
<tr class="method">
|
642
|
+
<td> 0.00%</td>
|
643
|
+
<td> 0.00%</td>
|
644
|
+
<td> 0.00</td>
|
645
|
+
<td> 0.00</td>
|
646
|
+
<td> 0.00</td>
|
647
|
+
<td> 1</td>
|
648
|
+
<td><a name="Integer_to_int_21277412">Integer#to_int</a></td>
|
649
|
+
</tr>
|
650
|
+
<tr class="break">
|
651
|
+
<td colspan="7"></td>
|
652
|
+
</tr>
|
653
|
+
<tr>
|
654
|
+
<td>&nbsp;</td>
|
655
|
+
<td>&nbsp;</td>
|
656
|
+
<td> 0.00</td>
|
657
|
+
<td> 0.00</td>
|
658
|
+
<td> 0.00</td>
|
659
|
+
<td> 1/1</td>
|
660
|
+
<td><a href="#Object_find_largest_21277412">Object#find_largest</a></td>
|
661
|
+
</tr>
|
662
|
+
<tr class="method">
|
663
|
+
<td> 0.00%</td>
|
664
|
+
<td> 0.00%</td>
|
665
|
+
<td> 0.00</td>
|
666
|
+
<td> 0.00</td>
|
667
|
+
<td> 0.00</td>
|
668
|
+
<td> 1</td>
|
669
|
+
<td><a name="Array_first_21277412">Array#first</a></td>
|
670
|
+
</tr>
|
671
|
+
<tr class="break">
|
672
|
+
<td colspan="7"></td>
|
673
|
+
</tr>
|
674
|
+
<tr>
|
675
|
+
<td>&nbsp;</td>
|
676
|
+
<td>&nbsp;</td>
|
677
|
+
<td> 0.00</td>
|
678
|
+
<td> 0.00</td>
|
679
|
+
<td> 0.00</td>
|
680
|
+
<td> 1/1</td>
|
681
|
+
<td><a href="#Class_new_21277412">Class#new</a></td>
|
682
|
+
</tr>
|
683
|
+
<tr class="method">
|
684
|
+
<td> 0.00%</td>
|
685
|
+
<td> 0.00%</td>
|
686
|
+
<td> 0.00</td>
|
687
|
+
<td> 0.00</td>
|
688
|
+
<td> 0.00</td>
|
689
|
+
<td> 1</td>
|
690
|
+
<td><a name="Array_initialize_21277412">Array#initialize</a></td>
|
691
|
+
</tr>
|
692
|
+
<tr class="break">
|
693
|
+
<td colspan="7"></td>
|
694
|
+
</tr>
|
695
|
+
<tr>
|
696
|
+
<td>&nbsp;</td>
|
697
|
+
<td>&nbsp;</td>
|
698
|
+
<td> 0.00</td>
|
699
|
+
<td> 0.00</td>
|
700
|
+
<td> 0.00</td>
|
701
|
+
<td> 1/1</td>
|
702
|
+
<td><a href="#Object_find_largest_21277412">Object#find_largest</a></td>
|
703
|
+
</tr>
|
704
|
+
<tr class="method">
|
705
|
+
<td> 0.00%</td>
|
706
|
+
<td> 0.00%</td>
|
707
|
+
<td> 0.00</td>
|
708
|
+
<td> 0.00</td>
|
709
|
+
<td> 0.00</td>
|
710
|
+
<td> 1</td>
|
711
|
+
<td><a name="Array_length_21277412">Array#length</a></td>
|
712
|
+
</tr>
|
713
|
+
<tr class="break">
|
714
|
+
<td colspan="7"></td>
|
715
|
+
</tr>
|
716
|
+
<tr>
|
717
|
+
<td>&nbsp;</td>
|
718
|
+
<td>&nbsp;</td>
|
719
|
+
<td> 0.00</td>
|
720
|
+
<td> 0.00</td>
|
721
|
+
<td> 0.00</td>
|
722
|
+
<td> 1/1</td>
|
723
|
+
<td><a href="#Object_make_random_array_21277412">Object#make_random_array</a></td>
|
724
|
+
</tr>
|
725
|
+
<tr class="method">
|
726
|
+
<td> 0.00%</td>
|
727
|
+
<td> 0.00%</td>
|
728
|
+
<td> 0.00</td>
|
729
|
+
<td> 0.00</td>
|
730
|
+
<td> 0.00</td>
|
731
|
+
<td> 1</td>
|
732
|
+
<td><a name="Class_new_21277412">Class#new</a></td>
|
733
|
+
</tr>
|
734
|
+
<tr>
|
735
|
+
<td>&nbsp;</td>
|
736
|
+
<td>&nbsp;</td>
|
737
|
+
<td> 0.00</td>
|
738
|
+
<td> 0.00</td>
|
739
|
+
<td> 0.00</td>
|
740
|
+
<td> 1/1</td>
|
741
|
+
<td><a href="#Array_initialize_21277412">Array#initialize</a></td>
|
742
|
+
</tr>
|
743
|
+
<tr class="break">
|
744
|
+
<td colspan="7"></td>
|
745
|
+
</tr>
|
746
|
+
<tr>
|
747
|
+
<td>&nbsp;</td>
|
748
|
+
<td>&nbsp;</td>
|
749
|
+
<td> 0.00</td>
|
750
|
+
<td> 0.00</td>
|
751
|
+
<td> 0.00</td>
|
752
|
+
<td> 61/61</td>
|
753
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
754
|
+
</tr>
|
755
|
+
<tr class="method">
|
756
|
+
<td> 0.00%</td>
|
757
|
+
<td> 0.00%</td>
|
758
|
+
<td> 0.00</td>
|
759
|
+
<td> 0.00</td>
|
760
|
+
<td> 0.00</td>
|
761
|
+
<td> 61</td>
|
762
|
+
<td><a name="Fixnum_>_21277412">Fixnum#_</a></td>
|
763
|
+
</tr>
|
764
|
+
<tr class="break">
|
765
|
+
<td colspan="7"></td>
|
766
|
+
</tr>
|
767
|
+
<tr>
|
768
|
+
<td>&nbsp;</td>
|
769
|
+
<td>&nbsp;</td>
|
770
|
+
<td> 0.00</td>
|
771
|
+
<td> 0.00</td>
|
772
|
+
<td> 0.00</td>
|
773
|
+
<td> 61/61</td>
|
774
|
+
<td><a href="#Integer_upto_21277412">Integer#upto</a></td>
|
775
|
+
</tr>
|
776
|
+
<tr class="method">
|
777
|
+
<td> 0.00%</td>
|
778
|
+
<td> 0.00%</td>
|
779
|
+
<td> 0.00</td>
|
780
|
+
<td> 0.00</td>
|
781
|
+
<td> 0.00</td>
|
782
|
+
<td> 61</td>
|
783
|
+
<td><a name="Array_[]_21277412">Array#[]</a></td>
|
784
|
+
</tr>
|
785
|
+
<tr class="break">
|
786
|
+
<td colspan="7"></td>
|
787
|
+
</tr>
|
788
|
+
<tr>
|
789
|
+
<td>&nbsp;</td>
|
790
|
+
<td>&nbsp;</td>
|
791
|
+
<td> 0.00</td>
|
792
|
+
<td> 0.00</td>
|
793
|
+
<td> 0.00</td>
|
794
|
+
<td> 500/500</td>
|
795
|
+
<td><a href="#Array_each_index_21277412">Array#each_index</a></td>
|
796
|
+
</tr>
|
797
|
+
<tr class="method">
|
798
|
+
<td> 0.00%</td>
|
799
|
+
<td> 0.00%</td>
|
800
|
+
<td> 0.00</td>
|
801
|
+
<td> 0.00</td>
|
802
|
+
<td> 0.00</td>
|
803
|
+
<td> 500</td>
|
804
|
+
<td><a name="Array_[]__21277412">Array#[]=</a></td>
|
805
|
+
</tr>
|
806
|
+
<tr class="break">
|
807
|
+
<td colspan="7"></td>
|
808
|
+
</tr>
|
809
|
+
<tr>
|
810
|
+
<td>&nbsp;</td>
|
811
|
+
<td>&nbsp;</td>
|
812
|
+
<td> 0.00</td>
|
813
|
+
<td> 0.00</td>
|
814
|
+
<td> 0.00</td>
|
815
|
+
<td> 500/500</td>
|
816
|
+
<td><a href="#Array_each_index_21277412">Array#each_index</a></td>
|
817
|
+
</tr>
|
818
|
+
<tr class="method">
|
819
|
+
<td> 0.00%</td>
|
820
|
+
<td> 0.00%</td>
|
821
|
+
<td> 0.00</td>
|
822
|
+
<td> 0.00</td>
|
823
|
+
<td> 0.00</td>
|
824
|
+
<td> 500</td>
|
825
|
+
<td><a name="Kernel_rand_21277412">Kernel.rand</a></td>
|
826
|
+
</tr>
|
827
|
+
<tr>
|
828
|
+
<td>&nbsp;</td>
|
829
|
+
<td>&nbsp;</td>
|
830
|
+
<td> 0.00</td>
|
831
|
+
<td> 0.00</td>
|
832
|
+
<td> 0.00</td>
|
833
|
+
<td> 1/1</td>
|
834
|
+
<td><a href="#Integer_to_int_21277412">Integer#to_int</a></td>
|
835
|
+
</tr>
|
836
|
+
<tr class="break">
|
837
|
+
<td colspan="7"></td>
|
838
|
+
</tr></pre>
|
839
|
+
|
840
|
+
<p></table> </body> </html></p>
|
841
|
+
</main>
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
<footer id="validator-badges" role="contentinfo">
|
846
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
847
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
848
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
849
|
+
</footer>
|
850
|
+
|