ruby-prof 0.16.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES +532 -467
- data/LICENSE +24 -24
- data/README.rdoc +5 -454
- data/Rakefile +110 -113
- data/bin/ruby-prof +380 -340
- data/bin/ruby-prof-check-trace +45 -45
- data/ext/ruby_prof/extconf.rb +36 -64
- data/ext/ruby_prof/rp_allocation.c +279 -0
- data/ext/ruby_prof/rp_allocation.h +31 -0
- data/ext/ruby_prof/rp_call_info.c +271 -407
- data/ext/ruby_prof/rp_call_info.h +35 -48
- data/ext/ruby_prof/rp_measure_allocations.c +52 -76
- data/ext/ruby_prof/rp_measure_memory.c +42 -77
- data/ext/ruby_prof/rp_measure_process_time.c +67 -71
- data/ext/ruby_prof/rp_measure_wall_time.c +62 -45
- data/ext/ruby_prof/rp_measurement.c +230 -0
- data/ext/ruby_prof/rp_measurement.h +50 -0
- data/ext/ruby_prof/rp_method.c +630 -411
- data/ext/ruby_prof/rp_method.h +70 -52
- data/ext/ruby_prof/rp_profile.c +895 -0
- data/ext/ruby_prof/rp_profile.h +37 -0
- data/ext/ruby_prof/rp_stack.c +196 -128
- data/ext/ruby_prof/rp_stack.h +56 -51
- data/ext/ruby_prof/rp_thread.c +337 -273
- data/ext/ruby_prof/rp_thread.h +36 -27
- data/ext/ruby_prof/ruby_prof.c +48 -671
- data/ext/ruby_prof/ruby_prof.h +17 -56
- data/ext/ruby_prof/vc/ruby_prof.sln +20 -21
- data/ext/ruby_prof/vc/{ruby_prof_20.vcxproj → ruby_prof.vcxproj} +38 -5
- data/lib/ruby-prof.rb +52 -58
- data/lib/ruby-prof/assets/call_stack_printer.html.erb +713 -0
- data/lib/ruby-prof/assets/call_stack_printer.png +0 -0
- data/lib/ruby-prof/assets/graph_printer.html.erb +356 -0
- data/lib/ruby-prof/call_info.rb +57 -126
- data/lib/ruby-prof/call_info_visitor.rb +38 -40
- data/lib/ruby-prof/compatibility.rb +109 -178
- data/lib/ruby-prof/exclude_common_methods.rb +198 -0
- data/lib/ruby-prof/measurement.rb +14 -0
- data/lib/ruby-prof/method_info.rb +90 -129
- data/lib/ruby-prof/printers/abstract_printer.rb +127 -85
- data/lib/ruby-prof/printers/call_info_printer.rb +51 -41
- data/lib/ruby-prof/printers/call_stack_printer.rb +182 -260
- data/lib/ruby-prof/printers/call_tree_printer.rb +151 -130
- data/lib/ruby-prof/printers/dot_printer.rb +132 -132
- data/lib/ruby-prof/printers/flat_printer.rb +52 -70
- data/lib/ruby-prof/printers/graph_html_printer.rb +63 -244
- data/lib/ruby-prof/printers/graph_printer.rb +114 -116
- data/lib/ruby-prof/printers/multi_printer.rb +127 -58
- data/lib/ruby-prof/profile.rb +33 -55
- data/lib/ruby-prof/rack.rb +171 -95
- data/lib/ruby-prof/task.rb +147 -147
- data/lib/ruby-prof/thread.rb +35 -41
- data/lib/ruby-prof/version.rb +3 -3
- data/lib/unprof.rb +10 -10
- data/ruby-prof.gemspec +58 -57
- data/test/abstract_printer_test.rb +26 -0
- data/test/alias_test.rb +129 -0
- data/test/basic_test.rb +129 -128
- data/test/call_info_visitor_test.rb +31 -31
- data/test/duplicate_names_test.rb +32 -32
- data/test/dynamic_method_test.rb +53 -55
- data/test/enumerable_test.rb +21 -21
- data/test/exceptions_test.rb +24 -16
- data/test/exclude_methods_test.rb +146 -0
- data/test/exclude_threads_test.rb +53 -53
- data/test/fiber_test.rb +73 -79
- data/test/gc_test.rb +96 -0
- data/test/line_number_test.rb +161 -71
- data/test/marshal_test.rb +119 -0
- data/test/measure_allocations.rb +30 -0
- data/test/measure_allocations_test.rb +385 -26
- data/test/measure_allocations_trace_test.rb +385 -0
- data/test/measure_memory_trace_test.rb +756 -0
- data/test/measure_process_time_test.rb +849 -63
- data/test/measure_times.rb +54 -0
- data/test/measure_wall_time_test.rb +459 -255
- data/test/multi_printer_test.rb +71 -83
- data/test/no_method_class_test.rb +15 -15
- data/test/parser_timings.rb +24 -0
- data/test/pause_resume_test.rb +166 -166
- data/test/prime.rb +56 -54
- data/test/printer_call_stack_test.rb +28 -0
- data/test/printer_call_tree_test.rb +31 -0
- data/test/printer_flat_test.rb +68 -0
- data/test/printer_graph_html_test.rb +60 -0
- data/test/printer_graph_test.rb +41 -0
- data/test/printers_test.rb +141 -255
- data/test/printing_recursive_graph_test.rb +81 -127
- data/test/rack_test.rb +157 -93
- data/test/recursive_test.rb +210 -215
- data/test/singleton_test.rb +38 -38
- data/test/stack_printer_test.rb +64 -78
- data/test/start_stop_test.rb +109 -112
- data/test/test_helper.rb +24 -264
- data/test/thread_test.rb +144 -187
- data/test/unique_call_path_test.rb +190 -202
- data/test/yarv_test.rb +56 -55
- metadata +34 -114
- data/doc/LICENSE.html +0 -114
- data/doc/README_rdoc.html +0 -603
- data/doc/Rack.html +0 -95
- data/doc/Rack/RubyProf.html +0 -226
- data/doc/RubyProf.html +0 -962
- data/doc/RubyProf/AbstractPrinter.html +0 -546
- data/doc/RubyProf/AggregateCallInfo.html +0 -551
- data/doc/RubyProf/CallInfo.html +0 -639
- data/doc/RubyProf/CallInfoPrinter.html +0 -120
- data/doc/RubyProf/CallInfoVisitor.html +0 -198
- data/doc/RubyProf/CallStackPrinter.html +0 -1121
- data/doc/RubyProf/CallTreePrinter.html +0 -641
- data/doc/RubyProf/Cmd.html +0 -631
- data/doc/RubyProf/DotPrinter.html +0 -257
- data/doc/RubyProf/FlatPrinter.html +0 -163
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +0 -208
- data/doc/RubyProf/GraphHtmlPrinter.html +0 -552
- data/doc/RubyProf/GraphPrinter.html +0 -139
- data/doc/RubyProf/MethodInfo.html +0 -745
- data/doc/RubyProf/MultiPrinter.html +0 -360
- data/doc/RubyProf/Profile.html +0 -763
- data/doc/RubyProf/ProfileTask.html +0 -490
- data/doc/RubyProf/Thread.html +0 -310
- data/doc/created.rid +0 -31
- data/doc/css/fonts.css +0 -167
- data/doc/css/rdoc.css +0 -590
- data/doc/examples/flat_txt.html +0 -138
- data/doc/examples/graph_html.html +0 -909
- data/doc/examples/graph_txt.html +0 -247
- 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/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/loadingAnimation.gif +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 +0 -626
- data/doc/js/darkfish.js +0 -161
- data/doc/js/jquery.js +0 -4
- data/doc/js/navigation.js +0 -142
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +0 -228
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +0 -942
- data/examples/cachegrind.out.1 +0 -114
- data/examples/cachegrind.out.1.32313213 +0 -114
- data/examples/flat.txt +0 -50
- data/examples/graph.dot +0 -84
- data/examples/graph.html +0 -823
- data/examples/graph.txt +0 -139
- data/examples/multi.flat.txt +0 -23
- data/examples/multi.graph.html +0 -760
- data/examples/multi.grind.dat +0 -114
- data/examples/multi.stack.html +0 -547
- data/examples/stack.html +0 -547
- data/ext/ruby_prof/rp_measure.c +0 -40
- data/ext/ruby_prof/rp_measure.h +0 -45
- data/ext/ruby_prof/rp_measure_cpu_time.c +0 -136
- data/ext/ruby_prof/rp_measure_gc_runs.c +0 -73
- data/ext/ruby_prof/rp_measure_gc_time.c +0 -60
- data/ext/ruby_prof/vc/ruby_prof_18.vcxproj +0 -108
- data/ext/ruby_prof/vc/ruby_prof_19.vcxproj +0 -110
- data/lib/ruby-prof/aggregate_call_info.rb +0 -76
- data/lib/ruby-prof/assets/call_stack_printer.css.html +0 -117
- data/lib/ruby-prof/assets/call_stack_printer.js.html +0 -385
- data/lib/ruby-prof/printers/flat_printer_with_line_numbers.rb +0 -64
- data/test/aggregate_test.rb +0 -136
- data/test/block_test.rb +0 -74
- data/test/call_info_test.rb +0 -78
- data/test/issue137_test.rb +0 -63
- data/test/measure_cpu_time_test.rb +0 -213
- data/test/measure_gc_runs_test.rb +0 -32
- data/test/measure_gc_time_test.rb +0 -36
- data/test/measure_memory_test.rb +0 -33
- data/test/method_elimination_test.rb +0 -84
- data/test/module_test.rb +0 -45
- data/test/stack_test.rb +0 -138
data/doc/RubyProf/Thread.html
DELETED
@@ -1,310 +0,0 @@
|
|
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-detect_recursion">#detect_recursion</a>
|
74
|
-
|
75
|
-
<li ><a href="#method-i-top_call_infos">#top_call_infos</a>
|
76
|
-
|
77
|
-
<li ><a href="#method-i-top_methods">#top_methods</a>
|
78
|
-
|
79
|
-
<li ><a href="#method-i-total_time">#total_time</a>
|
80
|
-
|
81
|
-
<li ><a href="#method-i-wait_time">#wait_time</a>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
</nav>
|
88
|
-
|
89
|
-
<main role="main" aria-labelledby="class-RubyProf::Thread">
|
90
|
-
<h1 id="class-RubyProf::Thread" class="class">
|
91
|
-
class RubyProf::Thread
|
92
|
-
</h1>
|
93
|
-
|
94
|
-
<section class="description">
|
95
|
-
|
96
|
-
</section>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
112
|
-
<header>
|
113
|
-
<h3>Public Instance Methods</h3>
|
114
|
-
</header>
|
115
|
-
|
116
|
-
|
117
|
-
<div id="method-i-detect_recursion" class="method-detail ">
|
118
|
-
|
119
|
-
<div class="method-heading">
|
120
|
-
<span class="method-name">detect_recursion</span><span
|
121
|
-
class="method-args">()</span>
|
122
|
-
|
123
|
-
<span class="method-click-advice">click to toggle source</span>
|
124
|
-
|
125
|
-
</div>
|
126
|
-
|
127
|
-
|
128
|
-
<div class="method-description">
|
129
|
-
|
130
|
-
<p>This method detect recursive calls in the call tree of a given thread It
|
131
|
-
should be called only once for each thread</p>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
<div class="method-source-code" id="detect_recursion-source">
|
137
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 15</span>
|
138
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">detect_recursion</span>
|
139
|
-
<span class="ruby-identifier">top_call_infos</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-value">:detect_recursion</span>)
|
140
|
-
<span class="ruby-keyword">end</span></pre>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
</div>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</div>
|
149
|
-
|
150
|
-
|
151
|
-
<div id="method-i-top_call_infos" class="method-detail ">
|
152
|
-
|
153
|
-
<div class="method-heading">
|
154
|
-
<span class="method-name">top_call_infos</span><span
|
155
|
-
class="method-args">()</span>
|
156
|
-
|
157
|
-
<span class="method-click-advice">click to toggle source</span>
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
|
162
|
-
<div class="method-description">
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
<div class="method-source-code" id="top_call_infos-source">
|
170
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 9</span>
|
171
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">top_call_infos</span>
|
172
|
-
<span class="ruby-identifier">top_methods</span>.<span class="ruby-identifier">map</span>(<span class="ruby-operator">&</span><span class="ruby-value">:call_infos</span>).<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">select</span>(<span class="ruby-operator">&</span><span class="ruby-value">:root?</span>)
|
173
|
-
<span class="ruby-keyword">end</span></pre>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
</div>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
<div id="method-i-top_methods" class="method-detail ">
|
185
|
-
|
186
|
-
<div class="method-heading">
|
187
|
-
<span class="method-name">top_methods</span><span
|
188
|
-
class="method-args">()</span>
|
189
|
-
|
190
|
-
<span class="method-click-advice">click to toggle source</span>
|
191
|
-
|
192
|
-
</div>
|
193
|
-
|
194
|
-
|
195
|
-
<div class="method-description">
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
<div class="method-source-code" id="top_methods-source">
|
203
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 3</span>
|
204
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">top_methods</span>
|
205
|
-
<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>
|
206
|
-
<span class="ruby-identifier">method_info</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">detect</span>(<span class="ruby-operator">&</span><span class="ruby-value">:root?</span>)
|
207
|
-
<span class="ruby-keyword">end</span>
|
208
|
-
<span class="ruby-keyword">end</span></pre>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
</div>
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
|
219
|
-
<div id="method-i-total_time" class="method-detail ">
|
220
|
-
|
221
|
-
<div class="method-heading">
|
222
|
-
<span class="method-name">total_time</span><span
|
223
|
-
class="method-args">()</span>
|
224
|
-
|
225
|
-
<span class="method-click-advice">click to toggle source</span>
|
226
|
-
|
227
|
-
</div>
|
228
|
-
|
229
|
-
|
230
|
-
<div class="method-description">
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
<div class="method-source-code" id="total_time-source">
|
238
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 19</span>
|
239
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">total_time</span>
|
240
|
-
<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>
|
241
|
-
<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>
|
242
|
-
<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>
|
243
|
-
<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>
|
244
|
-
<span class="ruby-keyword">end</span>
|
245
|
-
<span class="ruby-keyword">end</span>
|
246
|
-
<span class="ruby-identifier">sum</span>
|
247
|
-
<span class="ruby-keyword">end</span>
|
248
|
-
<span class="ruby-keyword">end</span></pre>
|
249
|
-
</div>
|
250
|
-
|
251
|
-
</div>
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
</div>
|
257
|
-
|
258
|
-
|
259
|
-
<div id="method-i-wait_time" class="method-detail ">
|
260
|
-
|
261
|
-
<div class="method-heading">
|
262
|
-
<span class="method-name">wait_time</span><span
|
263
|
-
class="method-args">()</span>
|
264
|
-
|
265
|
-
<span class="method-click-advice">click to toggle source</span>
|
266
|
-
|
267
|
-
</div>
|
268
|
-
|
269
|
-
|
270
|
-
<div class="method-description">
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
<div class="method-source-code" id="wait_time-source">
|
278
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/thread.rb, line 30</span>
|
279
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">wait_time</span>
|
280
|
-
<span class="ruby-comment"># wait_time, like self:time, is always method local</span>
|
281
|
-
<span class="ruby-comment"># thus we need to sum over all methods and call infos</span>
|
282
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">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>
|
283
|
-
<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>
|
284
|
-
<span class="ruby-identifier">sum</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">wait_time</span>
|
285
|
-
<span class="ruby-keyword">end</span>
|
286
|
-
<span class="ruby-identifier">sum</span>
|
287
|
-
<span class="ruby-keyword">end</span>
|
288
|
-
<span class="ruby-keyword">end</span></pre>
|
289
|
-
</div>
|
290
|
-
|
291
|
-
</div>
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
</div>
|
297
|
-
|
298
|
-
|
299
|
-
</section>
|
300
|
-
|
301
|
-
</section>
|
302
|
-
</main>
|
303
|
-
|
304
|
-
|
305
|
-
<footer id="validator-badges" role="contentinfo">
|
306
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
307
|
-
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
|
308
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
309
|
-
</footer>
|
310
|
-
|
data/doc/created.rid
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
Thu, 25 Aug 2016 10:46:44 +0200
|
2
|
-
bin/ruby-prof Sat, 02 Jan 2016 16:48:57 +0100
|
3
|
-
bin/ruby-prof-check-trace Sun, 10 Mar 2013 10:57:14 +0100
|
4
|
-
examples/flat.txt Sun, 06 Dec 2015 14:08:42 +0100
|
5
|
-
examples/graph.txt Fri, 17 Jun 2016 19:44:14 +0200
|
6
|
-
examples/graph.html Wed, 09 Dec 2015 16:14:34 +0100
|
7
|
-
lib/ruby-prof.rb Wed, 24 Aug 2016 21:59:47 +0200
|
8
|
-
lib/ruby-prof/aggregate_call_info.rb Tue, 08 Dec 2015 18:03:49 +0100
|
9
|
-
lib/ruby-prof/call_info.rb Sun, 13 Mar 2016 12:37:42 +0100
|
10
|
-
lib/ruby-prof/call_info_visitor.rb Sun, 22 Feb 2015 16:10:12 +0100
|
11
|
-
lib/ruby-prof/compatibility.rb Sun, 13 Mar 2016 20:28:59 +0100
|
12
|
-
lib/ruby-prof/method_info.rb Sun, 13 Mar 2016 17:39:57 +0100
|
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, 22 Feb 2015 16:10:12 +0100
|
15
|
-
lib/ruby-prof/printers/call_stack_printer.rb Thu, 23 Apr 2015 12:17:56 +0200
|
16
|
-
lib/ruby-prof/printers/call_tree_printer.rb Sun, 13 Mar 2016 17:39:57 +0100
|
17
|
-
lib/ruby-prof/printers/dot_printer.rb Sun, 13 Mar 2016 17:39:57 +0100
|
18
|
-
lib/ruby-prof/printers/flat_printer.rb Fri, 24 Apr 2015 08:23:15 +0200
|
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 Tue, 08 Dec 2015 17:40:05 +0100
|
21
|
-
lib/ruby-prof/printers/graph_printer.rb Wed, 09 Dec 2015 15:31:08 +0100
|
22
|
-
lib/ruby-prof/printers/multi_printer.rb Sun, 13 Mar 2016 17:39:57 +0100
|
23
|
-
lib/ruby-prof/profile.rb Sun, 13 Mar 2016 17:37:58 +0100
|
24
|
-
lib/ruby-prof/rack.rb Fri, 17 Jun 2016 20:01:16 +0200
|
25
|
-
lib/ruby-prof/task.rb Tue, 29 Jan 2013 16:43:39 +0100
|
26
|
-
lib/ruby-prof/thread.rb Sun, 13 Mar 2016 17:39:57 +0100
|
27
|
-
lib/ruby-prof/version.rb Thu, 25 Aug 2016 10:46:05 +0200
|
28
|
-
lib/unprof.rb Tue, 29 Jan 2013 16:43:39 +0100
|
29
|
-
ext/ruby_prof/ruby_prof.c Sun, 13 Mar 2016 20:27:23 +0100
|
30
|
-
README.rdoc Fri, 17 Jun 2016 20:01:16 +0200
|
31
|
-
LICENSE Tue, 20 May 2014 07:16:27 +0200
|
data/doc/css/fonts.css
DELETED
@@ -1,167 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
3
|
-
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
4
|
-
* trademark of Adobe Systems Incorporated in the United States and/or other
|
5
|
-
* countries.
|
6
|
-
*
|
7
|
-
* This Font Software is licensed under the SIL Open Font License, Version
|
8
|
-
* 1.1.
|
9
|
-
*
|
10
|
-
* This license is copied below, and is also available with a FAQ at:
|
11
|
-
* http://scripts.sil.org/OFL
|
12
|
-
*/
|
13
|
-
|
14
|
-
@font-face {
|
15
|
-
font-family: "Source Code Pro";
|
16
|
-
font-style: normal;
|
17
|
-
font-weight: 400;
|
18
|
-
src: local("Source Code Pro"),
|
19
|
-
local("SourceCodePro-Regular"),
|
20
|
-
url("fonts/SourceCodePro-Regular.ttf") format("truetype");
|
21
|
-
}
|
22
|
-
|
23
|
-
@font-face {
|
24
|
-
font-family: "Source Code Pro";
|
25
|
-
font-style: normal;
|
26
|
-
font-weight: 700;
|
27
|
-
src: local("Source Code Pro Bold"),
|
28
|
-
local("SourceCodePro-Bold"),
|
29
|
-
url("fonts/SourceCodePro-Bold.ttf") format("truetype");
|
30
|
-
}
|
31
|
-
|
32
|
-
/*
|
33
|
-
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
34
|
-
* with Reserved Font Name Lato.
|
35
|
-
*
|
36
|
-
* This Font Software is licensed under the SIL Open Font License, Version
|
37
|
-
* 1.1.
|
38
|
-
*
|
39
|
-
* This license is copied below, and is also available with a FAQ at:
|
40
|
-
* http://scripts.sil.org/OFL
|
41
|
-
*/
|
42
|
-
|
43
|
-
@font-face {
|
44
|
-
font-family: "Lato";
|
45
|
-
font-style: normal;
|
46
|
-
font-weight: 300;
|
47
|
-
src: local("Lato Light"),
|
48
|
-
local("Lato-Light"),
|
49
|
-
url("fonts/Lato-Light.ttf") format("truetype");
|
50
|
-
}
|
51
|
-
|
52
|
-
@font-face {
|
53
|
-
font-family: "Lato";
|
54
|
-
font-style: italic;
|
55
|
-
font-weight: 300;
|
56
|
-
src: local("Lato Light Italic"),
|
57
|
-
local("Lato-LightItalic"),
|
58
|
-
url("fonts/Lato-LightItalic.ttf") format("truetype");
|
59
|
-
}
|
60
|
-
|
61
|
-
@font-face {
|
62
|
-
font-family: "Lato";
|
63
|
-
font-style: normal;
|
64
|
-
font-weight: 700;
|
65
|
-
src: local("Lato Regular"),
|
66
|
-
local("Lato-Regular"),
|
67
|
-
url("fonts/Lato-Regular.ttf") format("truetype");
|
68
|
-
}
|
69
|
-
|
70
|
-
@font-face {
|
71
|
-
font-family: "Lato";
|
72
|
-
font-style: italic;
|
73
|
-
font-weight: 700;
|
74
|
-
src: local("Lato Italic"),
|
75
|
-
local("Lato-Italic"),
|
76
|
-
url("fonts/Lato-RegularItalic.ttf") format("truetype");
|
77
|
-
}
|
78
|
-
|
79
|
-
/*
|
80
|
-
* -----------------------------------------------------------
|
81
|
-
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
82
|
-
* -----------------------------------------------------------
|
83
|
-
*
|
84
|
-
* PREAMBLE
|
85
|
-
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
86
|
-
* development of collaborative font projects, to support the font creation
|
87
|
-
* efforts of academic and linguistic communities, and to provide a free and
|
88
|
-
* open framework in which fonts may be shared and improved in partnership
|
89
|
-
* with others.
|
90
|
-
*
|
91
|
-
* The OFL allows the licensed fonts to be used, studied, modified and
|
92
|
-
* redistributed freely as long as they are not sold by themselves. The
|
93
|
-
* fonts, including any derivative works, can be bundled, embedded,
|
94
|
-
* redistributed and/or sold with any software provided that any reserved
|
95
|
-
* names are not used by derivative works. The fonts and derivatives,
|
96
|
-
* however, cannot be released under any other type of license. The
|
97
|
-
* requirement for fonts to remain under this license does not apply
|
98
|
-
* to any document created using the fonts or their derivatives.
|
99
|
-
*
|
100
|
-
* DEFINITIONS
|
101
|
-
* "Font Software" refers to the set of files released by the Copyright
|
102
|
-
* Holder(s) under this license and clearly marked as such. This may
|
103
|
-
* include source files, build scripts and documentation.
|
104
|
-
*
|
105
|
-
* "Reserved Font Name" refers to any names specified as such after the
|
106
|
-
* copyright statement(s).
|
107
|
-
*
|
108
|
-
* "Original Version" refers to the collection of Font Software components as
|
109
|
-
* distributed by the Copyright Holder(s).
|
110
|
-
*
|
111
|
-
* "Modified Version" refers to any derivative made by adding to, deleting,
|
112
|
-
* or substituting -- in part or in whole -- any of the components of the
|
113
|
-
* Original Version, by changing formats or by porting the Font Software to a
|
114
|
-
* new environment.
|
115
|
-
*
|
116
|
-
* "Author" refers to any designer, engineer, programmer, technical
|
117
|
-
* writer or other person who contributed to the Font Software.
|
118
|
-
*
|
119
|
-
* PERMISSION & CONDITIONS
|
120
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
121
|
-
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
122
|
-
* redistribute, and sell modified and unmodified copies of the Font
|
123
|
-
* Software, subject to the following conditions:
|
124
|
-
*
|
125
|
-
* 1) Neither the Font Software nor any of its individual components,
|
126
|
-
* in Original or Modified Versions, may be sold by itself.
|
127
|
-
*
|
128
|
-
* 2) Original or Modified Versions of the Font Software may be bundled,
|
129
|
-
* redistributed and/or sold with any software, provided that each copy
|
130
|
-
* contains the above copyright notice and this license. These can be
|
131
|
-
* included either as stand-alone text files, human-readable headers or
|
132
|
-
* in the appropriate machine-readable metadata fields within text or
|
133
|
-
* binary files as long as those fields can be easily viewed by the user.
|
134
|
-
*
|
135
|
-
* 3) No Modified Version of the Font Software may use the Reserved Font
|
136
|
-
* Name(s) unless explicit written permission is granted by the corresponding
|
137
|
-
* Copyright Holder. This restriction only applies to the primary font name as
|
138
|
-
* presented to the users.
|
139
|
-
*
|
140
|
-
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
141
|
-
* Software shall not be used to promote, endorse or advertise any
|
142
|
-
* Modified Version, except to acknowledge the contribution(s) of the
|
143
|
-
* Copyright Holder(s) and the Author(s) or with their explicit written
|
144
|
-
* permission.
|
145
|
-
*
|
146
|
-
* 5) The Font Software, modified or unmodified, in part or in whole,
|
147
|
-
* must be distributed entirely under this license, and must not be
|
148
|
-
* distributed under any other license. The requirement for fonts to
|
149
|
-
* remain under this license does not apply to any document created
|
150
|
-
* using the Font Software.
|
151
|
-
*
|
152
|
-
* TERMINATION
|
153
|
-
* This license becomes null and void if any of the above conditions are
|
154
|
-
* not met.
|
155
|
-
*
|
156
|
-
* DISCLAIMER
|
157
|
-
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
158
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
159
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
160
|
-
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
161
|
-
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
162
|
-
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
163
|
-
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
164
|
-
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
165
|
-
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
166
|
-
*/
|
167
|
-
|