ruby-prof 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>class RubyProf::GraphPrinter - 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">
|
@@ -136,7 +133,7 @@ href="../README_rdoc.html">README</a></p>
|
|
136
133
|
|
137
134
|
<footer id="validator-badges" role="contentinfo">
|
138
135
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
139
|
-
<p>Generated by <a href="http://
|
140
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
136
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
137
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
141
138
|
</footer>
|
142
139
|
|
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>class RubyProf::MethodInfo - 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">
|
@@ -210,7 +207,7 @@
|
|
210
207
|
<div class="method-source-code" id="aggregate_children-source">
|
211
208
|
<pre><span class="ruby-comment"># File lib/ruby-prof/method_info.rb, line 105</span>
|
212
209
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">aggregate_children</span>
|
213
|
-
<span class="ruby-comment"># Group call info
|
210
|
+
<span class="ruby-comment"># Group call info's based on their targets</span>
|
214
211
|
<span class="ruby-identifier">groups</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, <span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
215
212
|
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">target</span>
|
216
213
|
(<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||=</span> []) <span class="ruby-operator"><<</span> <span class="ruby-identifier">call_info</span>
|
@@ -252,7 +249,7 @@
|
|
252
249
|
<div class="method-source-code" id="aggregate_parents-source">
|
253
250
|
<pre><span class="ruby-comment"># File lib/ruby-prof/method_info.rb, line 92</span>
|
254
251
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">aggregate_parents</span>
|
255
|
-
<span class="ruby-comment"># Group call info
|
252
|
+
<span class="ruby-comment"># Group call info's based on their parents</span>
|
256
253
|
<span class="ruby-identifier">groups</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, <span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
|
257
254
|
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">target</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">self</span>
|
258
255
|
(<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||=</span> []) <span class="ruby-operator"><<</span> <span class="ruby-identifier">call_info</span>
|
@@ -682,7 +679,7 @@
|
|
682
679
|
|
683
680
|
<footer id="validator-badges" role="contentinfo">
|
684
681
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
685
|
-
<p>Generated by <a href="http://
|
686
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
682
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
683
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
687
684
|
</footer>
|
688
685
|
|
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>class RubyProf::MultiPrinter - 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">
|
@@ -355,7 +352,7 @@ pofile file, defaults to “profile”.</p>
|
|
355
352
|
|
356
353
|
<footer id="validator-badges" role="contentinfo">
|
357
354
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
358
|
-
<p>Generated by <a href="http://
|
359
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
355
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
356
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
360
357
|
</footer>
|
361
358
|
|
data/doc/RubyProf/Profile.html
CHANGED
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>class RubyProf::Profile - 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">
|
@@ -149,7 +146,7 @@
|
|
149
146
|
|
150
147
|
<p>Returns a new profiler.</p>
|
151
148
|
|
152
|
-
<h2 id="method-c-new-label-Parameters">Parameters<span><a href="#method-c-new-label-Parameters">¶</a> <a href="#
|
149
|
+
<h2 id="method-c-new-label-Parameters">Parameters<span><a href="#method-c-new-label-Parameters">¶</a> <a href="#top">↑</a></span></h2>
|
153
150
|
<dl class="rdoc-list note-list"><dt>mode
|
154
151
|
<dd>
|
155
152
|
<p>Measure mode (optional). Specifies the profile measure mode. If not
|
@@ -761,7 +758,7 @@ prof_threads(VALUE self)
|
|
761
758
|
|
762
759
|
<footer id="validator-badges" role="contentinfo">
|
763
760
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
764
|
-
<p>Generated by <a href="http://
|
765
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
761
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
762
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
766
763
|
</footer>
|
767
764
|
|
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>class RubyProf::ProfileTask - 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">
|
@@ -121,10 +118,10 @@ min_percent - Methods that take less than the specified percent
|
|
121
118
|
|
122
119
|
<p>Example:</p>
|
123
120
|
|
124
|
-
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string"
|
121
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'ruby-prof/task'</span>
|
125
122
|
|
126
123
|
<span class="ruby-constant">RubyProf</span><span class="ruby-operator">::</span><span class="ruby-constant">ProfileTask</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
|
127
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">FileList</span>[<span class="ruby-string"
|
124
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">FileList</span>[<span class="ruby-string">'test/test*.rb'</span>]
|
128
125
|
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">output_dir</span> = <span class="ruby-string">"c:/temp"</span>
|
129
126
|
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">printer</span> = :<span class="ruby-identifier">graph</span>
|
130
127
|
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">min_percent</span> = <span class="ruby-value">10</span>
|
@@ -137,15 +134,16 @@ specified on the command line. This provides an easy way to run just one
|
|
137
134
|
test.</p>
|
138
135
|
|
139
136
|
<p>If rake is invoked with a “TESTOPTS=options” command line option, then the
|
140
|
-
given options are passed to the test process after a
|
141
|
-
Test::Unit options to be passed to the test suite.</p>
|
137
|
+
given options are passed to the test process after a '–'. This
|
138
|
+
allows Test::Unit options to be passed to the test suite.</p>
|
142
139
|
|
143
140
|
<p>Examples:</p>
|
144
141
|
|
145
|
-
<pre>rake profile
|
146
|
-
rake profile TEST=just_one_file
|
147
|
-
rake profile TESTOPTS
|
148
|
-
rake profile TESTOPTS
|
142
|
+
<pre class="ruby"><span class="ruby-identifier">rake</span> <span class="ruby-identifier">profile</span> <span class="ruby-comment"># run tests normally</span>
|
143
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">profile</span> <span class="ruby-constant">TEST</span>=<span class="ruby-identifier">just_one_file</span>.<span class="ruby-identifier">rb</span> <span class="ruby-comment"># run just one test file.</span>
|
144
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">profile</span> <span class="ruby-constant">TESTOPTS</span>=<span class="ruby-string">"-v"</span> <span class="ruby-comment"># run in verbose mode</span>
|
145
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">profile</span> <span class="ruby-constant">TESTOPTS</span>=<span class="ruby-string">"--runner=fox"</span> <span class="ruby-comment"># use the fox test runner</span>
|
146
|
+
</pre>
|
149
147
|
|
150
148
|
</section>
|
151
149
|
|
@@ -283,7 +281,7 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
283
281
|
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 135</span>
|
284
282
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">clean_output_directory</span>
|
285
283
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">output_directory</span>)
|
286
|
-
<span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">output_directory</span> <span class="ruby-operator">+</span> <span class="ruby-string"
|
284
|
+
<span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">output_directory</span> <span class="ruby-operator">+</span> <span class="ruby-string">'/*'</span>)
|
287
285
|
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-identifier">files</span>)
|
288
286
|
<span class="ruby-keyword">end</span>
|
289
287
|
<span class="ruby-keyword">end</span></pre>
|
@@ -435,7 +433,7 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
435
433
|
<div class="method-source-code" id="run_script-source">
|
436
434
|
<pre><span class="ruby-comment"># File lib/ruby-prof/task.rb, line 90</span>
|
437
435
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">run_script</span>(<span class="ruby-identifier">script_path</span>)
|
438
|
-
<span class="ruby-identifier">run_code</span> = <span class="ruby-string"
|
436
|
+
<span class="ruby-identifier">run_code</span> = <span class="ruby-string">''</span>
|
439
437
|
<span class="ruby-constant">RakeFileUtils</span>.<span class="ruby-identifier">verbose</span>(<span class="ruby-ivar">@verbose</span>) <span class="ruby-keyword">do</span>
|
440
438
|
<span class="ruby-identifier">file_name</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">script_path</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">script_path</span>))
|
441
439
|
<span class="ruby-keyword">case</span> <span class="ruby-ivar">@printer</span>
|
@@ -456,7 +454,7 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
456
454
|
<span class="ruby-identifier">puts</span> <span class="ruby-string">"ruby "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">command_line</span>
|
457
455
|
<span class="ruby-comment"># We have to catch the exeption to continue on. However,</span>
|
458
456
|
<span class="ruby-comment"># the error message will have been output to STDERR</span>
|
459
|
-
<span class="ruby-comment"># already by the time we get here so we don
|
457
|
+
<span class="ruby-comment"># already by the time we get here so we don't have to</span>
|
460
458
|
<span class="ruby-comment"># do that again</span>
|
461
459
|
<span class="ruby-keyword">begin</span>
|
462
460
|
<span class="ruby-identifier">ruby</span> <span class="ruby-identifier">command_line</span>
|
@@ -486,7 +484,7 @@ rake profile TESTOPTS="--runner=fox" # use the fox test runner</pre>
|
|
486
484
|
|
487
485
|
<footer id="validator-badges" role="contentinfo">
|
488
486
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
489
|
-
<p>Generated by <a href="http://
|
490
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
487
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
488
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
491
489
|
</footer>
|
492
490
|
|
data/doc/RubyProf/Thread.html
CHANGED
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>class RubyProf::Thread - 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">
|
@@ -196,7 +193,7 @@
|
|
196
193
|
|
197
194
|
<footer id="validator-badges" role="contentinfo">
|
198
195
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
199
|
-
<p>Generated by <a href="http://
|
200
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
196
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
197
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
201
198
|
</footer>
|
202
199
|
|
data/doc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Fri, 16 Jan 2015 14:11:33 +0100
|
2
2
|
bin/ruby-prof Wed, 25 Dec 2013 08:28:55 +0100
|
3
3
|
bin/ruby-prof-check-trace Sun, 10 Mar 2013 10:57:14 +0100
|
4
4
|
examples/flat.txt Tue, 29 Jan 2013 16:43:39 +0100
|
@@ -9,7 +9,7 @@ lib/ruby-prof/aggregate_call_info.rb Wed, 25 Dec 2013 09:41:59 +0100
|
|
9
9
|
lib/ruby-prof/call_info.rb Tue, 29 Jan 2013 16:44:27 +0100
|
10
10
|
lib/ruby-prof/call_info_visitor.rb Wed, 25 Dec 2013 09:43:12 +0100
|
11
11
|
lib/ruby-prof/compatibility.rb Mon, 30 Dec 2013 08:25:04 +0100
|
12
|
-
lib/ruby-prof/method_info.rb
|
12
|
+
lib/ruby-prof/method_info.rb Sun, 28 Dec 2014 16:20:48 +0100
|
13
13
|
lib/ruby-prof/printers/abstract_printer.rb Tue, 29 Jan 2013 16:43:39 +0100
|
14
14
|
lib/ruby-prof/printers/call_info_printer.rb Sun, 10 Mar 2013 10:57:14 +0100
|
15
15
|
lib/ruby-prof/printers/call_stack_printer.rb Sun, 10 Mar 2013 10:57:14 +0100
|
@@ -24,8 +24,8 @@ lib/ruby-prof/profile.rb Wed, 25 Dec 2013 08:59:06 +0100
|
|
24
24
|
lib/ruby-prof/rack.rb Thu, 23 Oct 2014 01:29:30 +0200
|
25
25
|
lib/ruby-prof/task.rb Tue, 29 Jan 2013 16:43:39 +0100
|
26
26
|
lib/ruby-prof/thread.rb Wed, 25 Dec 2013 09:34:14 +0100
|
27
|
-
lib/ruby-prof/version.rb
|
27
|
+
lib/ruby-prof/version.rb Fri, 16 Jan 2015 14:10:17 +0100
|
28
28
|
lib/unprof.rb Tue, 29 Jan 2013 16:43:39 +0100
|
29
|
-
ext/ruby_prof/ruby_prof.c
|
29
|
+
ext/ruby_prof/ruby_prof.c Fri, 16 Jan 2015 14:11:30 +0100
|
30
30
|
README.rdoc Thu, 23 Oct 2014 01:29:30 +0200
|
31
31
|
LICENSE Tue, 20 May 2014 07:16:27 +0200
|
File without changes
|
@@ -23,12 +23,22 @@ h3 span,
|
|
23
23
|
h4 span,
|
24
24
|
h5 span,
|
25
25
|
h6 span {
|
26
|
+
position: relative;
|
27
|
+
|
26
28
|
display: none;
|
27
29
|
padding-left: 1em;
|
30
|
+
line-height: 0;
|
31
|
+
vertical-align: baseline;
|
28
32
|
font-size: 10px;
|
29
|
-
vertical-align: super;
|
30
33
|
}
|
31
34
|
|
35
|
+
h1 span { top: -1.3em; }
|
36
|
+
h2 span { top: -1.2em; }
|
37
|
+
h3 span { top: -1.0em; }
|
38
|
+
h4 span { top: -0.8em; }
|
39
|
+
h5 span { top: -0.5em; }
|
40
|
+
h6 span { top: -0.5em; }
|
41
|
+
|
32
42
|
h1:hover span,
|
33
43
|
h2:hover span,
|
34
44
|
h3:hover span,
|
data/doc/examples/flat_txt.html
CHANGED
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>flat - 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="file">
|
25
22
|
<nav role="navigation">
|
@@ -79,7 +76,7 @@
|
|
79
76
|
|
80
77
|
<main role="main" aria-label="Page examples/flat.txt">
|
81
78
|
|
82
|
-
<h1 id="label-Flat+Profiles">Flat Profiles<span><a href="#label-Flat+Profiles">¶</a> <a href="#
|
79
|
+
<h1 id="label-Flat+Profiles">Flat Profiles<span><a href="#label-Flat+Profiles">¶</a> <a href="#top">↑</a></span></h1>
|
83
80
|
|
84
81
|
<p>Flat profiles show the total amount of time spent in each method. As an
|
85
82
|
example, here is the output from running printers_test.rb.</p>
|
@@ -118,7 +115,7 @@ example, here is the output from running printers_test.rb.</p>
|
|
118
115
|
cumulative - The sum of the time spent in this method and all the methods listed above it.
|
119
116
|
total - The time spent in this method and its children.
|
120
117
|
self - The time spent in this method.
|
121
|
-
children - The time spent in this method
|
118
|
+
children - The time spent in this method's children.
|
122
119
|
calls - The number of times this method was called.
|
123
120
|
self/call - The average time spent per call in this method.
|
124
121
|
total/call - The average time spent per call in this method and its children.
|
@@ -146,7 +143,7 @@ total time of 8.72 seconds.</p>
|
|
146
143
|
|
147
144
|
<footer id="validator-badges" role="contentinfo">
|
148
145
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
149
|
-
<p>Generated by <a href="http://
|
150
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
146
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
147
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
151
148
|
</footer>
|
152
149
|
|
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>graph.html - 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="file">
|
25
22
|
<nav role="navigation">
|
@@ -129,7 +126,8 @@ it</p>
|
|
129
126
|
<p><p>The main advantage of an HTML graph format versus the text format
|
130
127
|
is the use of</p>
|
131
128
|
|
132
|
-
<pre>hyperlinks to jump between methods
|
129
|
+
<pre class="ruby"><span class="ruby-identifier">hyperlinks</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">jump</span> <span class="ruby-identifier">between</span> <span class="ruby-identifier">methods</span>. <span class="ruby-constant">This</span> <span class="ruby-identifier">makes</span> <span class="ruby-identifier">it</span> <span class="ruby-identifier">easier</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">understand</span> <span class="ruby-identifier">the</span> <span class="ruby-identifier">flow</span>
|
130
|
+
</pre>
|
133
131
|
|
134
132
|
<p>of control through a program and which methods take the most
|
135
133
|
time.</p> <p>Below is the output from running printers_test.rb
|
@@ -846,7 +844,7 @@ reproduced in HTML. </p> <p>Profile Report</p></p>
|
|
846
844
|
|
847
845
|
<footer id="validator-badges" role="contentinfo">
|
848
846
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
849
|
-
<p>Generated by <a href="http://
|
850
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
847
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
848
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
851
849
|
</footer>
|
852
850
|
|