acunote-ruby-prof 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +240 -0
- data/LICENSE +23 -0
- data/README.rdoc +439 -0
- data/Rakefile +148 -0
- data/bin/ruby-prof +236 -0
- data/examples/empty.png +0 -0
- data/examples/flat.txt +55 -0
- data/examples/graph.dot +106 -0
- data/examples/graph.html +823 -0
- data/examples/graph.png +0 -0
- data/examples/graph.txt +170 -0
- data/examples/minus.png +0 -0
- data/examples/multi.flat.txt +23 -0
- data/examples/multi.graph.html +906 -0
- data/examples/multi.grind.dat +194 -0
- data/examples/multi.stack.html +573 -0
- data/examples/plus.png +0 -0
- data/examples/stack.html +573 -0
- data/ext/ruby_prof/extconf.rb +43 -0
- data/ext/ruby_prof/measure_allocations.h +58 -0
- data/ext/ruby_prof/measure_cpu_time.h +152 -0
- data/ext/ruby_prof/measure_gc_runs.h +76 -0
- data/ext/ruby_prof/measure_gc_time.h +57 -0
- data/ext/ruby_prof/measure_memory.h +101 -0
- data/ext/ruby_prof/measure_process_time.h +52 -0
- data/ext/ruby_prof/measure_wall_time.h +53 -0
- data/ext/ruby_prof/mingw/Rakefile +23 -0
- data/ext/ruby_prof/mingw/build.rake +38 -0
- data/ext/ruby_prof/ruby_prof.c +1834 -0
- data/ext/ruby_prof/ruby_prof.h +190 -0
- data/ext/ruby_prof/version.h +4 -0
- data/lib/ruby-prof.rb +62 -0
- data/lib/ruby-prof/abstract_printer.rb +41 -0
- data/lib/ruby-prof/aggregate_call_info.rb +68 -0
- data/lib/ruby-prof/call_info.rb +112 -0
- data/lib/ruby-prof/call_stack_printer.rb +751 -0
- data/lib/ruby-prof/call_tree_printer.rb +133 -0
- data/lib/ruby-prof/dot_printer.rb +153 -0
- data/lib/ruby-prof/empty.png +0 -0
- data/lib/ruby-prof/flat_printer.rb +78 -0
- data/lib/ruby-prof/flat_printer_with_line_numbers.rb +72 -0
- data/lib/ruby-prof/graph_html_printer.rb +278 -0
- data/lib/ruby-prof/graph_printer.rb +245 -0
- data/lib/ruby-prof/method_info.rb +131 -0
- data/lib/ruby-prof/minus.png +0 -0
- data/lib/ruby-prof/multi_printer.rb +54 -0
- data/lib/ruby-prof/plus.png +0 -0
- data/lib/ruby-prof/rack.rb +30 -0
- data/lib/ruby-prof/result.rb +70 -0
- data/lib/ruby-prof/symbol_to_proc.rb +8 -0
- data/lib/ruby-prof/task.rb +146 -0
- data/lib/ruby-prof/test.rb +148 -0
- data/lib/unprof.rb +8 -0
- data/rails/environment/profile.rb +24 -0
- data/rails/example/example_test.rb +9 -0
- data/rails/profile_test_helper.rb +21 -0
- data/test/aggregate_test.rb +136 -0
- data/test/basic_test.rb +290 -0
- data/test/current_failures_windows +8 -0
- data/test/do_nothing.rb +0 -0
- data/test/duplicate_names_test.rb +32 -0
- data/test/enumerable_test.rb +16 -0
- data/test/exceptions_test.rb +15 -0
- data/test/exclude_threads_test.rb +54 -0
- data/test/exec_test.rb +14 -0
- data/test/line_number_test.rb +73 -0
- data/test/measurement_test.rb +122 -0
- data/test/method_elimination_test.rb +74 -0
- data/test/module_test.rb +44 -0
- data/test/multi_printer_test.rb +81 -0
- data/test/no_method_class_test.rb +13 -0
- data/test/prime.rb +55 -0
- data/test/prime_test.rb +13 -0
- data/test/printers_test.rb +164 -0
- data/test/recursive_test.rb +236 -0
- data/test/ruby-prof-bin +20 -0
- data/test/singleton_test.rb +38 -0
- data/test/stack_printer_test.rb +74 -0
- data/test/stack_test.rb +138 -0
- data/test/start_stop_test.rb +112 -0
- data/test/test_suite.rb +32 -0
- data/test/thread_test.rb +173 -0
- data/test/unique_call_path_test.rb +225 -0
- metadata +185 -0
data/examples/graph.png
ADDED
Binary file
|
data/examples/graph.txt
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
= Graph Profiles
|
2
|
+
|
3
|
+
Graph profiles show how long each method runs, which methods call it
|
4
|
+
and which methods it calls.
|
5
|
+
|
6
|
+
As an example, here is the output from running printers_test.rb:
|
7
|
+
|
8
|
+
|
9
|
+
Thread ID: 21277412
|
10
|
+
%total %self total self children calls Name
|
11
|
+
--------------------------------------------------------------------------------
|
12
|
+
100.00% 0.00% 8.77 0.00 8.77 1 #toplevel
|
13
|
+
8.77 0.00 8.77 1/1 Object#run_primes
|
14
|
+
--------------------------------------------------------------------------------
|
15
|
+
8.77 0.00 8.77 1/1 #toplevel
|
16
|
+
100.00% 0.00% 8.77 0.00 8.77 1 Object#run_primes
|
17
|
+
0.02 0.00 0.02 1/1 Object#make_random_array
|
18
|
+
2.09 0.00 2.09 1/1 Object#find_largest
|
19
|
+
6.66 0.00 6.66 1/1 Object#find_primes
|
20
|
+
--------------------------------------------------------------------------------
|
21
|
+
6.63 4.06 2.56 500/501 Object#is_prime
|
22
|
+
2.09 0.00 2.09 1/501 Object#find_largest
|
23
|
+
99.48% 46.34% 8.72 4.06 4.66 501 Integer#upto
|
24
|
+
0.00 0.00 0.00 61/61 Array#[]
|
25
|
+
0.00 0.00 0.00 61/61 Fixnum#>
|
26
|
+
2.09 2.09 0.00 61/61 Kernel.sleep
|
27
|
+
1.24 1.24 0.00 250862/250862 Fixnum#==
|
28
|
+
1.33 1.33 0.00 250862/250862 Fixnum#%
|
29
|
+
--------------------------------------------------------------------------------
|
30
|
+
6.66 0.01 6.64 1/1 Object#find_primes
|
31
|
+
75.93% 0.17% 6.66 0.01 6.64 1 Array#select
|
32
|
+
6.64 0.01 6.63 500/500 Object#is_prime
|
33
|
+
--------------------------------------------------------------------------------
|
34
|
+
6.66 0.00 6.66 1/1 Object#run_primes
|
35
|
+
75.93% 0.00% 6.66 0.00 6.66 1 Object#find_primes
|
36
|
+
6.66 0.01 6.64 1/1 Array#select
|
37
|
+
--------------------------------------------------------------------------------
|
38
|
+
6.64 0.01 6.63 500/500 Array#select
|
39
|
+
75.76% 0.17% 6.64 0.01 6.63 500 Object#is_prime
|
40
|
+
0.00 0.00 0.00 500/501 Fixnum#-
|
41
|
+
6.63 4.06 2.56 500/501 Integer#upto
|
42
|
+
--------------------------------------------------------------------------------
|
43
|
+
2.09 0.00 2.09 1/1 Object#run_primes
|
44
|
+
23.89% 0.00% 2.09 0.00 2.09 1 Object#find_largest
|
45
|
+
0.00 0.00 0.00 1/501 Fixnum#-
|
46
|
+
2.09 0.00 2.09 1/501 Integer#upto
|
47
|
+
0.00 0.00 0.00 1/1 Array#first
|
48
|
+
0.00 0.00 0.00 1/1 Array#length
|
49
|
+
--------------------------------------------------------------------------------
|
50
|
+
2.09 2.09 0.00 61/61 Integer#upto
|
51
|
+
23.89% 23.89% 2.09 2.09 0.00 61 Kernel.sleep
|
52
|
+
--------------------------------------------------------------------------------
|
53
|
+
1.33 1.33 0.00 250862/250862 Integer#upto
|
54
|
+
15.12% 15.12% 1.33 1.33 0.00 250862 Fixnum#%
|
55
|
+
--------------------------------------------------------------------------------
|
56
|
+
1.24 1.24 0.00 250862/250862 Integer#upto
|
57
|
+
14.13% 14.13% 1.24 1.24 0.00 250862 Fixnum#==
|
58
|
+
--------------------------------------------------------------------------------
|
59
|
+
0.02 0.00 0.02 1/1 Object#run_primes
|
60
|
+
0.18% 0.00% 0.02 0.00 0.02 1 Object#make_random_array
|
61
|
+
0.02 0.02 0.00 1/1 Array#each_index
|
62
|
+
0.00 0.00 0.00 1/1 Class#new
|
63
|
+
--------------------------------------------------------------------------------
|
64
|
+
0.02 0.02 0.00 1/1 Object#make_random_array
|
65
|
+
0.18% 0.18% 0.02 0.02 0.00 1 Array#each_index
|
66
|
+
0.00 0.00 0.00 500/500 Kernel.rand
|
67
|
+
0.00 0.00 0.00 500/500 Array#[]=
|
68
|
+
--------------------------------------------------------------------------------
|
69
|
+
0.00 0.00 0.00 500/501 Object#is_prime
|
70
|
+
0.00 0.00 0.00 1/501 Object#find_largest
|
71
|
+
0.00% 0.00% 0.00 0.00 0.00 501 Fixnum#-
|
72
|
+
--------------------------------------------------------------------------------
|
73
|
+
0.00 0.00 0.00 1/1 Kernel.rand
|
74
|
+
0.00% 0.00% 0.00 0.00 0.00 1 Integer#to_int
|
75
|
+
--------------------------------------------------------------------------------
|
76
|
+
0.00 0.00 0.00 1/1 Object#find_largest
|
77
|
+
0.00% 0.00% 0.00 0.00 0.00 1 Array#first
|
78
|
+
--------------------------------------------------------------------------------
|
79
|
+
0.00 0.00 0.00 1/1 Class#new
|
80
|
+
0.00% 0.00% 0.00 0.00 0.00 1 Array#initialize
|
81
|
+
--------------------------------------------------------------------------------
|
82
|
+
0.00 0.00 0.00 1/1 Object#find_largest
|
83
|
+
0.00% 0.00% 0.00 0.00 0.00 1 Array#length
|
84
|
+
--------------------------------------------------------------------------------
|
85
|
+
0.00 0.00 0.00 1/1 Object#make_random_array
|
86
|
+
0.00% 0.00% 0.00 0.00 0.00 1 Class#new
|
87
|
+
0.00 0.00 0.00 1/1 Array#initialize
|
88
|
+
--------------------------------------------------------------------------------
|
89
|
+
0.00 0.00 0.00 61/61 Integer#upto
|
90
|
+
0.00% 0.00% 0.00 0.00 0.00 61 Fixnum#>
|
91
|
+
--------------------------------------------------------------------------------
|
92
|
+
0.00 0.00 0.00 61/61 Integer#upto
|
93
|
+
0.00% 0.00% 0.00 0.00 0.00 61 Array#[]
|
94
|
+
--------------------------------------------------------------------------------
|
95
|
+
0.00 0.00 0.00 500/500 Array#each_index
|
96
|
+
0.00% 0.00% 0.00 0.00 0.00 500 Array#[]=
|
97
|
+
--------------------------------------------------------------------------------
|
98
|
+
0.00 0.00 0.00 500/500 Array#each_index
|
99
|
+
0.00% 0.00% 0.00 0.00 0.00 500 Kernel.rand
|
100
|
+
0.00 0.00 0.00 1/1 Integer#to_int
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
== Overview
|
105
|
+
Dashed lines divide the report into entries, with one entry
|
106
|
+
per method. Entries are sorted by total time which is the
|
107
|
+
time spent in the method plus its children.
|
108
|
+
|
109
|
+
Each entry has a primary line demarked by values in the
|
110
|
+
%total and %self columns. The primary line represents
|
111
|
+
the method being profiled. Lines above it are the methods
|
112
|
+
that called this method (parents) while the lines below it
|
113
|
+
are the methods it called (children).
|
114
|
+
|
115
|
+
All values are in seconds. For the primary line, the columns represent:
|
116
|
+
|
117
|
+
%total - The percentage of time spent in this method and its children
|
118
|
+
%self - The percentage of time spent in this method
|
119
|
+
total - The time spent in this method and its children.
|
120
|
+
self - The time spent in this method.
|
121
|
+
children - The time spent in this method's children.
|
122
|
+
calls - The number of times this method was called.
|
123
|
+
name - The name of the method.
|
124
|
+
|
125
|
+
The interpretation of method names is:
|
126
|
+
* #toplevel - The root method that calls all other methods
|
127
|
+
* MyObject#test - An instance method "test" of the class "MyObject"
|
128
|
+
* <Object:MyObject>#test - The <> characters indicate a singleton method on a singleton class.
|
129
|
+
|
130
|
+
For example, we see that 99.48% of the time was spent in Integer#upto and its children.
|
131
|
+
Of that time, 4.06 seconds was spent in Integer#upto itself and 4.66 in its children.
|
132
|
+
Overall, Integer#upto was called 501 times.
|
133
|
+
|
134
|
+
== Parents
|
135
|
+
In each entry, the lines above the primary line are the methods that
|
136
|
+
called the current method. If the current method is a root method then
|
137
|
+
no parents are shown.
|
138
|
+
|
139
|
+
|
140
|
+
For parent lines, the columns represent:
|
141
|
+
|
142
|
+
total - The time spent in the current method and it children on behalf of the parent method.
|
143
|
+
self - The time spent in this method on behalf of the parent method.
|
144
|
+
children - The time spent in this method's children on behalf of the parent.
|
145
|
+
calls - The number of times the parent method called this child
|
146
|
+
|
147
|
+
Looking at Integer#upto again, we see that it was called 500 times from Object#is_prime
|
148
|
+
and 1 time from find_largest. Of the 8.72 total seconds spent in Integer#upto, 6.63
|
149
|
+
were done for Object#is_prime and 2.09 for Object#find_largest.
|
150
|
+
|
151
|
+
|
152
|
+
== Children
|
153
|
+
In each entry, the lines below the primary line are the methods that
|
154
|
+
the current method called. If the current method is a leaf method then
|
155
|
+
no children are shown.
|
156
|
+
|
157
|
+
For children lines, the columns represent:
|
158
|
+
|
159
|
+
total - The time spent in the child, and its children, on behalf of the current method
|
160
|
+
self - The time spent in the child on behalf of the current method.
|
161
|
+
children - The time spent in the child's children (ie, granchildren) in behalf of the current method
|
162
|
+
calls - The number of times the child method was called by the current method.
|
163
|
+
|
164
|
+
Taking our example of Integer#upto, we see that it called five other methods - Array#[],
|
165
|
+
Fixnum#>, Kernel.sleep, Fixnum#= and Fixnum#%. Looking at Kernel.sleep, we see that
|
166
|
+
its spent 2.09 seconds working for Integer#upto and its children spent 0 time working for
|
167
|
+
Integer#upto. To see the overall time Kernel.sleep took we would have to look up its entry
|
168
|
+
in the graph table.
|
169
|
+
|
170
|
+
|
data/examples/minus.png
ADDED
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Thread ID: 2148387240
|
2
|
+
Total: 1.412370
|
3
|
+
|
4
|
+
%self total self wait child calls name
|
5
|
+
71.15 1.37 1.00 0.00 0.37 20000 Integer#upto
|
6
|
+
14.16 0.20 0.20 0.00 0.00 1544726 Fixnum#%
|
7
|
+
11.93 0.17 0.17 0.00 0.00 1544726 Fixnum#==
|
8
|
+
0.98 1.39 0.01 0.00 1.38 20000 Object#is_prime
|
9
|
+
0.62 0.01 0.01 0.00 0.01 2 Array#each_index
|
10
|
+
0.58 1.40 0.01 0.00 1.39 2 Array#select
|
11
|
+
0.23 0.00 0.00 0.00 0.00 20000 Kernel#rand
|
12
|
+
0.19 0.00 0.00 0.00 0.00 20000 Array#[]=
|
13
|
+
0.17 0.00 0.00 0.00 0.00 20000 Fixnum#-
|
14
|
+
0.01 0.00 0.00 0.00 0.00 2 Array#initialize
|
15
|
+
0.00 0.01 0.00 0.00 0.01 2 Object#make_random_array
|
16
|
+
0.00 1.41 0.00 0.00 1.41 2 Object#run_primes
|
17
|
+
0.00 0.00 0.00 0.00 0.00 2 Class#new
|
18
|
+
0.00 1.41 0.00 0.00 1.41 1 PrintersTest#setup
|
19
|
+
0.00 0.71 0.00 0.00 0.71 1 PrintersTest#go
|
20
|
+
0.00 1.40 0.00 0.00 1.40 2 Object#find_primes
|
21
|
+
0.00 0.00 0.00 0.00 0.00 2 <Class::Array>#allocate
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,906 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<style media="all" type="text/css">
|
6
|
+
table {
|
7
|
+
border-collapse: collapse;
|
8
|
+
border: 1px solid #CCC;
|
9
|
+
font-family: Verdana, Arial, Helvetica, sans-serif;
|
10
|
+
font-size: 9pt;
|
11
|
+
line-height: normal;
|
12
|
+
width: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
th {
|
16
|
+
text-align: center;
|
17
|
+
border-top: 1px solid #FB7A31;
|
18
|
+
border-bottom: 1px solid #FB7A31;
|
19
|
+
background: #FFC;
|
20
|
+
padding: 0.3em;
|
21
|
+
border-left: 1px solid silver;
|
22
|
+
}
|
23
|
+
|
24
|
+
tr.break td {
|
25
|
+
border: 0;
|
26
|
+
border-top: 1px solid #FB7A31;
|
27
|
+
padding: 0;
|
28
|
+
margin: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
tr.method td {
|
32
|
+
font-weight: bold;
|
33
|
+
}
|
34
|
+
|
35
|
+
td {
|
36
|
+
padding: 0.3em;
|
37
|
+
}
|
38
|
+
|
39
|
+
td:first-child {
|
40
|
+
width: 190px;
|
41
|
+
}
|
42
|
+
|
43
|
+
td {
|
44
|
+
border-left: 1px solid #CCC;
|
45
|
+
text-align: center;
|
46
|
+
}
|
47
|
+
|
48
|
+
.method_name {
|
49
|
+
text-align: left;
|
50
|
+
}
|
51
|
+
</style>
|
52
|
+
</head>
|
53
|
+
<body>
|
54
|
+
<h1>Profile Report</h1>
|
55
|
+
<!-- Threads Table -->
|
56
|
+
<table>
|
57
|
+
<tr>
|
58
|
+
<th>Thread ID</th>
|
59
|
+
<th>Total Time</th>
|
60
|
+
</tr>
|
61
|
+
|
62
|
+
<tr>
|
63
|
+
<td><a href="#2148387240">2148387240</a></td>
|
64
|
+
<td>1.41237</td>
|
65
|
+
</tr>
|
66
|
+
|
67
|
+
</table>
|
68
|
+
|
69
|
+
<!-- Methods Tables -->
|
70
|
+
|
71
|
+
<h2><a name="2148387240">Thread 2148387240</a></h2>
|
72
|
+
|
73
|
+
<table>
|
74
|
+
<tr>
|
75
|
+
<th> %Total</th>
|
76
|
+
<th> %Self</th>
|
77
|
+
<th> Total</th>
|
78
|
+
<th> Self</th>
|
79
|
+
<th> Wait</th>
|
80
|
+
<th> Child</th>
|
81
|
+
<th> Calls</th>
|
82
|
+
<th class="method_name">Name</th>
|
83
|
+
<th>Line</th>
|
84
|
+
</tr>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<!-- Parents -->
|
89
|
+
|
90
|
+
|
91
|
+
<tr class="method">
|
92
|
+
<td> 100.00%</td>
|
93
|
+
<td> 0.00%</td>
|
94
|
+
<td> 1.41</td>
|
95
|
+
<td> 0.00</td>
|
96
|
+
<td> 0.00</td>
|
97
|
+
<td> 1.41</td>
|
98
|
+
<td> 1</td>
|
99
|
+
<td class="method_name"><a name="PrintersTest_setup_2148387240">PrintersTest#setup</a></td>
|
100
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=16" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:16">16</a></td>
|
101
|
+
</tr>
|
102
|
+
|
103
|
+
<!-- Children -->
|
104
|
+
|
105
|
+
|
106
|
+
<tr>
|
107
|
+
<td> </td>
|
108
|
+
<td> </td>
|
109
|
+
<td> 0.71</td>
|
110
|
+
<td> 0.00</td>
|
111
|
+
<td> 0.00</td>
|
112
|
+
<td> 0.71</td>
|
113
|
+
|
114
|
+
<td> 1/1</td>
|
115
|
+
<td class="method_name"><a href="#PrintersTest_go_2148387240">PrintersTest#go</a></td>
|
116
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=17" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:17">17</a></td>
|
117
|
+
</tr>
|
118
|
+
|
119
|
+
|
120
|
+
<tr>
|
121
|
+
<td> </td>
|
122
|
+
<td> </td>
|
123
|
+
<td> 0.70</td>
|
124
|
+
<td> 0.00</td>
|
125
|
+
<td> 0.00</td>
|
126
|
+
<td> 0.70</td>
|
127
|
+
|
128
|
+
<td> 1/2</td>
|
129
|
+
<td class="method_name"><a href="#Object_run_primes_2148387240">Object#run_primes</a></td>
|
130
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=16" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:16">16</a></td>
|
131
|
+
</tr>
|
132
|
+
|
133
|
+
<!-- Create divider row -->
|
134
|
+
<tr class="break"><td colspan="9"></td></tr>
|
135
|
+
|
136
|
+
|
137
|
+
<!-- Parents -->
|
138
|
+
|
139
|
+
<tr>
|
140
|
+
<td> </td>
|
141
|
+
<td> </td>
|
142
|
+
<td> 0.70</td>
|
143
|
+
<td> 0.00</td>
|
144
|
+
<td> 0.00</td>
|
145
|
+
<td> 0.70</td>
|
146
|
+
|
147
|
+
<td> 1/2</td>
|
148
|
+
<td class="method_name"><a href="#PrintersTest_setup_2148387240">PrintersTest#setup</a></td>
|
149
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=16" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:16">16</a></td>
|
150
|
+
</tr>
|
151
|
+
|
152
|
+
<tr>
|
153
|
+
<td> </td>
|
154
|
+
<td> </td>
|
155
|
+
<td> 0.71</td>
|
156
|
+
<td> 0.00</td>
|
157
|
+
<td> 0.00</td>
|
158
|
+
<td> 0.71</td>
|
159
|
+
|
160
|
+
<td> 1/2</td>
|
161
|
+
<td class="method_name"><a href="#PrintersTest_go_2148387240">PrintersTest#go</a></td>
|
162
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=10" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:10">10</a></td>
|
163
|
+
</tr>
|
164
|
+
|
165
|
+
|
166
|
+
<tr class="method">
|
167
|
+
<td> 100.00%</td>
|
168
|
+
<td> 0.00%</td>
|
169
|
+
<td> 1.41</td>
|
170
|
+
<td> 0.00</td>
|
171
|
+
<td> 0.00</td>
|
172
|
+
<td> 1.41</td>
|
173
|
+
<td> 2</td>
|
174
|
+
<td class="method_name"><a name="Object_run_primes_2148387240">Object#run_primes</a></td>
|
175
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=46" title="/Users/skaes/src/ruby-prof/test/prime.rb:46">46</a></td>
|
176
|
+
</tr>
|
177
|
+
|
178
|
+
<!-- Children -->
|
179
|
+
|
180
|
+
|
181
|
+
<tr>
|
182
|
+
<td> </td>
|
183
|
+
<td> </td>
|
184
|
+
<td> 1.40</td>
|
185
|
+
<td> 0.00</td>
|
186
|
+
<td> 0.00</td>
|
187
|
+
<td> 1.40</td>
|
188
|
+
|
189
|
+
<td> 2/2</td>
|
190
|
+
<td class="method_name"><a href="#Object_find_primes_2148387240">Object#find_primes</a></td>
|
191
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=51" title="/Users/skaes/src/ruby-prof/test/prime.rb:51">51</a></td>
|
192
|
+
</tr>
|
193
|
+
|
194
|
+
|
195
|
+
<tr>
|
196
|
+
<td> </td>
|
197
|
+
<td> </td>
|
198
|
+
<td> 0.01</td>
|
199
|
+
<td> 0.00</td>
|
200
|
+
<td> 0.00</td>
|
201
|
+
<td> 0.01</td>
|
202
|
+
|
203
|
+
<td> 2/2</td>
|
204
|
+
<td class="method_name"><a href="#Object_make_random_array_2148387240">Object#make_random_array</a></td>
|
205
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=48" title="/Users/skaes/src/ruby-prof/test/prime.rb:48">48</a></td>
|
206
|
+
</tr>
|
207
|
+
|
208
|
+
<!-- Create divider row -->
|
209
|
+
<tr class="break"><td colspan="9"></td></tr>
|
210
|
+
|
211
|
+
|
212
|
+
<!-- Parents -->
|
213
|
+
|
214
|
+
<tr>
|
215
|
+
<td> </td>
|
216
|
+
<td> </td>
|
217
|
+
<td> 1.40</td>
|
218
|
+
<td> 0.00</td>
|
219
|
+
<td> 0.00</td>
|
220
|
+
<td> 1.40</td>
|
221
|
+
|
222
|
+
<td> 2/2</td>
|
223
|
+
<td class="method_name"><a href="#Object_run_primes_2148387240">Object#run_primes</a></td>
|
224
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=51" title="/Users/skaes/src/ruby-prof/test/prime.rb:51">51</a></td>
|
225
|
+
</tr>
|
226
|
+
|
227
|
+
|
228
|
+
<tr class="method">
|
229
|
+
<td> 98.95%</td>
|
230
|
+
<td> 0.00%</td>
|
231
|
+
<td> 1.40</td>
|
232
|
+
<td> 0.00</td>
|
233
|
+
<td> 0.00</td>
|
234
|
+
<td> 1.40</td>
|
235
|
+
<td> 2</td>
|
236
|
+
<td class="method_name"><a name="Object_find_primes_2148387240">Object#find_primes</a></td>
|
237
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=24" title="/Users/skaes/src/ruby-prof/test/prime.rb:24">24</a></td>
|
238
|
+
</tr>
|
239
|
+
|
240
|
+
<!-- Children -->
|
241
|
+
|
242
|
+
|
243
|
+
<tr>
|
244
|
+
<td> </td>
|
245
|
+
<td> </td>
|
246
|
+
<td> 1.40</td>
|
247
|
+
<td> 0.01</td>
|
248
|
+
<td> 0.00</td>
|
249
|
+
<td> 1.39</td>
|
250
|
+
|
251
|
+
<td> 2/2</td>
|
252
|
+
<td class="method_name"><a href="#Array_select_2148387240">Array#select</a></td>
|
253
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=25" title="/Users/skaes/src/ruby-prof/test/prime.rb:25">25</a></td>
|
254
|
+
</tr>
|
255
|
+
|
256
|
+
<!-- Create divider row -->
|
257
|
+
<tr class="break"><td colspan="9"></td></tr>
|
258
|
+
|
259
|
+
|
260
|
+
<!-- Parents -->
|
261
|
+
|
262
|
+
<tr>
|
263
|
+
<td> </td>
|
264
|
+
<td> </td>
|
265
|
+
<td> 1.40</td>
|
266
|
+
<td> 0.01</td>
|
267
|
+
<td> 0.00</td>
|
268
|
+
<td> 1.39</td>
|
269
|
+
|
270
|
+
<td> 2/2</td>
|
271
|
+
<td class="method_name"><a href="#Object_find_primes_2148387240">Object#find_primes</a></td>
|
272
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=25" title="/Users/skaes/src/ruby-prof/test/prime.rb:25">25</a></td>
|
273
|
+
</tr>
|
274
|
+
|
275
|
+
|
276
|
+
<tr class="method">
|
277
|
+
<td> 98.95%</td>
|
278
|
+
<td> 0.58%</td>
|
279
|
+
<td> 1.40</td>
|
280
|
+
<td> 0.01</td>
|
281
|
+
<td> 0.00</td>
|
282
|
+
<td> 1.39</td>
|
283
|
+
<td> 2</td>
|
284
|
+
<td class="method_name"><a name="Array_select_2148387240">Array#select</a></td>
|
285
|
+
<td></td>
|
286
|
+
</tr>
|
287
|
+
|
288
|
+
<!-- Children -->
|
289
|
+
|
290
|
+
|
291
|
+
<tr>
|
292
|
+
<td> </td>
|
293
|
+
<td> </td>
|
294
|
+
<td> 1.39</td>
|
295
|
+
<td> 0.01</td>
|
296
|
+
<td> 0.00</td>
|
297
|
+
<td> 1.38</td>
|
298
|
+
|
299
|
+
<td> 20000/20000</td>
|
300
|
+
<td class="method_name"><a href="#Object_is_prime_2148387240">Object#is_prime</a></td>
|
301
|
+
<td></td>
|
302
|
+
</tr>
|
303
|
+
|
304
|
+
<!-- Create divider row -->
|
305
|
+
<tr class="break"><td colspan="9"></td></tr>
|
306
|
+
|
307
|
+
|
308
|
+
<!-- Parents -->
|
309
|
+
|
310
|
+
<tr>
|
311
|
+
<td> </td>
|
312
|
+
<td> </td>
|
313
|
+
<td> 1.39</td>
|
314
|
+
<td> 0.01</td>
|
315
|
+
<td> 0.00</td>
|
316
|
+
<td> 1.38</td>
|
317
|
+
|
318
|
+
<td> 20000/20000</td>
|
319
|
+
<td class="method_name"><a href="#Array_select_2148387240">Array#select</a></td>
|
320
|
+
<td></td>
|
321
|
+
</tr>
|
322
|
+
|
323
|
+
|
324
|
+
<tr class="method">
|
325
|
+
<td> 98.37%</td>
|
326
|
+
<td> 0.98%</td>
|
327
|
+
<td> 1.39</td>
|
328
|
+
<td> 0.01</td>
|
329
|
+
<td> 0.00</td>
|
330
|
+
<td> 1.38</td>
|
331
|
+
<td> 20000</td>
|
332
|
+
<td class="method_name"><a name="Object_is_prime_2148387240">Object#is_prime</a></td>
|
333
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=16" title="/Users/skaes/src/ruby-prof/test/prime.rb:16">16</a></td>
|
334
|
+
</tr>
|
335
|
+
|
336
|
+
<!-- Children -->
|
337
|
+
|
338
|
+
|
339
|
+
<tr>
|
340
|
+
<td> </td>
|
341
|
+
<td> </td>
|
342
|
+
<td> 1.37</td>
|
343
|
+
<td> 1.00</td>
|
344
|
+
<td> 0.00</td>
|
345
|
+
<td> 0.37</td>
|
346
|
+
|
347
|
+
<td> 20000/20000</td>
|
348
|
+
<td class="method_name"><a href="#Integer_upto_2148387240">Integer#upto</a></td>
|
349
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=18" title="/Users/skaes/src/ruby-prof/test/prime.rb:18">18</a></td>
|
350
|
+
</tr>
|
351
|
+
|
352
|
+
|
353
|
+
<tr>
|
354
|
+
<td> </td>
|
355
|
+
<td> </td>
|
356
|
+
<td> 0.00</td>
|
357
|
+
<td> 0.00</td>
|
358
|
+
<td> 0.00</td>
|
359
|
+
<td> 0.00</td>
|
360
|
+
|
361
|
+
<td> 20000/20000</td>
|
362
|
+
<td class="method_name"><a href="#Fixnum_-_2148387240">Fixnum#-</a></td>
|
363
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=18" title="/Users/skaes/src/ruby-prof/test/prime.rb:18">18</a></td>
|
364
|
+
</tr>
|
365
|
+
|
366
|
+
<!-- Create divider row -->
|
367
|
+
<tr class="break"><td colspan="9"></td></tr>
|
368
|
+
|
369
|
+
|
370
|
+
<!-- Parents -->
|
371
|
+
|
372
|
+
<tr>
|
373
|
+
<td> </td>
|
374
|
+
<td> </td>
|
375
|
+
<td> 1.37</td>
|
376
|
+
<td> 1.00</td>
|
377
|
+
<td> 0.00</td>
|
378
|
+
<td> 0.37</td>
|
379
|
+
|
380
|
+
<td> 20000/20000</td>
|
381
|
+
<td class="method_name"><a href="#Object_is_prime_2148387240">Object#is_prime</a></td>
|
382
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=18" title="/Users/skaes/src/ruby-prof/test/prime.rb:18">18</a></td>
|
383
|
+
</tr>
|
384
|
+
|
385
|
+
|
386
|
+
<tr class="method">
|
387
|
+
<td> 97.23%</td>
|
388
|
+
<td> 71.15%</td>
|
389
|
+
<td> 1.37</td>
|
390
|
+
<td> 1.00</td>
|
391
|
+
<td> 0.00</td>
|
392
|
+
<td> 0.37</td>
|
393
|
+
<td> 20000</td>
|
394
|
+
<td class="method_name"><a name="Integer_upto_2148387240">Integer#upto</a></td>
|
395
|
+
<td></td>
|
396
|
+
</tr>
|
397
|
+
|
398
|
+
<!-- Children -->
|
399
|
+
|
400
|
+
|
401
|
+
<tr>
|
402
|
+
<td> </td>
|
403
|
+
<td> </td>
|
404
|
+
<td> 0.20</td>
|
405
|
+
<td> 0.20</td>
|
406
|
+
<td> 0.00</td>
|
407
|
+
<td> 0.00</td>
|
408
|
+
|
409
|
+
<td> 1544726/1544726</td>
|
410
|
+
<td class="method_name"><a href="#Fixnum_%_2148387240">Fixnum#%</a></td>
|
411
|
+
<td></td>
|
412
|
+
</tr>
|
413
|
+
|
414
|
+
|
415
|
+
<tr>
|
416
|
+
<td> </td>
|
417
|
+
<td> </td>
|
418
|
+
<td> 0.17</td>
|
419
|
+
<td> 0.17</td>
|
420
|
+
<td> 0.00</td>
|
421
|
+
<td> 0.00</td>
|
422
|
+
|
423
|
+
<td> 1544726/1544726</td>
|
424
|
+
<td class="method_name"><a href="#Fixnum____2148387240">Fixnum#==</a></td>
|
425
|
+
<td></td>
|
426
|
+
</tr>
|
427
|
+
|
428
|
+
<!-- Create divider row -->
|
429
|
+
<tr class="break"><td colspan="9"></td></tr>
|
430
|
+
|
431
|
+
|
432
|
+
<!-- Parents -->
|
433
|
+
|
434
|
+
<tr>
|
435
|
+
<td> </td>
|
436
|
+
<td> </td>
|
437
|
+
<td> 0.71</td>
|
438
|
+
<td> 0.00</td>
|
439
|
+
<td> 0.00</td>
|
440
|
+
<td> 0.71</td>
|
441
|
+
|
442
|
+
<td> 1/1</td>
|
443
|
+
<td class="method_name"><a href="#PrintersTest_setup_2148387240">PrintersTest#setup</a></td>
|
444
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=17" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:17">17</a></td>
|
445
|
+
</tr>
|
446
|
+
|
447
|
+
|
448
|
+
<tr class="method">
|
449
|
+
<td> 50.24%</td>
|
450
|
+
<td> 0.00%</td>
|
451
|
+
<td> 0.71</td>
|
452
|
+
<td> 0.00</td>
|
453
|
+
<td> 0.00</td>
|
454
|
+
<td> 0.71</td>
|
455
|
+
<td> 1</td>
|
456
|
+
<td class="method_name"><a name="PrintersTest_go_2148387240">PrintersTest#go</a></td>
|
457
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=9" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:9">9</a></td>
|
458
|
+
</tr>
|
459
|
+
|
460
|
+
<!-- Children -->
|
461
|
+
|
462
|
+
|
463
|
+
<tr>
|
464
|
+
<td> </td>
|
465
|
+
<td> </td>
|
466
|
+
<td> 0.71</td>
|
467
|
+
<td> 0.00</td>
|
468
|
+
<td> 0.00</td>
|
469
|
+
<td> 0.71</td>
|
470
|
+
|
471
|
+
<td> 1/2</td>
|
472
|
+
<td class="method_name"><a href="#Object_run_primes_2148387240">Object#run_primes</a></td>
|
473
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/printers_test.rb&line=10" title="/Users/skaes/src/ruby-prof/test/printers_test.rb:10">10</a></td>
|
474
|
+
</tr>
|
475
|
+
|
476
|
+
<!-- Create divider row -->
|
477
|
+
<tr class="break"><td colspan="9"></td></tr>
|
478
|
+
|
479
|
+
|
480
|
+
<!-- Parents -->
|
481
|
+
|
482
|
+
<tr>
|
483
|
+
<td> </td>
|
484
|
+
<td> </td>
|
485
|
+
<td> 0.20</td>
|
486
|
+
<td> 0.20</td>
|
487
|
+
<td> 0.00</td>
|
488
|
+
<td> 0.00</td>
|
489
|
+
|
490
|
+
<td> 1544726/1544726</td>
|
491
|
+
<td class="method_name"><a href="#Integer_upto_2148387240">Integer#upto</a></td>
|
492
|
+
<td></td>
|
493
|
+
</tr>
|
494
|
+
|
495
|
+
|
496
|
+
<tr class="method">
|
497
|
+
<td> 14.16%</td>
|
498
|
+
<td> 14.16%</td>
|
499
|
+
<td> 0.20</td>
|
500
|
+
<td> 0.20</td>
|
501
|
+
<td> 0.00</td>
|
502
|
+
<td> 0.00</td>
|
503
|
+
<td> 1544726</td>
|
504
|
+
<td class="method_name"><a name="Fixnum_%_2148387240">Fixnum#%</a></td>
|
505
|
+
<td></td>
|
506
|
+
</tr>
|
507
|
+
|
508
|
+
<!-- Children -->
|
509
|
+
|
510
|
+
<!-- Create divider row -->
|
511
|
+
<tr class="break"><td colspan="9"></td></tr>
|
512
|
+
|
513
|
+
|
514
|
+
<!-- Parents -->
|
515
|
+
|
516
|
+
<tr>
|
517
|
+
<td> </td>
|
518
|
+
<td> </td>
|
519
|
+
<td> 0.17</td>
|
520
|
+
<td> 0.17</td>
|
521
|
+
<td> 0.00</td>
|
522
|
+
<td> 0.00</td>
|
523
|
+
|
524
|
+
<td> 1544726/1544726</td>
|
525
|
+
<td class="method_name"><a href="#Integer_upto_2148387240">Integer#upto</a></td>
|
526
|
+
<td></td>
|
527
|
+
</tr>
|
528
|
+
|
529
|
+
|
530
|
+
<tr class="method">
|
531
|
+
<td> 11.93%</td>
|
532
|
+
<td> 11.93%</td>
|
533
|
+
<td> 0.17</td>
|
534
|
+
<td> 0.17</td>
|
535
|
+
<td> 0.00</td>
|
536
|
+
<td> 0.00</td>
|
537
|
+
<td> 1544726</td>
|
538
|
+
<td class="method_name"><a name="Fixnum____2148387240">Fixnum#==</a></td>
|
539
|
+
<td></td>
|
540
|
+
</tr>
|
541
|
+
|
542
|
+
<!-- Children -->
|
543
|
+
|
544
|
+
<!-- Create divider row -->
|
545
|
+
<tr class="break"><td colspan="9"></td></tr>
|
546
|
+
|
547
|
+
|
548
|
+
<!-- Parents -->
|
549
|
+
|
550
|
+
<tr>
|
551
|
+
<td> </td>
|
552
|
+
<td> </td>
|
553
|
+
<td> 0.01</td>
|
554
|
+
<td> 0.00</td>
|
555
|
+
<td> 0.00</td>
|
556
|
+
<td> 0.01</td>
|
557
|
+
|
558
|
+
<td> 2/2</td>
|
559
|
+
<td class="method_name"><a href="#Object_run_primes_2148387240">Object#run_primes</a></td>
|
560
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=48" title="/Users/skaes/src/ruby-prof/test/prime.rb:48">48</a></td>
|
561
|
+
</tr>
|
562
|
+
|
563
|
+
|
564
|
+
<tr class="method">
|
565
|
+
<td> 1.05%</td>
|
566
|
+
<td> 0.00%</td>
|
567
|
+
<td> 0.01</td>
|
568
|
+
<td> 0.00</td>
|
569
|
+
<td> 0.00</td>
|
570
|
+
<td> 0.01</td>
|
571
|
+
<td> 2</td>
|
572
|
+
<td class="method_name"><a name="Object_make_random_array_2148387240">Object#make_random_array</a></td>
|
573
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=7" title="/Users/skaes/src/ruby-prof/test/prime.rb:7">7</a></td>
|
574
|
+
</tr>
|
575
|
+
|
576
|
+
<!-- Children -->
|
577
|
+
|
578
|
+
|
579
|
+
<tr>
|
580
|
+
<td> </td>
|
581
|
+
<td> </td>
|
582
|
+
<td> 0.01</td>
|
583
|
+
<td> 0.01</td>
|
584
|
+
<td> 0.00</td>
|
585
|
+
<td> 0.01</td>
|
586
|
+
|
587
|
+
<td> 2/2</td>
|
588
|
+
<td class="method_name"><a href="#Array_each_index_2148387240">Array#each_index</a></td>
|
589
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=9" title="/Users/skaes/src/ruby-prof/test/prime.rb:9">9</a></td>
|
590
|
+
</tr>
|
591
|
+
|
592
|
+
|
593
|
+
<tr>
|
594
|
+
<td> </td>
|
595
|
+
<td> </td>
|
596
|
+
<td> 0.00</td>
|
597
|
+
<td> 0.00</td>
|
598
|
+
<td> 0.00</td>
|
599
|
+
<td> 0.00</td>
|
600
|
+
|
601
|
+
<td> 2/2</td>
|
602
|
+
<td class="method_name"><a href="#Class_new_2148387240">Class#new</a></td>
|
603
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=8" title="/Users/skaes/src/ruby-prof/test/prime.rb:8">8</a></td>
|
604
|
+
</tr>
|
605
|
+
|
606
|
+
<!-- Create divider row -->
|
607
|
+
<tr class="break"><td colspan="9"></td></tr>
|
608
|
+
|
609
|
+
|
610
|
+
<!-- Parents -->
|
611
|
+
|
612
|
+
<tr>
|
613
|
+
<td> </td>
|
614
|
+
<td> </td>
|
615
|
+
<td> 0.01</td>
|
616
|
+
<td> 0.01</td>
|
617
|
+
<td> 0.00</td>
|
618
|
+
<td> 0.01</td>
|
619
|
+
|
620
|
+
<td> 2/2</td>
|
621
|
+
<td class="method_name"><a href="#Object_make_random_array_2148387240">Object#make_random_array</a></td>
|
622
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=9" title="/Users/skaes/src/ruby-prof/test/prime.rb:9">9</a></td>
|
623
|
+
</tr>
|
624
|
+
|
625
|
+
|
626
|
+
<tr class="method">
|
627
|
+
<td> 1.04%</td>
|
628
|
+
<td> 0.62%</td>
|
629
|
+
<td> 0.01</td>
|
630
|
+
<td> 0.01</td>
|
631
|
+
<td> 0.00</td>
|
632
|
+
<td> 0.01</td>
|
633
|
+
<td> 2</td>
|
634
|
+
<td class="method_name"><a name="Array_each_index_2148387240">Array#each_index</a></td>
|
635
|
+
<td></td>
|
636
|
+
</tr>
|
637
|
+
|
638
|
+
<!-- Children -->
|
639
|
+
|
640
|
+
|
641
|
+
<tr>
|
642
|
+
<td> </td>
|
643
|
+
<td> </td>
|
644
|
+
<td> 0.00</td>
|
645
|
+
<td> 0.00</td>
|
646
|
+
<td> 0.00</td>
|
647
|
+
<td> 0.00</td>
|
648
|
+
|
649
|
+
<td> 20000/20000</td>
|
650
|
+
<td class="method_name"><a href="#Kernel_rand_2148387240">Kernel#rand</a></td>
|
651
|
+
<td></td>
|
652
|
+
</tr>
|
653
|
+
|
654
|
+
|
655
|
+
<tr>
|
656
|
+
<td> </td>
|
657
|
+
<td> </td>
|
658
|
+
<td> 0.00</td>
|
659
|
+
<td> 0.00</td>
|
660
|
+
<td> 0.00</td>
|
661
|
+
<td> 0.00</td>
|
662
|
+
|
663
|
+
<td> 20000/20000</td>
|
664
|
+
<td class="method_name"><a href="#Array_[]__2148387240">Array#[]=</a></td>
|
665
|
+
<td></td>
|
666
|
+
</tr>
|
667
|
+
|
668
|
+
<!-- Create divider row -->
|
669
|
+
<tr class="break"><td colspan="9"></td></tr>
|
670
|
+
|
671
|
+
|
672
|
+
<!-- Parents -->
|
673
|
+
|
674
|
+
<tr>
|
675
|
+
<td> </td>
|
676
|
+
<td> </td>
|
677
|
+
<td> 0.00</td>
|
678
|
+
<td> 0.00</td>
|
679
|
+
<td> 0.00</td>
|
680
|
+
<td> 0.00</td>
|
681
|
+
|
682
|
+
<td> 20000/20000</td>
|
683
|
+
<td class="method_name"><a href="#Array_each_index_2148387240">Array#each_index</a></td>
|
684
|
+
<td></td>
|
685
|
+
</tr>
|
686
|
+
|
687
|
+
|
688
|
+
<tr class="method">
|
689
|
+
<td> 0.23%</td>
|
690
|
+
<td> 0.23%</td>
|
691
|
+
<td> 0.00</td>
|
692
|
+
<td> 0.00</td>
|
693
|
+
<td> 0.00</td>
|
694
|
+
<td> 0.00</td>
|
695
|
+
<td> 20000</td>
|
696
|
+
<td class="method_name"><a name="Kernel_rand_2148387240">Kernel#rand</a></td>
|
697
|
+
<td></td>
|
698
|
+
</tr>
|
699
|
+
|
700
|
+
<!-- Children -->
|
701
|
+
|
702
|
+
<!-- Create divider row -->
|
703
|
+
<tr class="break"><td colspan="9"></td></tr>
|
704
|
+
|
705
|
+
|
706
|
+
<!-- Parents -->
|
707
|
+
|
708
|
+
<tr>
|
709
|
+
<td> </td>
|
710
|
+
<td> </td>
|
711
|
+
<td> 0.00</td>
|
712
|
+
<td> 0.00</td>
|
713
|
+
<td> 0.00</td>
|
714
|
+
<td> 0.00</td>
|
715
|
+
|
716
|
+
<td> 20000/20000</td>
|
717
|
+
<td class="method_name"><a href="#Array_each_index_2148387240">Array#each_index</a></td>
|
718
|
+
<td></td>
|
719
|
+
</tr>
|
720
|
+
|
721
|
+
|
722
|
+
<tr class="method">
|
723
|
+
<td> 0.19%</td>
|
724
|
+
<td> 0.19%</td>
|
725
|
+
<td> 0.00</td>
|
726
|
+
<td> 0.00</td>
|
727
|
+
<td> 0.00</td>
|
728
|
+
<td> 0.00</td>
|
729
|
+
<td> 20000</td>
|
730
|
+
<td class="method_name"><a name="Array_[]__2148387240">Array#[]=</a></td>
|
731
|
+
<td></td>
|
732
|
+
</tr>
|
733
|
+
|
734
|
+
<!-- Children -->
|
735
|
+
|
736
|
+
<!-- Create divider row -->
|
737
|
+
<tr class="break"><td colspan="9"></td></tr>
|
738
|
+
|
739
|
+
|
740
|
+
<!-- Parents -->
|
741
|
+
|
742
|
+
<tr>
|
743
|
+
<td> </td>
|
744
|
+
<td> </td>
|
745
|
+
<td> 0.00</td>
|
746
|
+
<td> 0.00</td>
|
747
|
+
<td> 0.00</td>
|
748
|
+
<td> 0.00</td>
|
749
|
+
|
750
|
+
<td> 20000/20000</td>
|
751
|
+
<td class="method_name"><a href="#Object_is_prime_2148387240">Object#is_prime</a></td>
|
752
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=18" title="/Users/skaes/src/ruby-prof/test/prime.rb:18">18</a></td>
|
753
|
+
</tr>
|
754
|
+
|
755
|
+
|
756
|
+
<tr class="method">
|
757
|
+
<td> 0.17%</td>
|
758
|
+
<td> 0.17%</td>
|
759
|
+
<td> 0.00</td>
|
760
|
+
<td> 0.00</td>
|
761
|
+
<td> 0.00</td>
|
762
|
+
<td> 0.00</td>
|
763
|
+
<td> 20000</td>
|
764
|
+
<td class="method_name"><a name="Fixnum_-_2148387240">Fixnum#-</a></td>
|
765
|
+
<td></td>
|
766
|
+
</tr>
|
767
|
+
|
768
|
+
<!-- Children -->
|
769
|
+
|
770
|
+
<!-- Create divider row -->
|
771
|
+
<tr class="break"><td colspan="9"></td></tr>
|
772
|
+
|
773
|
+
|
774
|
+
<!-- Parents -->
|
775
|
+
|
776
|
+
<tr>
|
777
|
+
<td> </td>
|
778
|
+
<td> </td>
|
779
|
+
<td> 0.00</td>
|
780
|
+
<td> 0.00</td>
|
781
|
+
<td> 0.00</td>
|
782
|
+
<td> 0.00</td>
|
783
|
+
|
784
|
+
<td> 2/2</td>
|
785
|
+
<td class="method_name"><a href="#Object_make_random_array_2148387240">Object#make_random_array</a></td>
|
786
|
+
<td><a href="txmt://open?url=file:///Users/skaes/src/ruby-prof/test/prime.rb&line=8" title="/Users/skaes/src/ruby-prof/test/prime.rb:8">8</a></td>
|
787
|
+
</tr>
|
788
|
+
|
789
|
+
|
790
|
+
<tr class="method">
|
791
|
+
<td> 0.01%</td>
|
792
|
+
<td> 0.00%</td>
|
793
|
+
<td> 0.00</td>
|
794
|
+
<td> 0.00</td>
|
795
|
+
<td> 0.00</td>
|
796
|
+
<td> 0.00</td>
|
797
|
+
<td> 2</td>
|
798
|
+
<td class="method_name"><a name="Class_new_2148387240">Class#new</a></td>
|
799
|
+
<td></td>
|
800
|
+
</tr>
|
801
|
+
|
802
|
+
<!-- Children -->
|
803
|
+
|
804
|
+
|
805
|
+
<tr>
|
806
|
+
<td> </td>
|
807
|
+
<td> </td>
|
808
|
+
<td> 0.00</td>
|
809
|
+
<td> 0.00</td>
|
810
|
+
<td> 0.00</td>
|
811
|
+
<td> 0.00</td>
|
812
|
+
|
813
|
+
<td> 2/2</td>
|
814
|
+
<td class="method_name"><a href="#Array_initialize_2148387240">Array#initialize</a></td>
|
815
|
+
<td></td>
|
816
|
+
</tr>
|
817
|
+
|
818
|
+
|
819
|
+
<tr>
|
820
|
+
<td> </td>
|
821
|
+
<td> </td>
|
822
|
+
<td> 0.00</td>
|
823
|
+
<td> 0.00</td>
|
824
|
+
<td> 0.00</td>
|
825
|
+
<td> 0.00</td>
|
826
|
+
|
827
|
+
<td> 2/2</td>
|
828
|
+
<td class="method_name"><a href="#_Class__Array__allocate_2148387240"><Class::Array>#allocate</a></td>
|
829
|
+
<td></td>
|
830
|
+
</tr>
|
831
|
+
|
832
|
+
<!-- Create divider row -->
|
833
|
+
<tr class="break"><td colspan="9"></td></tr>
|
834
|
+
|
835
|
+
|
836
|
+
<!-- Parents -->
|
837
|
+
|
838
|
+
<tr>
|
839
|
+
<td> </td>
|
840
|
+
<td> </td>
|
841
|
+
<td> 0.00</td>
|
842
|
+
<td> 0.00</td>
|
843
|
+
<td> 0.00</td>
|
844
|
+
<td> 0.00</td>
|
845
|
+
|
846
|
+
<td> 2/2</td>
|
847
|
+
<td class="method_name"><a href="#Class_new_2148387240">Class#new</a></td>
|
848
|
+
<td></td>
|
849
|
+
</tr>
|
850
|
+
|
851
|
+
|
852
|
+
<tr class="method">
|
853
|
+
<td> 0.01%</td>
|
854
|
+
<td> 0.01%</td>
|
855
|
+
<td> 0.00</td>
|
856
|
+
<td> 0.00</td>
|
857
|
+
<td> 0.00</td>
|
858
|
+
<td> 0.00</td>
|
859
|
+
<td> 2</td>
|
860
|
+
<td class="method_name"><a name="Array_initialize_2148387240">Array#initialize</a></td>
|
861
|
+
<td></td>
|
862
|
+
</tr>
|
863
|
+
|
864
|
+
<!-- Children -->
|
865
|
+
|
866
|
+
<!-- Create divider row -->
|
867
|
+
<tr class="break"><td colspan="9"></td></tr>
|
868
|
+
|
869
|
+
|
870
|
+
<!-- Parents -->
|
871
|
+
|
872
|
+
<tr>
|
873
|
+
<td> </td>
|
874
|
+
<td> </td>
|
875
|
+
<td> 0.00</td>
|
876
|
+
<td> 0.00</td>
|
877
|
+
<td> 0.00</td>
|
878
|
+
<td> 0.00</td>
|
879
|
+
|
880
|
+
<td> 2/2</td>
|
881
|
+
<td class="method_name"><a href="#Class_new_2148387240">Class#new</a></td>
|
882
|
+
<td></td>
|
883
|
+
</tr>
|
884
|
+
|
885
|
+
|
886
|
+
<tr class="method">
|
887
|
+
<td> 0.00%</td>
|
888
|
+
<td> 0.00%</td>
|
889
|
+
<td> 0.00</td>
|
890
|
+
<td> 0.00</td>
|
891
|
+
<td> 0.00</td>
|
892
|
+
<td> 0.00</td>
|
893
|
+
<td> 2</td>
|
894
|
+
<td class="method_name"><a name="_Class__Array__allocate_2148387240"><Class::Array>#allocate</a></td>
|
895
|
+
<td></td>
|
896
|
+
</tr>
|
897
|
+
|
898
|
+
<!-- Children -->
|
899
|
+
|
900
|
+
<!-- Create divider row -->
|
901
|
+
<tr class="break"><td colspan="9"></td></tr>
|
902
|
+
|
903
|
+
</table>
|
904
|
+
|
905
|
+
</body>
|
906
|
+
</html>
|