ruby-prof 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/doc/LICENSE.html +11 -14
- data/doc/README_rdoc.html +106 -109
- data/doc/Rack.html +6 -9
- data/doc/Rack/RubyProf.html +12 -15
- data/doc/RubyProf.html +11 -13
- data/doc/RubyProf/AbstractPrinter.html +7 -10
- data/doc/RubyProf/AggregateCallInfo.html +6 -9
- data/doc/RubyProf/CallInfo.html +8 -11
- data/doc/RubyProf/CallInfoPrinter.html +7 -10
- data/doc/RubyProf/CallInfoVisitor.html +6 -9
- data/doc/RubyProf/CallStackPrinter.html +48 -51
- data/doc/RubyProf/CallTreePrinter.html +14 -17
- data/doc/RubyProf/Cmd.html +44 -47
- data/doc/RubyProf/DotPrinter.html +8 -11
- data/doc/RubyProf/FlatPrinter.html +6 -9
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +9 -12
- data/doc/RubyProf/GraphHtmlPrinter.html +14 -18
- data/doc/RubyProf/GraphPrinter.html +6 -9
- data/doc/RubyProf/MethodInfo.html +8 -11
- data/doc/RubyProf/MultiPrinter.html +6 -9
- data/doc/RubyProf/Profile.html +7 -10
- data/doc/RubyProf/ProfileTask.html +18 -20
- data/doc/RubyProf/Thread.html +6 -9
- data/doc/created.rid +4 -4
- data/doc/{fonts.css → css/fonts.css} +0 -0
- data/doc/{rdoc.css → css/rdoc.css} +11 -1
- data/doc/examples/flat_txt.html +8 -11
- data/doc/examples/graph_html.html +8 -10
- data/doc/examples/graph_txt.html +13 -16
- data/doc/index.html +108 -109
- data/doc/js/darkfish.js +32 -11
- data/doc/js/jquery.js +4 -18
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +9 -9
- data/ext/ruby_prof/ruby_prof.c +2 -2
- data/lib/ruby-prof/version.rb +1 -1
- data/ruby-prof.gemspec +1 -1
- data/test/aggregate_test.rb +1 -1
- data/test/basic_test.rb +5 -5
- data/test/block_test.rb +74 -0
- data/test/call_info_test.rb +1 -1
- data/test/call_info_visitor_test.rb +1 -1
- data/test/duplicate_names_test.rb +1 -1
- data/test/dynamic_method_test.rb +37 -56
- data/test/enumerable_test.rb +7 -2
- data/test/exceptions_test.rb +2 -2
- data/test/exclude_threads_test.rb +1 -1
- data/test/fiber_test.rb +1 -1
- data/test/line_number_test.rb +1 -1
- data/test/measure_allocations_test.rb +1 -1
- data/test/measure_cpu_time_test.rb +1 -1
- data/test/measure_gc_runs_test.rb +1 -1
- data/test/measure_gc_time_test.rb +1 -1
- data/test/measure_memory_test.rb +2 -2
- data/test/measure_process_time_test.rb +1 -1
- data/test/measure_wall_time_test.rb +2 -2
- data/test/method_elimination_test.rb +1 -1
- data/test/module_test.rb +1 -1
- data/test/multi_printer_test.rb +1 -1
- data/test/pause_resume_test.rb +1 -1
- data/test/printers_test.rb +5 -5
- data/test/rack_test.rb +2 -2
- data/test/recursive_test.rb +1 -1
- data/test/singleton_test.rb +1 -1
- data/test/stack_printer_test.rb +1 -1
- data/test/stack_test.rb +1 -1
- data/test/start_stop_test.rb +4 -4
- data/test/test_helper.rb +8 -1
- data/test/thread_test.rb +1 -1
- data/test/unique_call_path_test.rb +2 -2
- data/test/yarv_test.rb +1 -1
- metadata +64 -71
data/doc/Rack.html
CHANGED
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>module Rack - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="./fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="./rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "./";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="./js/jquery.js"></script>
|
|
17
|
-
<script src="./js/navigation.js"></script>
|
|
18
|
-
<script src="./js/search_index.js"></script>
|
|
19
|
-
<script src="./js/search.js"></script>
|
|
20
|
-
<script src="./js/searcher.js"></script>
|
|
21
14
|
<script src="./js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="module">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -92,7 +89,7 @@
|
|
|
92
89
|
|
|
93
90
|
<footer id="validator-badges" role="contentinfo">
|
|
94
91
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
95
|
-
<p>Generated by <a href="http://
|
|
96
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
92
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
93
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
97
94
|
</footer>
|
|
98
95
|
|
data/doc/Rack/RubyProf.html
CHANGED
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class Rack::RubyProf - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -141,10 +138,10 @@
|
|
|
141
138
|
<span class="ruby-ivar">@tmpdir</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:path</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">tmpdir</span>
|
|
142
139
|
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-ivar">@tmpdir</span>)
|
|
143
140
|
|
|
144
|
-
<span class="ruby-ivar">@printer_klasses</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:printers</span>] <span class="ruby-operator">||</span> {<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">FlatPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string"
|
|
145
|
-
<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">GraphPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string"
|
|
146
|
-
<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">GraphHtmlPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string"
|
|
147
|
-
<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">CallStackPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string"
|
|
141
|
+
<span class="ruby-ivar">@printer_klasses</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:printers</span>] <span class="ruby-operator">||</span> {<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">FlatPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string">'flat.txt'</span>,
|
|
142
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">GraphPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string">'graph.txt'</span>,
|
|
143
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">GraphHtmlPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string">'graph.html'</span>,
|
|
144
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">CallStackPrinter</span> =<span class="ruby-operator">></span> <span class="ruby-string">'call_stack.html'</span>}
|
|
148
145
|
|
|
149
146
|
<span class="ruby-ivar">@skip_paths</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:skip_paths</span>] <span class="ruby-operator">||</span> [<span class="ruby-regexp">%r{^/assets}</span>, <span class="ruby-regexp">%r{\.css$}</span>, <span class="ruby-regexp">%r{\.js$}</span>, <span class="ruby-regexp">%r{\.png$}</span>, <span class="ruby-regexp">%r{\.jpeg$}</span>, <span class="ruby-regexp">%r{\.jpg$}</span>, <span class="ruby-regexp">%r{\.gif$}</span>]
|
|
150
147
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -197,7 +194,7 @@
|
|
|
197
194
|
<span class="ruby-identifier">result</span> = <span class="ruby-ivar">@app</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">env</span>)
|
|
198
195
|
<span class="ruby-keyword">end</span>
|
|
199
196
|
|
|
200
|
-
<span class="ruby-identifier">path</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-string"
|
|
197
|
+
<span class="ruby-identifier">path</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-string">'/'</span>, <span class="ruby-string">'-'</span>)
|
|
201
198
|
<span class="ruby-identifier">path</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span>)
|
|
202
199
|
|
|
203
200
|
<span class="ruby-identifier">print</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">path</span>)
|
|
@@ -238,7 +235,7 @@
|
|
|
238
235
|
<span class="ruby-ivar">@printer_klasses</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">printer_klass</span>, <span class="ruby-identifier">base_name</span><span class="ruby-operator">|</span>
|
|
239
236
|
<span class="ruby-identifier">printer</span> = <span class="ruby-identifier">printer_klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">data</span>)
|
|
240
237
|
<span class="ruby-identifier">file_name</span> = <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@tmpdir</span>, <span class="ruby-node">"#{path}-#{base_name}"</span>)
|
|
241
|
-
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file_name</span>, <span class="ruby-string"
|
|
238
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file_name</span>, <span class="ruby-string">'wb'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
|
|
242
239
|
<span class="ruby-identifier">printer</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">file</span>, <span class="ruby-ivar">@options</span>)
|
|
243
240
|
<span class="ruby-keyword">end</span>
|
|
244
241
|
<span class="ruby-keyword">end</span>
|
|
@@ -261,7 +258,7 @@
|
|
|
261
258
|
|
|
262
259
|
<footer id="validator-badges" role="contentinfo">
|
|
263
260
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
264
|
-
<p>Generated by <a href="http://
|
|
265
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
261
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
262
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
266
263
|
</footer>
|
|
267
264
|
|
data/doc/RubyProf.html
CHANGED
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>module RubyProf - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="./fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="./rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "./";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="./js/jquery.js"></script>
|
|
17
|
-
<script src="./js/navigation.js"></script>
|
|
18
|
-
<script src="./js/search_index.js"></script>
|
|
19
|
-
<script src="./js/search.js"></script>
|
|
20
|
-
<script src="./js/searcher.js"></script>
|
|
21
14
|
<script src="./js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="module">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -121,10 +118,11 @@
|
|
|
121
118
|
|
|
122
119
|
<section class="description">
|
|
123
120
|
|
|
124
|
-
<p>The call info visitor class does a depth-first traversal across a
|
|
125
|
-
call stack. At each call_info node, the visitor executes the
|
|
126
|
-
provided in the visit method. The block is passed two parameters,
|
|
127
|
-
event and the call_info instance. Event will be either :enter or
|
|
121
|
+
<p>The call info visitor class does a depth-first traversal across a
|
|
122
|
+
thread's call stack. At each call_info node, the visitor executes the
|
|
123
|
+
block provided in the visit method. The block is passed two parameters,
|
|
124
|
+
the event and the call_info instance. Event will be either :enter or
|
|
125
|
+
:exit.</p>
|
|
128
126
|
|
|
129
127
|
<pre class="ruby"><span class="ruby-identifier">visitor</span> = <span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">CallInfoVisitor</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">threads</span>.<span class="ruby-identifier">first</span>)
|
|
130
128
|
|
|
@@ -961,7 +959,7 @@ collection. This requires a patched Ruby interpreter.*/</p>
|
|
|
961
959
|
|
|
962
960
|
<footer id="validator-badges" role="contentinfo">
|
|
963
961
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
964
|
-
<p>Generated by <a href="http://
|
|
965
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
962
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
963
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
966
964
|
</footer>
|
|
967
965
|
|
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class RubyProf::AbstractPrinter - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -476,7 +473,7 @@ options.</p>
|
|
|
476
473
|
for it to be printed out in the report.
|
|
477
474
|
Default value is 0.
|
|
478
475
|
|
|
479
|
-
:print_file - True or false. Specifies if a method
|
|
476
|
+
:print_file - True or false. Specifies if a method's source
|
|
480
477
|
file should be printed. Default value if false.
|
|
481
478
|
|
|
482
479
|
:sort_method - Specifies method used for sorting method infos.
|
|
@@ -543,7 +540,7 @@ options.</p>
|
|
|
543
540
|
|
|
544
541
|
<footer id="validator-badges" role="contentinfo">
|
|
545
542
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
546
|
-
<p>Generated by <a href="http://
|
|
547
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
543
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
544
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
548
545
|
</footer>
|
|
549
546
|
|
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class RubyProf::AggregateCallInfo - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -534,7 +531,7 @@
|
|
|
534
531
|
|
|
535
532
|
<footer id="validator-badges" role="contentinfo">
|
|
536
533
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
537
|
-
<p>Generated by <a href="http://
|
|
538
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
534
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
535
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
539
536
|
</footer>
|
|
540
537
|
|
data/doc/RubyProf/CallInfo.html
CHANGED
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class RubyProf::CallInfo - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -166,7 +163,7 @@
|
|
|
166
163
|
<pre><span class="ruby-comment"># File lib/ruby-prof/call_info.rb, line 25</span>
|
|
167
164
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">call_sequence</span>
|
|
168
165
|
<span class="ruby-ivar">@call_sequence</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
|
|
169
|
-
<span class="ruby-identifier">stack</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">method</span><span class="ruby-operator">|</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">full_name</span>}.<span class="ruby-identifier">join</span>(<span class="ruby-string"
|
|
166
|
+
<span class="ruby-identifier">stack</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">method</span><span class="ruby-operator">|</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">full_name</span>}.<span class="ruby-identifier">join</span>(<span class="ruby-string">'->'</span>)
|
|
170
167
|
<span class="ruby-keyword">end</span>
|
|
171
168
|
<span class="ruby-keyword">end</span></pre>
|
|
172
169
|
</div>
|
|
@@ -276,7 +273,7 @@ from both praent end self.</p>
|
|
|
276
273
|
<div class="method-description">
|
|
277
274
|
|
|
278
275
|
<p>find a specific call in list of children. returns nil if not found. note:
|
|
279
|
-
there can
|
|
276
|
+
there can't be more than one child with a given target method. in other
|
|
280
277
|
words: x.children.grep{|y|y.target==m}.size <= 1 for all method infos m
|
|
281
278
|
and call infos x</p>
|
|
282
279
|
|
|
@@ -465,7 +462,7 @@ merges children of other into children of self.</p>
|
|
|
465
462
|
|
|
466
463
|
<footer id="validator-badges" role="contentinfo">
|
|
467
464
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
468
|
-
<p>Generated by <a href="http://
|
|
469
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
465
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
466
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
470
467
|
</footer>
|
|
471
468
|
|
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class RubyProf::CallInfoPrinter - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -80,7 +77,7 @@
|
|
|
80
77
|
|
|
81
78
|
<p>Prints out the call graph based on <a href="CallInfo.html">CallInfo</a>
|
|
82
79
|
instances. This is mainly for debugging purposes as it provides access
|
|
83
|
-
into into RubyProf
|
|
80
|
+
into into RubyProf's internals.</p>
|
|
84
81
|
|
|
85
82
|
</section>
|
|
86
83
|
|
|
@@ -117,7 +114,7 @@ into into RubyProf’s internals.</p>
|
|
|
117
114
|
|
|
118
115
|
<footer id="validator-badges" role="contentinfo">
|
|
119
116
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
120
|
-
<p>Generated by <a href="http://
|
|
121
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
117
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
118
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
122
119
|
</footer>
|
|
123
120
|
|
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class RubyProf::CallInfoVisitor - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -197,7 +194,7 @@
|
|
|
197
194
|
|
|
198
195
|
<footer id="validator-badges" role="contentinfo">
|
|
199
196
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
200
|
-
<p>Generated by <a href="http://
|
|
201
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
197
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
198
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
202
199
|
</footer>
|
|
203
200
|
|
|
@@ -6,20 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
<title>class RubyProf::CallStackPrinter - ruby-prof</title>
|
|
8
8
|
|
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
-
|
|
12
9
|
<script type="text/javascript">
|
|
13
10
|
var rdoc_rel_prefix = "../";
|
|
14
11
|
</script>
|
|
15
12
|
|
|
16
13
|
<script src="../js/jquery.js"></script>
|
|
17
|
-
<script src="../js/navigation.js"></script>
|
|
18
|
-
<script src="../js/search_index.js"></script>
|
|
19
|
-
<script src="../js/search.js"></script>
|
|
20
|
-
<script src="../js/searcher.js"></script>
|
|
21
14
|
<script src="../js/darkfish.js"></script>
|
|
22
15
|
|
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
<body id="top" role="document" class="class">
|
|
25
22
|
<nav role="navigation">
|
|
@@ -220,7 +217,7 @@
|
|
|
220
217
|
<div class="method-source-code" id="arguments-source">
|
|
221
218
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_stack_printer.rb, line 166</span>
|
|
222
219
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">arguments</span>
|
|
223
|
-
<span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string"
|
|
220
|
+
<span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">' '</span>)
|
|
224
221
|
<span class="ruby-keyword">end</span></pre>
|
|
225
222
|
</div>
|
|
226
223
|
|
|
@@ -297,7 +294,7 @@
|
|
|
297
294
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">copy_image_files</span>
|
|
298
295
|
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">File</span>)
|
|
299
296
|
<span class="ruby-identifier">target_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">path</span>)
|
|
300
|
-
<span class="ruby-identifier">image_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string"
|
|
297
|
+
<span class="ruby-identifier">image_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string">'..'</span>, <span class="ruby-string">'images'</span>)
|
|
301
298
|
<span class="ruby-node">%w(empty plus minus)</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">img</span><span class="ruby-operator">|</span>
|
|
302
299
|
<span class="ruby-identifier">source_file</span> = <span class="ruby-node">"#{image_dir}/#{img}.png"</span>
|
|
303
300
|
<span class="ruby-identifier">target_file</span> = <span class="ruby-node">"#{target_dir}/#{img}.png"</span>
|
|
@@ -404,7 +401,7 @@
|
|
|
404
401
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">graph_link</span>(<span class="ruby-identifier">call_info</span>)
|
|
405
402
|
<span class="ruby-identifier">total_calls</span> = <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">target</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">t</span>, <span class="ruby-identifier">ci</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">ci</span>.<span class="ruby-identifier">called</span>}
|
|
406
403
|
<span class="ruby-identifier">href</span> = <span class="ruby-node">"#{@graph_html}##{method_href(call_info.target)}"</span>
|
|
407
|
-
<span class="ruby-identifier">totals</span> = <span class="ruby-ivar">@graph_html</span> <span class="ruby-operator">?</span> <span class="ruby-node">"<a href
|
|
404
|
+
<span class="ruby-identifier">totals</span> = <span class="ruby-ivar">@graph_html</span> <span class="ruby-operator">?</span> <span class="ruby-node">"<a href='#{href}'>#{total_calls}</a>"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">total_calls</span>.<span class="ruby-identifier">to_s</span>
|
|
408
405
|
<span class="ruby-node">"[#{call_info.called} calls, #{totals} total]"</span>
|
|
409
406
|
<span class="ruby-keyword">end</span></pre>
|
|
410
407
|
</div>
|
|
@@ -550,7 +547,7 @@
|
|
|
550
547
|
for it to be printed out in the report.
|
|
551
548
|
Default value is 0.
|
|
552
549
|
|
|
553
|
-
:print_file - True or false. Specifies if a method
|
|
550
|
+
:print_file - True or false. Specifies if a method's source
|
|
554
551
|
file should be printed. Default value if false.
|
|
555
552
|
|
|
556
553
|
:threshold - a float from 0 to 100 that sets the threshold of
|
|
@@ -682,7 +679,7 @@ end_commands</span>
|
|
|
682
679
|
<div class="method-source-code" id="print_css-source">
|
|
683
680
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_stack_printer.rb, line 210</span>
|
|
684
681
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_css</span>
|
|
685
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value"><<
|
|
682
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value"><<-'end_css'
|
|
686
683
|
<style type="text/css">
|
|
687
684
|
<!--
|
|
688
685
|
body {
|
|
@@ -816,7 +813,7 @@ end_css</span>
|
|
|
816
813
|
<div class="method-source-code" id="print_footer-source">
|
|
817
814
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_stack_printer.rb, line 206</span>
|
|
818
815
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_footer</span>
|
|
819
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string"
|
|
816
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">'<div id="sentinel"></div></div></body></html>'</span>
|
|
820
817
|
<span class="ruby-keyword">end</span></pre>
|
|
821
818
|
</div>
|
|
822
819
|
|
|
@@ -850,11 +847,11 @@ end_css</span>
|
|
|
850
847
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_stack_printer.rb, line 194</span>
|
|
851
848
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_header</span>
|
|
852
849
|
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">"<html><head>"</span>
|
|
853
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string"
|
|
850
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">'<meta http-equiv="content-type" content="text/html; charset=utf-8">'</span>
|
|
854
851
|
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"<title>#{h title}</title>"</span>
|
|
855
852
|
<span class="ruby-identifier">print_css</span>
|
|
856
853
|
<span class="ruby-identifier">print_java_script</span>
|
|
857
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string"
|
|
854
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">'</head><body><div style="display: inline-block;">'</span>
|
|
858
855
|
<span class="ruby-identifier">print_title_bar</span>
|
|
859
856
|
<span class="ruby-identifier">print_commands</span>
|
|
860
857
|
<span class="ruby-identifier">print_help</span>
|
|
@@ -890,7 +887,7 @@ end_css</span>
|
|
|
890
887
|
<div class="method-source-code" id="print_help-source">
|
|
891
888
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_stack_printer.rb, line 753</span>
|
|
892
889
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_help</span>
|
|
893
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value"><<
|
|
890
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value"><<-'end_help'
|
|
894
891
|
<div style="display: none;" id="help">
|
|
895
892
|
<img src="empty.png"> Enter a decimal value <i>d</i> into the threshold field and click "Apply"
|
|
896
893
|
to hide all nodes marked with time values lower than <i>d</i>.<br>
|
|
@@ -937,7 +934,7 @@ end_help</span>
|
|
|
937
934
|
<div class="method-source-code" id="print_java_script-source">
|
|
938
935
|
<pre><span class="ruby-comment"># File lib/ruby-prof/printers/call_stack_printer.rb, line 315</span>
|
|
939
936
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_java_script</span>
|
|
940
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value"><<
|
|
937
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value"><<-'end_java_script'
|
|
941
938
|
<script type="text/javascript">
|
|
942
939
|
/*
|
|
943
940
|
Copyright (C) 2005,2009 Stefan Kaes
|
|
@@ -974,7 +971,7 @@ function findUlChild(li){
|
|
|
974
971
|
|
|
975
972
|
function isLeafNode(li) {
|
|
976
973
|
var img = li.firstChild;
|
|
977
|
-
return (img.src.indexOf(
|
|
974
|
+
return (img.src.indexOf('empty.png') > -1);
|
|
978
975
|
}
|
|
979
976
|
|
|
980
977
|
function hideLI(li) {
|
|
@@ -982,11 +979,11 @@ function hideLI(li) {
|
|
|
982
979
|
return;
|
|
983
980
|
|
|
984
981
|
var img = li.firstChild;
|
|
985
|
-
img.src =
|
|
982
|
+
img.src = 'plus.png';
|
|
986
983
|
|
|
987
984
|
var ul = findUlChild(li);
|
|
988
985
|
if (ul) {
|
|
989
|
-
ul.style.display =
|
|
986
|
+
ul.style.display = 'none';
|
|
990
987
|
hideUL(ul);
|
|
991
988
|
}
|
|
992
989
|
}
|
|
@@ -996,11 +993,11 @@ function showLI(li) {
|
|
|
996
993
|
return;
|
|
997
994
|
|
|
998
995
|
var img = li.firstChild;
|
|
999
|
-
img.src =
|
|
996
|
+
img.src = 'minus.png';
|
|
1000
997
|
|
|
1001
998
|
var ul = findUlChild(li);
|
|
1002
999
|
if (ul) {
|
|
1003
|
-
ul.style.display =
|
|
1000
|
+
ul.style.display = 'block';
|
|
1004
1001
|
showUL(ul);
|
|
1005
1002
|
}
|
|
1006
1003
|
}
|
|
@@ -1017,7 +1014,7 @@ function toggleLI(li) {
|
|
|
1017
1014
|
|
|
1018
1015
|
function aboveThreshold(text, threshold) {
|
|
1019
1016
|
var match = text.match(/\d+[.,]\d+/);
|
|
1020
|
-
return (match && parseFloat(match[0].replace(/,/,
|
|
1017
|
+
return (match && parseFloat(match[0].replace(/,/, '.'))>=threshold);
|
|
1021
1018
|
}
|
|
1022
1019
|
|
|
1023
1020
|
function setThresholdLI(li, threshold) {
|
|
@@ -1032,16 +1029,16 @@ function setThresholdLI(li, threshold) {
|
|
|
1032
1029
|
count = setThresholdUL(ul, threshold);
|
|
1033
1030
|
}
|
|
1034
1031
|
if (count>0) {
|
|
1035
|
-
img.src =
|
|
1032
|
+
img.src = 'minus.png';
|
|
1036
1033
|
}
|
|
1037
1034
|
else {
|
|
1038
|
-
img.src =
|
|
1035
|
+
img.src = 'empty.png';
|
|
1039
1036
|
}
|
|
1040
1037
|
if (visible) {
|
|
1041
|
-
li.style.display =
|
|
1038
|
+
li.style.display = 'block'
|
|
1042
1039
|
}
|
|
1043
1040
|
else {
|
|
1044
|
-
li.style.display =
|
|
1041
|
+
li.style.display = 'none'
|
|
1045
1042
|
}
|
|
1046
1043
|
return visible;
|
|
1047
1044
|
}
|
|
@@ -1057,10 +1054,10 @@ function setThresholdUL(node, threshold) {
|
|
|
1057
1054
|
|
|
1058
1055
|
var visible = (count > 0) ? 1 : 0;
|
|
1059
1056
|
if (visible) {
|
|
1060
|
-
node.style.display =
|
|
1057
|
+
node.style.display = 'block';
|
|
1061
1058
|
}
|
|
1062
1059
|
else {
|
|
1063
|
-
node.style.display =
|
|
1060
|
+
node.style.display = 'none';
|
|
1064
1061
|
}
|
|
1065
1062
|
return visible;
|
|
1066
1063
|
}
|
|
@@ -1068,24 +1065,24 @@ function setThresholdUL(node, threshold) {
|
|
|
1068
1065
|
function toggleChildren(img, event) {
|
|
1069
1066
|
event.cancelBubble=true;
|
|
1070
1067
|
|
|
1071
|
-
if (img.src.indexOf(
|
|
1068
|
+
if (img.src.indexOf('empty.png') > -1)
|
|
1072
1069
|
return;
|
|
1073
1070
|
|
|
1074
|
-
var minus = (img.src.indexOf(
|
|
1071
|
+
var minus = (img.src.indexOf('minus.png') > -1);
|
|
1075
1072
|
|
|
1076
1073
|
if (minus) {
|
|
1077
|
-
img.src =
|
|
1074
|
+
img.src = 'plus.png';
|
|
1078
1075
|
}
|
|
1079
1076
|
else
|
|
1080
|
-
img.src =
|
|
1077
|
+
img.src = 'minus.png';
|
|
1081
1078
|
|
|
1082
1079
|
var li = img.parentNode;
|
|
1083
1080
|
var ul = findUlChild(li);
|
|
1084
1081
|
if (ul) {
|
|
1085
1082
|
if (minus)
|
|
1086
|
-
ul.style.display =
|
|
1083
|
+
ul.style.display = 'none';
|
|
1087
1084
|
else
|
|
1088
|
-
ul.style.display =
|
|
1085
|
+
ul.style.display = 'block';
|
|
1089
1086
|
}
|
|
1090
1087
|
if (minus)
|
|
1091
1088
|
moveSelectionIfNecessary(li);
|
|
@@ -1093,27 +1090,27 @@ function toggleChildren(img, event) {
|
|
|
1093
1090
|
|
|
1094
1091
|
function showChildren(li) {
|
|
1095
1092
|
var img = li.firstChild;
|
|
1096
|
-
if (img.src.indexOf(
|
|
1093
|
+
if (img.src.indexOf('empty.png') > -1)
|
|
1097
1094
|
return;
|
|
1098
|
-
img.src =
|
|
1095
|
+
img.src = 'minus.png';
|
|
1099
1096
|
|
|
1100
1097
|
var ul = findUlChild(li);
|
|
1101
1098
|
if (ul) {
|
|
1102
|
-
ul.style.display =
|
|
1099
|
+
ul.style.display = 'block';
|
|
1103
1100
|
}
|
|
1104
1101
|
}
|
|
1105
1102
|
|
|
1106
1103
|
function setThreshold() {
|
|
1107
1104
|
var tv = document.getElementById("threshold").value;
|
|
1108
1105
|
if (tv.match(/[0-9]+([.,][0-9]+)?/)) {
|
|
1109
|
-
var f = parseFloat(tv.replace(/,/,
|
|
1106
|
+
var f = parseFloat(tv.replace(/,/, '.'));
|
|
1110
1107
|
var threads = document.getElementsByName("thread");
|
|
1111
1108
|
var l = threads.length;
|
|
1112
1109
|
for ( var i = 0; i < l ; i++ ) {
|
|
1113
1110
|
setThresholdUL(threads[i], f);
|
|
1114
1111
|
}
|
|
1115
1112
|
var p = selectedNode;
|
|
1116
|
-
while (p && p.style.display
|
|
1113
|
+
while (p && p.style.display=='none')
|
|
1117
1114
|
p=p.parentNode.parentNode;
|
|
1118
1115
|
if (p && p.nodeName=="LI")
|
|
1119
1116
|
selectNode(p);
|
|
@@ -1146,11 +1143,11 @@ function toggleHelp(node) {
|
|
|
1146
1143
|
var help = document.getElementById("help");
|
|
1147
1144
|
if (node.value == "Show Help") {
|
|
1148
1145
|
node.value = "Hide Help";
|
|
1149
|
-
help.style.display =
|
|
1146
|
+
help.style.display = 'block';
|
|
1150
1147
|
}
|
|
1151
1148
|
else {
|
|
1152
1149
|
node.value = "Show Help";
|
|
1153
|
-
help.style.display =
|
|
1150
|
+
help.style.display = 'none';
|
|
1154
1151
|
}
|
|
1155
1152
|
}
|
|
1156
1153
|
|
|
@@ -1187,7 +1184,7 @@ function selectNode(node, event) {
|
|
|
1187
1184
|
|
|
1188
1185
|
function moveUp(){
|
|
1189
1186
|
var p = selectedNode.previousSibling;
|
|
1190
|
-
while (p && p.style.display ==
|
|
1187
|
+
while (p && p.style.display == 'none')
|
|
1191
1188
|
p = p.previousSibling;
|
|
1192
1189
|
if (p && p.nodeName == "LI") {
|
|
1193
1190
|
selectNode(p, null);
|
|
@@ -1196,7 +1193,7 @@ function moveUp(){
|
|
|
1196
1193
|
|
|
1197
1194
|
function moveDown(){
|
|
1198
1195
|
var p = selectedNode.nextSibling;
|
|
1199
|
-
while (p && p.style.display ==
|
|
1196
|
+
while (p && p.style.display == 'none')
|
|
1200
1197
|
p = p.nextSibling;
|
|
1201
1198
|
if (p && p.nodeName == "LI") {
|
|
1202
1199
|
selectNode(p, null);
|
|
@@ -1223,7 +1220,7 @@ function moveRight(){
|
|
|
1223
1220
|
function moveForward(){
|
|
1224
1221
|
if (isLeafNode(selectedNode)) {
|
|
1225
1222
|
var p = selectedNode;
|
|
1226
|
-
while ((p.nextSibling == null || p.nextSibling.style.display
|
|
1223
|
+
while ((p.nextSibling == null || p.nextSibling.style.display=='none') && p.nodeName=="LI") {
|
|
1227
1224
|
p = p.parentNode.parentNode;
|
|
1228
1225
|
}
|
|
1229
1226
|
if (p.nodeName=="LI")
|
|
@@ -1236,20 +1233,20 @@ function moveForward(){
|
|
|
1236
1233
|
|
|
1237
1234
|
function isExpandedNode(li){
|
|
1238
1235
|
var img = li.firstChild;
|
|
1239
|
-
return(img.src.indexOf(
|
|
1236
|
+
return(img.src.indexOf('minus.png')>-1);
|
|
1240
1237
|
}
|
|
1241
1238
|
|
|
1242
1239
|
function moveBackward(){
|
|
1243
1240
|
var p = selectedNode;
|
|
1244
1241
|
var q = p.previousSibling;
|
|
1245
|
-
while (q != null && q.style.display
|
|
1242
|
+
while (q != null && q.style.display=='none')
|
|
1246
1243
|
q = q.previousSibling;
|
|
1247
1244
|
if (q == null) {
|
|
1248
1245
|
p = p.parentNode.parentNode;
|
|
1249
1246
|
} else {
|
|
1250
1247
|
while (!isLeafNode(q) && isExpandedNode(q)) {
|
|
1251
1248
|
q = findUlChild(q).lastChild;
|
|
1252
|
-
while (q.style.display
|
|
1249
|
+
while (q.style.display=='none')
|
|
1253
1250
|
q = q.previousSibling;
|
|
1254
1251
|
}
|
|
1255
1252
|
p = q;
|
|
@@ -1404,7 +1401,7 @@ end_java_script</span>
|
|
|
1404
1401
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">expanded</span>
|
|
1405
1402
|
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-string">"<ul>"</span>
|
|
1406
1403
|
<span class="ruby-keyword">else</span>
|
|
1407
|
-
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-string"
|
|
1404
|
+
<span class="ruby-ivar">@output</span>.<span class="ruby-identifier">print</span> <span class="ruby-string">'<ul style="display:none">'</span>
|
|
1408
1405
|
<span class="ruby-keyword">end</span>
|
|
1409
1406
|
<span class="ruby-identifier">kids</span>.<span class="ruby-identifier">sort_by</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-operator">-</span><span class="ruby-identifier">c</span>.<span class="ruby-identifier">total_time</span>}.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">callinfo</span><span class="ruby-operator">|</span>
|
|
1410
1407
|
<span class="ruby-identifier">print_stack</span> <span class="ruby-identifier">callinfo</span>, <span class="ruby-identifier">total_time</span>
|
|
@@ -1601,7 +1598,7 @@ end_title_bar</span>
|
|
|
1601
1598
|
|
|
1602
1599
|
<footer id="validator-badges" role="contentinfo">
|
|
1603
1600
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
1604
|
-
<p>Generated by <a href="http://
|
|
1605
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
|
1601
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
1602
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
1606
1603
|
</footer>
|
|
1607
1604
|
|