ruby-prof 0.13.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +14 -0
- data/README.rdoc +1 -1
- data/Rakefile +2 -3
- data/bin/ruby-prof +4 -4
- data/bin/ruby-prof-check-trace +45 -0
- data/doc/LICENSE.html +49 -88
- data/doc/README_rdoc.html +92 -106
- data/doc/Rack.html +47 -116
- data/doc/Rack/RubyProf.html +119 -174
- data/doc/RubyProf.html +184 -216
- data/doc/RubyProf/AbstractPrinter.html +131 -162
- data/doc/RubyProf/AggregateCallInfo.html +136 -166
- data/doc/RubyProf/CallInfo.html +113 -154
- data/doc/RubyProf/CallInfoPrinter.html +56 -123
- data/doc/RubyProf/CallInfoVisitor.html +87 -216
- data/doc/RubyProf/CallStackPrinter.html +222 -215
- data/doc/RubyProf/CallTreePrinter.html +91 -142
- data/doc/RubyProf/Cmd.html +115 -157
- data/doc/RubyProf/DotPrinter.html +88 -140
- data/doc/RubyProf/FlatPrinter.html +66 -129
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +69 -132
- data/doc/RubyProf/GraphHtmlPrinter.html +115 -166
- data/doc/RubyProf/GraphPrinter.html +58 -125
- data/doc/RubyProf/MethodInfo.html +147 -172
- data/doc/RubyProf/MultiPrinter.html +104 -150
- data/doc/RubyProf/Profile.html +125 -179
- data/doc/RubyProf/ProfileTask.html +117 -157
- data/doc/RubyProf/Test.html +115 -154
- data/doc/RubyProf/Thread.html +87 -147
- data/doc/created.rid +13 -14
- data/doc/examples/flat_txt.html +51 -90
- data/doc/examples/graph_html.html +852 -0
- data/doc/examples/graph_txt.html +64 -92
- data/doc/fonts.css +167 -0
- 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/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/index.html +75 -65
- data/doc/js/darkfish.js +0 -15
- data/doc/js/search.js +20 -5
- data/doc/js/search_index.js +1 -1
- data/doc/rdoc.css +255 -218
- data/doc/table_of_contents.html +751 -353
- data/ext/ruby_prof/extconf.rb +20 -22
- data/ext/ruby_prof/rp_measure_allocations.c +9 -5
- data/ext/ruby_prof/rp_measure_gc_runs.c +8 -0
- data/ext/ruby_prof/rp_measure_gc_time.c +5 -2
- data/ext/ruby_prof/rp_measure_wall_time.c +1 -0
- data/ext/ruby_prof/rp_method.c +0 -9
- data/ext/ruby_prof/rp_method.h +1 -6
- data/ext/ruby_prof/ruby_prof.c +32 -112
- data/ext/ruby_prof/ruby_prof.h +9 -10
- data/lib/ruby-prof.rb +2 -1
- data/lib/ruby-prof/aggregate_call_info.rb +4 -6
- data/lib/ruby-prof/call_info_visitor.rb +42 -44
- data/lib/ruby-prof/printers/graph_html_printer.rb +0 -8
- data/lib/ruby-prof/profile.rb +4 -4
- data/lib/ruby-prof/rack.rb +47 -47
- data/lib/ruby-prof/task.rb +0 -0
- data/lib/ruby-prof/thread.rb +22 -22
- data/lib/ruby-prof/version.rb +3 -0
- data/ruby-prof.gemspec +7 -11
- data/test/call_info_test.rb +78 -78
- data/test/call_info_visitor_test.rb +31 -31
- data/test/fiber_test.rb +2 -2
- data/test/measure_gc_runs_test.rb +1 -1
- data/test/measure_process_time_test.rb +7 -6
- data/test/printers_test.rb +4 -8
- data/test/recursive_test.rb +5 -9
- data/test/test_helper.rb +1 -1
- data/test/unique_call_path_test.rb +7 -29
- data/test/yarv_test.rb +55 -0
- metadata +63 -55
- data/ext/ruby_prof/version.h +0 -7
- data/lib/ruby-prof/test.rb +0 -150
- data/test/exec_test.rb +0 -14
- data/test/test_suite.rb +0 -37
@@ -2,153 +2,87 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class RubyProf::CallInfoPrinter - ruby-prof</title>
|
8
8
|
|
9
|
-
<link
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
10
11
|
|
11
12
|
<script type="text/javascript">
|
12
13
|
var rdoc_rel_prefix = "../";
|
13
14
|
</script>
|
14
15
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
<script
|
18
|
-
<script
|
19
|
-
<script
|
20
|
-
<script
|
16
|
+
<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
|
+
<script src="../js/darkfish.js"></script>
|
21
22
|
|
22
23
|
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
28
34
|
<a href="../table_of_contents.html#classes">Classes</a>
|
29
35
|
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
36
|
+
</div>
|
37
|
+
</div>
|
33
38
|
|
34
|
-
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
40
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
45
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
46
|
+
</div>
|
44
47
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
45
53
|
|
46
|
-
<div id="file-metadata">
|
47
|
-
<nav id="file-list-section" class="section">
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
49
|
-
<ul>
|
50
|
-
<li>lib/ruby-prof/printers/call_info_printer.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
54
|
</div>
|
56
55
|
|
56
|
+
|
57
|
+
|
57
58
|
<div id="class-metadata">
|
58
59
|
|
59
|
-
<
|
60
|
-
<h3
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
61
63
|
|
62
64
|
<p class="link"><a href="AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
63
65
|
|
64
|
-
</
|
66
|
+
</div>
|
65
67
|
|
66
68
|
|
67
69
|
|
68
|
-
|
69
|
-
|
70
|
-
<div id="project-metadata">
|
71
|
-
<nav id="fileindex-section" class="section project-section">
|
72
|
-
<h3 class="section-header">Pages</h3>
|
73
|
-
|
74
|
-
<ul>
|
75
|
-
|
76
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
77
|
-
|
78
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
79
|
-
|
80
|
-
<li class="file"><a href="../examples/flat_txt.html">flat</a>
|
81
|
-
|
82
|
-
<li class="file"><a href="../examples/graph_txt.html">graph</a>
|
83
|
-
|
84
|
-
</ul>
|
85
|
-
</nav>
|
86
|
-
|
87
|
-
<nav id="classindex-section" class="section project-section">
|
88
|
-
<h3 class="section-header">Class and Module Index</h3>
|
89
|
-
|
90
|
-
<ul class="link-list">
|
91
|
-
|
92
|
-
<li><a href="../RubyProf.html">RubyProf</a>
|
93
|
-
|
94
|
-
<li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
95
|
-
|
96
|
-
<li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
97
|
-
|
98
|
-
<li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
|
99
|
-
|
100
|
-
<li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
|
101
|
-
|
102
|
-
<li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
|
103
|
-
|
104
|
-
<li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
|
105
|
-
|
106
|
-
<li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
107
|
-
|
108
|
-
<li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
|
109
|
-
|
110
|
-
<li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
111
|
-
|
112
|
-
<li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
113
|
-
|
114
|
-
<li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
115
|
-
|
116
|
-
<li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
117
|
-
|
118
|
-
<li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
119
|
-
|
120
|
-
<li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
121
|
-
|
122
|
-
<li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
123
|
-
|
124
|
-
<li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
|
125
|
-
|
126
|
-
<li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
127
|
-
|
128
|
-
<li><a href="../RubyProf/Test.html">RubyProf::Test</a>
|
129
|
-
|
130
|
-
<li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
|
131
|
-
|
132
|
-
<li><a href="../Rack.html">Rack</a>
|
133
|
-
|
134
|
-
<li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
|
135
|
-
|
136
|
-
</ul>
|
137
|
-
</nav>
|
138
|
-
|
70
|
+
|
139
71
|
</div>
|
140
72
|
</nav>
|
141
73
|
|
142
|
-
<
|
143
|
-
<h1
|
74
|
+
<main role="main" aria-labelledby="class-RubyProf::CallInfoPrinter">
|
75
|
+
<h1 id="class-RubyProf::CallInfoPrinter" class="class">
|
76
|
+
class RubyProf::CallInfoPrinter
|
77
|
+
</h1>
|
144
78
|
|
145
|
-
<
|
79
|
+
<section class="description">
|
146
80
|
|
147
81
|
<p>Prints out the call graph based on <a href="CallInfo.html">CallInfo</a>
|
148
82
|
instances. This is mainly for debugging purposes as it provides access
|
149
83
|
into into RubyProf's internals.</p>
|
150
84
|
|
151
|
-
</
|
85
|
+
</section>
|
152
86
|
|
153
87
|
|
154
88
|
|
@@ -159,14 +93,15 @@ into into RubyProf's internals.</p>
|
|
159
93
|
|
160
94
|
|
161
95
|
|
162
|
-
|
163
|
-
|
164
|
-
|
96
|
+
<section class="constants-list">
|
97
|
+
<header>
|
98
|
+
<h3>Constants</h3>
|
99
|
+
</header>
|
165
100
|
<dl>
|
166
101
|
|
167
102
|
<dt id="TIME_WIDTH">TIME_WIDTH
|
168
103
|
|
169
|
-
<dd
|
104
|
+
<dd>
|
170
105
|
|
171
106
|
|
172
107
|
</dl>
|
@@ -175,16 +110,14 @@ into into RubyProf's internals.</p>
|
|
175
110
|
|
176
111
|
|
177
112
|
|
178
|
-
<!-- Methods -->
|
179
113
|
|
180
|
-
</section
|
181
|
-
|
182
|
-
</div><!-- documentation -->
|
114
|
+
</section>
|
115
|
+
</main>
|
183
116
|
|
184
117
|
|
185
|
-
<footer id="validator-badges">
|
186
|
-
<p><a href="http://validator.w3.org/check/referer">
|
187
|
-
<p>Generated by <a href="
|
188
|
-
<p>
|
118
|
+
<footer id="validator-badges" role="contentinfo">
|
119
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
120
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
121
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
189
122
|
</footer>
|
190
123
|
|
@@ -2,163 +2,95 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class RubyProf::CallInfoVisitor - ruby-prof</title>
|
8
8
|
|
9
|
-
<link
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
10
11
|
|
11
12
|
<script type="text/javascript">
|
12
13
|
var rdoc_rel_prefix = "../";
|
13
14
|
</script>
|
14
15
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
<script
|
18
|
-
<script
|
19
|
-
<script
|
20
|
-
<script
|
16
|
+
<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
|
+
<script src="../js/darkfish.js"></script>
|
21
22
|
|
22
23
|
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
28
34
|
<a href="../table_of_contents.html#classes">Classes</a>
|
29
35
|
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
36
|
+
</div>
|
37
|
+
</div>
|
33
38
|
|
34
|
-
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
40
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
45
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
46
|
+
</div>
|
44
47
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
45
53
|
|
46
|
-
<div id="file-metadata">
|
47
|
-
<nav id="file-list-section" class="section">
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
49
|
-
<ul>
|
50
|
-
<li>lib/ruby-prof/call_info_visitor.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
54
|
</div>
|
56
55
|
|
56
|
+
|
57
|
+
|
57
58
|
<div id="class-metadata">
|
58
59
|
|
59
|
-
<
|
60
|
-
<h3
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
61
63
|
|
62
64
|
<p class="link">Object
|
63
65
|
|
64
|
-
</
|
66
|
+
</div>
|
65
67
|
|
66
68
|
|
69
|
+
|
67
70
|
<!-- Method Quickref -->
|
68
|
-
<
|
69
|
-
<h3
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
70
73
|
|
71
|
-
<ul class="link-list">
|
74
|
+
<ul class="link-list" role="directory">
|
72
75
|
|
73
|
-
<li><a href="#method-c-new">::new</a>
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
74
77
|
|
75
|
-
<li><a href="#method-i-visit">#visit</a>
|
78
|
+
<li ><a href="#method-i-visit">#visit</a>
|
76
79
|
|
77
|
-
<li><a href="#method-i-visit_call_info">#visit_call_info</a>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
</nav>
|
81
|
-
|
82
|
-
</div>
|
83
|
-
|
84
|
-
<div id="project-metadata">
|
85
|
-
<nav id="fileindex-section" class="section project-section">
|
86
|
-
<h3 class="section-header">Pages</h3>
|
87
|
-
|
88
|
-
<ul>
|
89
|
-
|
90
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
91
|
-
|
92
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
93
|
-
|
94
|
-
<li class="file"><a href="../examples/flat_txt.html">flat</a>
|
95
|
-
|
96
|
-
<li class="file"><a href="../examples/graph_txt.html">graph</a>
|
97
|
-
|
98
|
-
</ul>
|
99
|
-
</nav>
|
100
|
-
|
101
|
-
<nav id="classindex-section" class="section project-section">
|
102
|
-
<h3 class="section-header">Class and Module Index</h3>
|
103
|
-
|
104
|
-
<ul class="link-list">
|
105
|
-
|
106
|
-
<li><a href="../RubyProf.html">RubyProf</a>
|
107
|
-
|
108
|
-
<li><a href="../RubyProf/AbstractPrinter.html">RubyProf::AbstractPrinter</a>
|
109
|
-
|
110
|
-
<li><a href="../RubyProf/AggregateCallInfo.html">RubyProf::AggregateCallInfo</a>
|
111
|
-
|
112
|
-
<li><a href="../RubyProf/CallInfo.html">RubyProf::CallInfo</a>
|
113
|
-
|
114
|
-
<li><a href="../RubyProf/CallInfoPrinter.html">RubyProf::CallInfoPrinter</a>
|
115
|
-
|
116
|
-
<li><a href="../RubyProf/CallInfoVisitor.html">RubyProf::CallInfoVisitor</a>
|
117
|
-
|
118
|
-
<li><a href="../RubyProf/CallStackPrinter.html">RubyProf::CallStackPrinter</a>
|
119
|
-
|
120
|
-
<li><a href="../RubyProf/CallTreePrinter.html">RubyProf::CallTreePrinter</a>
|
121
|
-
|
122
|
-
<li><a href="../RubyProf/Cmd.html">RubyProf::Cmd</a>
|
123
|
-
|
124
|
-
<li><a href="../RubyProf/DotPrinter.html">RubyProf::DotPrinter</a>
|
125
|
-
|
126
|
-
<li><a href="../RubyProf/FlatPrinter.html">RubyProf::FlatPrinter</a>
|
127
|
-
|
128
|
-
<li><a href="../RubyProf/FlatPrinterWithLineNumbers.html">RubyProf::FlatPrinterWithLineNumbers</a>
|
129
|
-
|
130
|
-
<li><a href="../RubyProf/GraphHtmlPrinter.html">RubyProf::GraphHtmlPrinter</a>
|
131
|
-
|
132
|
-
<li><a href="../RubyProf/GraphPrinter.html">RubyProf::GraphPrinter</a>
|
133
|
-
|
134
|
-
<li><a href="../RubyProf/MethodInfo.html">RubyProf::MethodInfo</a>
|
135
|
-
|
136
|
-
<li><a href="../RubyProf/MultiPrinter.html">RubyProf::MultiPrinter</a>
|
137
|
-
|
138
|
-
<li><a href="../RubyProf/Profile.html">RubyProf::Profile</a>
|
139
|
-
|
140
|
-
<li><a href="../RubyProf/ProfileTask.html">RubyProf::ProfileTask</a>
|
141
|
-
|
142
|
-
<li><a href="../RubyProf/Test.html">RubyProf::Test</a>
|
143
|
-
|
144
|
-
<li><a href="../RubyProf/Thread.html">RubyProf::Thread</a>
|
145
|
-
|
146
|
-
<li><a href="../Rack.html">Rack</a>
|
147
|
-
|
148
|
-
<li><a href="../Rack/RubyProf.html">Rack::RubyProf</a>
|
149
|
-
|
150
80
|
</ul>
|
151
|
-
</
|
81
|
+
</div>
|
152
82
|
|
153
83
|
</div>
|
154
84
|
</nav>
|
155
85
|
|
156
|
-
<
|
157
|
-
<h1
|
86
|
+
<main role="main" aria-labelledby="class-RubyProf::CallInfoVisitor">
|
87
|
+
<h1 id="class-RubyProf::CallInfoVisitor" class="class">
|
88
|
+
class RubyProf::CallInfoVisitor
|
89
|
+
</h1>
|
158
90
|
|
159
|
-
<
|
91
|
+
<section class="description">
|
160
92
|
|
161
|
-
</
|
93
|
+
</section>
|
162
94
|
|
163
95
|
|
164
96
|
|
@@ -171,44 +103,12 @@
|
|
171
103
|
|
172
104
|
|
173
105
|
|
174
|
-
<!-- Attributes -->
|
175
|
-
<section id="attribute-method-details" class="method-section section">
|
176
|
-
<h3 class="section-header">Attributes</h3>
|
177
|
-
|
178
|
-
|
179
|
-
<div id="attribute-i-block" class="method-detail">
|
180
|
-
<div class="method-heading attribute-method-heading">
|
181
|
-
<span class="method-name">block</span><span
|
182
|
-
class="attribute-access-type">[R]</span>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
<div class="method-description">
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</div>
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div id="attribute-i-thread" class="method-detail">
|
193
|
-
<div class="method-heading attribute-method-heading">
|
194
|
-
<span class="method-name">thread</span><span
|
195
|
-
class="attribute-access-type">[R]</span>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div class="method-description">
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
</section><!-- attribute-method-details -->
|
206
|
-
|
207
106
|
|
208
|
-
<!-- Methods -->
|
209
107
|
|
210
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
211
|
-
|
108
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
109
|
+
<header>
|
110
|
+
<h3>Public Class Methods</h3>
|
111
|
+
</header>
|
212
112
|
|
213
113
|
|
214
114
|
<div id="method-c-new" class="method-detail ">
|
@@ -216,7 +116,9 @@
|
|
216
116
|
<div class="method-heading">
|
217
117
|
<span class="method-name">new</span><span
|
218
118
|
class="method-args">(thread)</span>
|
119
|
+
|
219
120
|
<span class="method-click-advice">click to toggle source</span>
|
121
|
+
|
220
122
|
</div>
|
221
123
|
|
222
124
|
|
@@ -224,27 +126,30 @@
|
|
224
126
|
|
225
127
|
|
226
128
|
|
129
|
+
|
227
130
|
|
228
131
|
|
229
132
|
<div class="method-source-code" id="new-source">
|
230
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/call_info_visitor.rb, line
|
231
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">thread</span>)
|
232
|
-
<span class="ruby-ivar">@thread</span> = <span class="ruby-identifier">thread</span>
|
133
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/call_info_visitor.rb, line 21</span>
|
134
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">thread</span>)
|
135
|
+
<span class="ruby-ivar">@thread</span> = <span class="ruby-identifier">thread</span>
|
233
136
|
<span class="ruby-keyword">end</span></pre>
|
234
|
-
</div
|
137
|
+
</div>
|
235
138
|
|
236
139
|
</div>
|
237
140
|
|
238
141
|
|
239
142
|
|
240
143
|
|
241
|
-
</div
|
144
|
+
</div>
|
242
145
|
|
243
146
|
|
244
|
-
</section
|
147
|
+
</section>
|
245
148
|
|
246
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section
|
247
|
-
|
149
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
150
|
+
<header>
|
151
|
+
<h3>Public Instance Methods</h3>
|
152
|
+
</header>
|
248
153
|
|
249
154
|
|
250
155
|
<div id="method-i-visit" class="method-detail ">
|
@@ -252,43 +157,9 @@
|
|
252
157
|
<div class="method-heading">
|
253
158
|
<span class="method-name">visit</span><span
|
254
159
|
class="method-args">(&block)</span>
|
255
|
-
<span class="method-click-advice">click to toggle source</span>
|
256
|
-
</div>
|
257
|
-
|
258
|
-
|
259
|
-
<div class="method-description">
|
260
|
-
|
261
|
-
|
262
160
|
|
263
|
-
|
264
|
-
|
265
|
-
<div class="method-source-code" id="visit-source">
|
266
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/call_info_visitor.rb, line 26</span>
|
267
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">visit</span>(&<span class="ruby-identifier">block</span>)
|
268
|
-
<span class="ruby-ivar">@block</span> = <span class="ruby-identifier">block</span>
|
269
|
-
|
270
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">thread</span>.<span class="ruby-identifier">top_methods</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method_info</span><span class="ruby-operator">|</span>
|
271
|
-
<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>
|
272
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">visit_call_info</span>(<span class="ruby-identifier">call_info</span>)
|
273
|
-
<span class="ruby-keyword">end</span>
|
274
|
-
<span class="ruby-keyword">end</span>
|
275
|
-
<span class="ruby-keyword">end</span></pre>
|
276
|
-
</div><!-- visit-source -->
|
277
|
-
|
278
|
-
</div>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
</div><!-- visit-method -->
|
284
|
-
|
285
|
-
|
286
|
-
<div id="method-i-visit_call_info" class="method-detail ">
|
287
|
-
|
288
|
-
<div class="method-heading">
|
289
|
-
<span class="method-name">visit_call_info</span><span
|
290
|
-
class="method-args">(call_info)</span>
|
291
161
|
<span class="method-click-advice">click to toggle source</span>
|
162
|
+
|
292
163
|
</div>
|
293
164
|
|
294
165
|
|
@@ -296,37 +167,37 @@
|
|
296
167
|
|
297
168
|
|
298
169
|
|
170
|
+
|
299
171
|
|
300
172
|
|
301
|
-
<div class="method-source-code" id="
|
302
|
-
<pre><span class="ruby-comment"># File lib/ruby-prof/call_info_visitor.rb, line
|
303
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">
|
304
|
-
<span class="ruby-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
<span class="ruby-keyword">
|
173
|
+
<div class="method-source-code" id="visit-source">
|
174
|
+
<pre><span class="ruby-comment"># File lib/ruby-prof/call_info_visitor.rb, line 25</span>
|
175
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">visit</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
176
|
+
<span class="ruby-ivar">@thread</span>.<span class="ruby-identifier">top_methods</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method_info</span><span class="ruby-operator">|</span>
|
177
|
+
<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>
|
178
|
+
<span class="ruby-identifier">visit_call_info</span>(<span class="ruby-identifier">call_info</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
179
|
+
<span class="ruby-keyword">end</span>
|
180
|
+
<span class="ruby-keyword">end</span>
|
309
181
|
<span class="ruby-keyword">end</span></pre>
|
310
|
-
</div
|
182
|
+
</div>
|
311
183
|
|
312
184
|
</div>
|
313
185
|
|
314
186
|
|
315
187
|
|
316
188
|
|
317
|
-
</div
|
189
|
+
</div>
|
318
190
|
|
319
191
|
|
320
|
-
</section
|
192
|
+
</section>
|
321
193
|
|
322
|
-
</section
|
323
|
-
|
324
|
-
</div><!-- documentation -->
|
194
|
+
</section>
|
195
|
+
</main>
|
325
196
|
|
326
197
|
|
327
|
-
<footer id="validator-badges">
|
328
|
-
<p><a href="http://validator.w3.org/check/referer">
|
329
|
-
<p>Generated by <a href="
|
330
|
-
<p>
|
198
|
+
<footer id="validator-badges" role="contentinfo">
|
199
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
200
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
201
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
331
202
|
</footer>
|
332
203
|
|