ruby-prof 0.16.2 → 1.1.0
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 +5 -5
- data/CHANGES +532 -467
- data/LICENSE +24 -24
- data/README.rdoc +5 -454
- data/Rakefile +110 -113
- data/bin/ruby-prof +380 -340
- data/bin/ruby-prof-check-trace +45 -45
- data/ext/ruby_prof/extconf.rb +36 -64
- data/ext/ruby_prof/rp_allocation.c +279 -0
- data/ext/ruby_prof/rp_allocation.h +31 -0
- data/ext/ruby_prof/rp_call_info.c +271 -407
- data/ext/ruby_prof/rp_call_info.h +35 -48
- data/ext/ruby_prof/rp_measure_allocations.c +52 -76
- data/ext/ruby_prof/rp_measure_memory.c +42 -77
- data/ext/ruby_prof/rp_measure_process_time.c +67 -71
- data/ext/ruby_prof/rp_measure_wall_time.c +62 -45
- data/ext/ruby_prof/rp_measurement.c +230 -0
- data/ext/ruby_prof/rp_measurement.h +50 -0
- data/ext/ruby_prof/rp_method.c +630 -411
- data/ext/ruby_prof/rp_method.h +70 -52
- data/ext/ruby_prof/rp_profile.c +895 -0
- data/ext/ruby_prof/rp_profile.h +37 -0
- data/ext/ruby_prof/rp_stack.c +196 -128
- data/ext/ruby_prof/rp_stack.h +56 -51
- data/ext/ruby_prof/rp_thread.c +337 -273
- data/ext/ruby_prof/rp_thread.h +36 -27
- data/ext/ruby_prof/ruby_prof.c +48 -671
- data/ext/ruby_prof/ruby_prof.h +17 -56
- data/ext/ruby_prof/vc/ruby_prof.sln +20 -21
- data/ext/ruby_prof/vc/{ruby_prof_20.vcxproj → ruby_prof.vcxproj} +38 -5
- data/lib/ruby-prof.rb +52 -58
- data/lib/ruby-prof/assets/call_stack_printer.html.erb +713 -0
- data/lib/ruby-prof/assets/call_stack_printer.png +0 -0
- data/lib/ruby-prof/assets/graph_printer.html.erb +356 -0
- data/lib/ruby-prof/call_info.rb +57 -126
- data/lib/ruby-prof/call_info_visitor.rb +38 -40
- data/lib/ruby-prof/compatibility.rb +109 -178
- data/lib/ruby-prof/exclude_common_methods.rb +198 -0
- data/lib/ruby-prof/measurement.rb +14 -0
- data/lib/ruby-prof/method_info.rb +90 -129
- data/lib/ruby-prof/printers/abstract_printer.rb +127 -85
- data/lib/ruby-prof/printers/call_info_printer.rb +51 -41
- data/lib/ruby-prof/printers/call_stack_printer.rb +182 -260
- data/lib/ruby-prof/printers/call_tree_printer.rb +151 -130
- data/lib/ruby-prof/printers/dot_printer.rb +132 -132
- data/lib/ruby-prof/printers/flat_printer.rb +52 -70
- data/lib/ruby-prof/printers/graph_html_printer.rb +63 -244
- data/lib/ruby-prof/printers/graph_printer.rb +114 -116
- data/lib/ruby-prof/printers/multi_printer.rb +127 -58
- data/lib/ruby-prof/profile.rb +33 -55
- data/lib/ruby-prof/rack.rb +171 -95
- data/lib/ruby-prof/task.rb +147 -147
- data/lib/ruby-prof/thread.rb +35 -41
- data/lib/ruby-prof/version.rb +3 -3
- data/lib/unprof.rb +10 -10
- data/ruby-prof.gemspec +58 -57
- data/test/abstract_printer_test.rb +26 -0
- data/test/alias_test.rb +129 -0
- data/test/basic_test.rb +129 -128
- data/test/call_info_visitor_test.rb +31 -31
- data/test/duplicate_names_test.rb +32 -32
- data/test/dynamic_method_test.rb +53 -55
- data/test/enumerable_test.rb +21 -21
- data/test/exceptions_test.rb +24 -16
- data/test/exclude_methods_test.rb +146 -0
- data/test/exclude_threads_test.rb +53 -53
- data/test/fiber_test.rb +73 -79
- data/test/gc_test.rb +96 -0
- data/test/line_number_test.rb +161 -71
- data/test/marshal_test.rb +119 -0
- data/test/measure_allocations.rb +30 -0
- data/test/measure_allocations_test.rb +385 -26
- data/test/measure_allocations_trace_test.rb +385 -0
- data/test/measure_memory_trace_test.rb +756 -0
- data/test/measure_process_time_test.rb +849 -63
- data/test/measure_times.rb +54 -0
- data/test/measure_wall_time_test.rb +459 -255
- data/test/multi_printer_test.rb +71 -83
- data/test/no_method_class_test.rb +15 -15
- data/test/parser_timings.rb +24 -0
- data/test/pause_resume_test.rb +166 -166
- data/test/prime.rb +56 -54
- data/test/printer_call_stack_test.rb +28 -0
- data/test/printer_call_tree_test.rb +31 -0
- data/test/printer_flat_test.rb +68 -0
- data/test/printer_graph_html_test.rb +60 -0
- data/test/printer_graph_test.rb +41 -0
- data/test/printers_test.rb +141 -255
- data/test/printing_recursive_graph_test.rb +81 -127
- data/test/rack_test.rb +157 -93
- data/test/recursive_test.rb +210 -215
- data/test/singleton_test.rb +38 -38
- data/test/stack_printer_test.rb +64 -78
- data/test/start_stop_test.rb +109 -112
- data/test/test_helper.rb +24 -264
- data/test/thread_test.rb +144 -187
- data/test/unique_call_path_test.rb +190 -202
- data/test/yarv_test.rb +56 -55
- metadata +34 -114
- data/doc/LICENSE.html +0 -114
- data/doc/README_rdoc.html +0 -603
- data/doc/Rack.html +0 -95
- data/doc/Rack/RubyProf.html +0 -226
- data/doc/RubyProf.html +0 -962
- data/doc/RubyProf/AbstractPrinter.html +0 -546
- data/doc/RubyProf/AggregateCallInfo.html +0 -551
- data/doc/RubyProf/CallInfo.html +0 -639
- data/doc/RubyProf/CallInfoPrinter.html +0 -120
- data/doc/RubyProf/CallInfoVisitor.html +0 -198
- data/doc/RubyProf/CallStackPrinter.html +0 -1121
- data/doc/RubyProf/CallTreePrinter.html +0 -641
- data/doc/RubyProf/Cmd.html +0 -631
- data/doc/RubyProf/DotPrinter.html +0 -257
- data/doc/RubyProf/FlatPrinter.html +0 -163
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +0 -208
- data/doc/RubyProf/GraphHtmlPrinter.html +0 -552
- data/doc/RubyProf/GraphPrinter.html +0 -139
- data/doc/RubyProf/MethodInfo.html +0 -745
- data/doc/RubyProf/MultiPrinter.html +0 -360
- data/doc/RubyProf/Profile.html +0 -763
- data/doc/RubyProf/ProfileTask.html +0 -490
- data/doc/RubyProf/Thread.html +0 -310
- data/doc/created.rid +0 -31
- data/doc/css/fonts.css +0 -167
- data/doc/css/rdoc.css +0 -590
- data/doc/examples/flat_txt.html +0 -138
- data/doc/examples/graph_html.html +0 -909
- data/doc/examples/graph_txt.html +0 -247
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -626
- data/doc/js/darkfish.js +0 -161
- data/doc/js/jquery.js +0 -4
- data/doc/js/navigation.js +0 -142
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +0 -228
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +0 -942
- data/examples/cachegrind.out.1 +0 -114
- data/examples/cachegrind.out.1.32313213 +0 -114
- data/examples/flat.txt +0 -50
- data/examples/graph.dot +0 -84
- data/examples/graph.html +0 -823
- data/examples/graph.txt +0 -139
- data/examples/multi.flat.txt +0 -23
- data/examples/multi.graph.html +0 -760
- data/examples/multi.grind.dat +0 -114
- data/examples/multi.stack.html +0 -547
- data/examples/stack.html +0 -547
- data/ext/ruby_prof/rp_measure.c +0 -40
- data/ext/ruby_prof/rp_measure.h +0 -45
- data/ext/ruby_prof/rp_measure_cpu_time.c +0 -136
- data/ext/ruby_prof/rp_measure_gc_runs.c +0 -73
- data/ext/ruby_prof/rp_measure_gc_time.c +0 -60
- data/ext/ruby_prof/vc/ruby_prof_18.vcxproj +0 -108
- data/ext/ruby_prof/vc/ruby_prof_19.vcxproj +0 -110
- data/lib/ruby-prof/aggregate_call_info.rb +0 -76
- data/lib/ruby-prof/assets/call_stack_printer.css.html +0 -117
- data/lib/ruby-prof/assets/call_stack_printer.js.html +0 -385
- data/lib/ruby-prof/printers/flat_printer_with_line_numbers.rb +0 -64
- data/test/aggregate_test.rb +0 -136
- data/test/block_test.rb +0 -74
- data/test/call_info_test.rb +0 -78
- data/test/issue137_test.rb +0 -63
- data/test/measure_cpu_time_test.rb +0 -213
- data/test/measure_gc_runs_test.rb +0 -32
- data/test/measure_gc_time_test.rb +0 -36
- data/test/measure_memory_test.rb +0 -33
- data/test/method_elimination_test.rb +0 -84
- data/test/module_test.rb +0 -45
- data/test/stack_test.rb +0 -138
data/test/yarv_test.rb
CHANGED
@@ -1,55 +1,56 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# encoding: UTF-8
|
3
|
-
|
4
|
-
require File.expand_path('../test_helper', __FILE__)
|
5
|
-
|
6
|
-
# tests for bugs reported by users
|
7
|
-
class BugsTest < TestCase
|
8
|
-
def setup
|
9
|
-
RubyProf::measure_mode = RubyProf::WALL_TIME
|
10
|
-
define_methods
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_array_push_unoptimized
|
14
|
-
a = nil
|
15
|
-
result = RubyProf.profile do
|
16
|
-
a = self.array_push_unoptimized
|
17
|
-
end
|
18
|
-
assert_equal 2, a.length
|
19
|
-
assert_equal ["BugsTest#test_array_push_unoptimized", "BugsTest#array_push_unoptimized", 'Array#<<', "Array#push"], result.threads.first.methods.map(&:full_name)
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_array_push_optimized
|
23
|
-
a = nil
|
24
|
-
result = RubyProf.profile do
|
25
|
-
a = self.array_push_optimized
|
26
|
-
end
|
27
|
-
assert_equal 2, a.length
|
28
|
-
assert_equal ["BugsTest#test_array_push_optimized", "BugsTest#array_push_optimized", "Array#push"], result.threads.first.methods.map(&:full_name)
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
RubyVM::InstructionSequence.compile_option
|
36
|
-
|
37
|
-
:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
a
|
43
|
-
a
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
a
|
51
|
-
a
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
end
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
|
4
|
+
require File.expand_path('../test_helper', __FILE__)
|
5
|
+
|
6
|
+
# tests for bugs reported by users
|
7
|
+
class BugsTest < TestCase
|
8
|
+
def setup
|
9
|
+
RubyProf::measure_mode = RubyProf::WALL_TIME
|
10
|
+
define_methods
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_array_push_unoptimized
|
14
|
+
a = nil
|
15
|
+
result = RubyProf.profile do
|
16
|
+
a = self.array_push_unoptimized
|
17
|
+
end
|
18
|
+
assert_equal 2, a.length
|
19
|
+
assert_equal ["BugsTest#test_array_push_unoptimized", "BugsTest#array_push_unoptimized", 'Array#<<', "Array#push"], result.threads.first.methods.map(&:full_name)
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_array_push_optimized
|
23
|
+
a = nil
|
24
|
+
result = RubyProf.profile do
|
25
|
+
a = self.array_push_optimized
|
26
|
+
end
|
27
|
+
assert_equal 2, a.length
|
28
|
+
assert_equal ["BugsTest#test_array_push_optimized", "BugsTest#array_push_optimized", "Array#push"], result.threads.first.methods.map(&:full_name)
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def define_methods
|
34
|
+
return if respond_to?(:array_push_optimized)
|
35
|
+
old_compile_option = RubyVM::InstructionSequence.compile_option
|
36
|
+
RubyVM::InstructionSequence.compile_option = {
|
37
|
+
:trace_instruction => true,
|
38
|
+
:specialized_instruction => false
|
39
|
+
}
|
40
|
+
self.class.class_eval <<-"EOM"
|
41
|
+
def array_push_unoptimized
|
42
|
+
a = []
|
43
|
+
a << 1
|
44
|
+
a.push 2
|
45
|
+
end
|
46
|
+
EOM
|
47
|
+
RubyVM::InstructionSequence.compile_option = old_compile_option
|
48
|
+
self.class.class_eval <<-"EOM"
|
49
|
+
def array_push_optimized
|
50
|
+
a = []
|
51
|
+
a << 1
|
52
|
+
a.push 2
|
53
|
+
end
|
54
|
+
EOM
|
55
|
+
end
|
56
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda, Charlie Savage, Roger Pack, Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,102 +73,21 @@ files:
|
|
73
73
|
- Rakefile
|
74
74
|
- bin/ruby-prof
|
75
75
|
- bin/ruby-prof-check-trace
|
76
|
-
- doc/LICENSE.html
|
77
|
-
- doc/README_rdoc.html
|
78
|
-
- doc/Rack.html
|
79
|
-
- doc/Rack/RubyProf.html
|
80
|
-
- doc/RubyProf.html
|
81
|
-
- doc/RubyProf/AbstractPrinter.html
|
82
|
-
- doc/RubyProf/AggregateCallInfo.html
|
83
|
-
- doc/RubyProf/CallInfo.html
|
84
|
-
- doc/RubyProf/CallInfoPrinter.html
|
85
|
-
- doc/RubyProf/CallInfoVisitor.html
|
86
|
-
- doc/RubyProf/CallStackPrinter.html
|
87
|
-
- doc/RubyProf/CallTreePrinter.html
|
88
|
-
- doc/RubyProf/Cmd.html
|
89
|
-
- doc/RubyProf/DotPrinter.html
|
90
|
-
- doc/RubyProf/FlatPrinter.html
|
91
|
-
- doc/RubyProf/FlatPrinterWithLineNumbers.html
|
92
|
-
- doc/RubyProf/GraphHtmlPrinter.html
|
93
|
-
- doc/RubyProf/GraphPrinter.html
|
94
|
-
- doc/RubyProf/MethodInfo.html
|
95
|
-
- doc/RubyProf/MultiPrinter.html
|
96
|
-
- doc/RubyProf/Profile.html
|
97
|
-
- doc/RubyProf/ProfileTask.html
|
98
|
-
- doc/RubyProf/Thread.html
|
99
|
-
- doc/created.rid
|
100
|
-
- doc/css/fonts.css
|
101
|
-
- doc/css/rdoc.css
|
102
|
-
- doc/examples/flat_txt.html
|
103
|
-
- doc/examples/graph_html.html
|
104
|
-
- doc/examples/graph_txt.html
|
105
|
-
- doc/fonts/Lato-Light.ttf
|
106
|
-
- doc/fonts/Lato-LightItalic.ttf
|
107
|
-
- doc/fonts/Lato-Regular.ttf
|
108
|
-
- doc/fonts/Lato-RegularItalic.ttf
|
109
|
-
- doc/fonts/SourceCodePro-Bold.ttf
|
110
|
-
- doc/fonts/SourceCodePro-Regular.ttf
|
111
|
-
- doc/images/add.png
|
112
|
-
- doc/images/arrow_up.png
|
113
|
-
- doc/images/brick.png
|
114
|
-
- doc/images/brick_link.png
|
115
|
-
- doc/images/bug.png
|
116
|
-
- doc/images/bullet_black.png
|
117
|
-
- doc/images/bullet_toggle_minus.png
|
118
|
-
- doc/images/bullet_toggle_plus.png
|
119
|
-
- doc/images/date.png
|
120
|
-
- doc/images/delete.png
|
121
|
-
- doc/images/find.png
|
122
|
-
- doc/images/loadingAnimation.gif
|
123
|
-
- doc/images/macFFBgHack.png
|
124
|
-
- doc/images/package.png
|
125
|
-
- doc/images/page_green.png
|
126
|
-
- doc/images/page_white_text.png
|
127
|
-
- doc/images/page_white_width.png
|
128
|
-
- doc/images/plugin.png
|
129
|
-
- doc/images/ruby.png
|
130
|
-
- doc/images/tag_blue.png
|
131
|
-
- doc/images/tag_green.png
|
132
|
-
- doc/images/transparent.png
|
133
|
-
- doc/images/wrench.png
|
134
|
-
- doc/images/wrench_orange.png
|
135
|
-
- doc/images/zoom.png
|
136
|
-
- doc/index.html
|
137
|
-
- doc/js/darkfish.js
|
138
|
-
- doc/js/jquery.js
|
139
|
-
- doc/js/navigation.js
|
140
|
-
- doc/js/navigation.js.gz
|
141
|
-
- doc/js/search.js
|
142
|
-
- doc/js/search_index.js
|
143
|
-
- doc/js/search_index.js.gz
|
144
|
-
- doc/js/searcher.js
|
145
|
-
- doc/js/searcher.js.gz
|
146
|
-
- doc/table_of_contents.html
|
147
|
-
- examples/cachegrind.out.1
|
148
|
-
- examples/cachegrind.out.1.32313213
|
149
|
-
- examples/flat.txt
|
150
|
-
- examples/graph.dot
|
151
|
-
- examples/graph.html
|
152
|
-
- examples/graph.txt
|
153
|
-
- examples/multi.flat.txt
|
154
|
-
- examples/multi.graph.html
|
155
|
-
- examples/multi.grind.dat
|
156
|
-
- examples/multi.stack.html
|
157
|
-
- examples/stack.html
|
158
76
|
- ext/ruby_prof/extconf.rb
|
77
|
+
- ext/ruby_prof/rp_allocation.c
|
78
|
+
- ext/ruby_prof/rp_allocation.h
|
159
79
|
- ext/ruby_prof/rp_call_info.c
|
160
80
|
- ext/ruby_prof/rp_call_info.h
|
161
|
-
- ext/ruby_prof/rp_measure.c
|
162
|
-
- ext/ruby_prof/rp_measure.h
|
163
81
|
- ext/ruby_prof/rp_measure_allocations.c
|
164
|
-
- ext/ruby_prof/rp_measure_cpu_time.c
|
165
|
-
- ext/ruby_prof/rp_measure_gc_runs.c
|
166
|
-
- ext/ruby_prof/rp_measure_gc_time.c
|
167
82
|
- ext/ruby_prof/rp_measure_memory.c
|
168
83
|
- ext/ruby_prof/rp_measure_process_time.c
|
169
84
|
- ext/ruby_prof/rp_measure_wall_time.c
|
85
|
+
- ext/ruby_prof/rp_measurement.c
|
86
|
+
- ext/ruby_prof/rp_measurement.h
|
170
87
|
- ext/ruby_prof/rp_method.c
|
171
88
|
- ext/ruby_prof/rp_method.h
|
89
|
+
- ext/ruby_prof/rp_profile.c
|
90
|
+
- ext/ruby_prof/rp_profile.h
|
172
91
|
- ext/ruby_prof/rp_stack.c
|
173
92
|
- ext/ruby_prof/rp_stack.h
|
174
93
|
- ext/ruby_prof/rp_thread.c
|
@@ -176,17 +95,16 @@ files:
|
|
176
95
|
- ext/ruby_prof/ruby_prof.c
|
177
96
|
- ext/ruby_prof/ruby_prof.h
|
178
97
|
- ext/ruby_prof/vc/ruby_prof.sln
|
179
|
-
- ext/ruby_prof/vc/
|
180
|
-
- ext/ruby_prof/vc/ruby_prof_19.vcxproj
|
181
|
-
- ext/ruby_prof/vc/ruby_prof_20.vcxproj
|
98
|
+
- ext/ruby_prof/vc/ruby_prof.vcxproj
|
182
99
|
- lib/ruby-prof.rb
|
183
|
-
- lib/ruby-prof/
|
184
|
-
- lib/ruby-prof/assets/call_stack_printer.css.html
|
185
|
-
- lib/ruby-prof/assets/call_stack_printer.js.html
|
100
|
+
- lib/ruby-prof/assets/call_stack_printer.html.erb
|
186
101
|
- lib/ruby-prof/assets/call_stack_printer.png
|
102
|
+
- lib/ruby-prof/assets/graph_printer.html.erb
|
187
103
|
- lib/ruby-prof/call_info.rb
|
188
104
|
- lib/ruby-prof/call_info_visitor.rb
|
189
105
|
- lib/ruby-prof/compatibility.rb
|
106
|
+
- lib/ruby-prof/exclude_common_methods.rb
|
107
|
+
- lib/ruby-prof/measurement.rb
|
190
108
|
- lib/ruby-prof/method_info.rb
|
191
109
|
- lib/ruby-prof/printers/abstract_printer.rb
|
192
110
|
- lib/ruby-prof/printers/call_info_printer.rb
|
@@ -194,7 +112,6 @@ files:
|
|
194
112
|
- lib/ruby-prof/printers/call_tree_printer.rb
|
195
113
|
- lib/ruby-prof/printers/dot_printer.rb
|
196
114
|
- lib/ruby-prof/printers/flat_printer.rb
|
197
|
-
- lib/ruby-prof/printers/flat_printer_with_line_numbers.rb
|
198
115
|
- lib/ruby-prof/printers/graph_html_printer.rb
|
199
116
|
- lib/ruby-prof/printers/graph_printer.rb
|
200
117
|
- lib/ruby-prof/printers/multi_printer.rb
|
@@ -205,39 +122,43 @@ files:
|
|
205
122
|
- lib/ruby-prof/version.rb
|
206
123
|
- lib/unprof.rb
|
207
124
|
- ruby-prof.gemspec
|
208
|
-
- test/
|
125
|
+
- test/abstract_printer_test.rb
|
126
|
+
- test/alias_test.rb
|
209
127
|
- test/basic_test.rb
|
210
|
-
- test/block_test.rb
|
211
|
-
- test/call_info_test.rb
|
212
128
|
- test/call_info_visitor_test.rb
|
213
129
|
- test/duplicate_names_test.rb
|
214
130
|
- test/dynamic_method_test.rb
|
215
131
|
- test/enumerable_test.rb
|
216
132
|
- test/exceptions_test.rb
|
133
|
+
- test/exclude_methods_test.rb
|
217
134
|
- test/exclude_threads_test.rb
|
218
135
|
- test/fiber_test.rb
|
219
|
-
- test/
|
136
|
+
- test/gc_test.rb
|
220
137
|
- test/line_number_test.rb
|
138
|
+
- test/marshal_test.rb
|
139
|
+
- test/measure_allocations.rb
|
221
140
|
- test/measure_allocations_test.rb
|
222
|
-
- test/
|
223
|
-
- test/
|
224
|
-
- test/measure_gc_time_test.rb
|
225
|
-
- test/measure_memory_test.rb
|
141
|
+
- test/measure_allocations_trace_test.rb
|
142
|
+
- test/measure_memory_trace_test.rb
|
226
143
|
- test/measure_process_time_test.rb
|
144
|
+
- test/measure_times.rb
|
227
145
|
- test/measure_wall_time_test.rb
|
228
|
-
- test/method_elimination_test.rb
|
229
|
-
- test/module_test.rb
|
230
146
|
- test/multi_printer_test.rb
|
231
147
|
- test/no_method_class_test.rb
|
148
|
+
- test/parser_timings.rb
|
232
149
|
- test/pause_resume_test.rb
|
233
150
|
- test/prime.rb
|
151
|
+
- test/printer_call_stack_test.rb
|
152
|
+
- test/printer_call_tree_test.rb
|
153
|
+
- test/printer_flat_test.rb
|
154
|
+
- test/printer_graph_html_test.rb
|
155
|
+
- test/printer_graph_test.rb
|
234
156
|
- test/printers_test.rb
|
235
157
|
- test/printing_recursive_graph_test.rb
|
236
158
|
- test/rack_test.rb
|
237
159
|
- test/recursive_test.rb
|
238
160
|
- test/singleton_test.rb
|
239
161
|
- test/stack_printer_test.rb
|
240
|
-
- test/stack_test.rb
|
241
162
|
- test/start_stop_test.rb
|
242
163
|
- test/test_helper.rb
|
243
164
|
- test/thread_test.rb
|
@@ -255,15 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
176
|
requirements:
|
256
177
|
- - ">="
|
257
178
|
- !ruby/object:Gem::Version
|
258
|
-
version:
|
179
|
+
version: 2.4.0
|
259
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
181
|
requirements:
|
261
182
|
- - ">="
|
262
183
|
- !ruby/object:Gem::Version
|
263
184
|
version: '0'
|
264
185
|
requirements: []
|
265
|
-
|
266
|
-
rubygems_version: 2.4.8
|
186
|
+
rubygems_version: 3.0.6
|
267
187
|
signing_key:
|
268
188
|
specification_version: 4
|
269
189
|
summary: Fast Ruby profiler
|
data/doc/LICENSE.html
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>LICENSE - ruby-prof</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "./";
|
11
|
-
</script>
|
12
|
-
|
13
|
-
<script src="./js/jquery.js"></script>
|
14
|
-
<script src="./js/darkfish.js"></script>
|
15
|
-
|
16
|
-
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
-
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<body id="top" role="document" class="file">
|
22
|
-
<nav role="navigation">
|
23
|
-
<div id="project-navigation">
|
24
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
-
<h2>
|
26
|
-
<a href="./index.html" rel="home">Home</a>
|
27
|
-
</h2>
|
28
|
-
|
29
|
-
<div id="table-of-contents-navigation">
|
30
|
-
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
-
<form action="#" method="get" accept-charset="utf-8">
|
38
|
-
<div id="search-field-wrapper">
|
39
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
-
aria-autocomplete="list" aria-controls="search-results"
|
41
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<ul id="search-results" aria-label="Search Results"
|
46
|
-
aria-busy="false" aria-expanded="false"
|
47
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
-
</form>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
</div>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<div id="project-metadata">
|
56
|
-
<div id="fileindex-section" class="nav-section">
|
57
|
-
<h3>Pages</h3>
|
58
|
-
|
59
|
-
<ul class="link-list">
|
60
|
-
|
61
|
-
<li><a href="./LICENSE.html">LICENSE</a>
|
62
|
-
|
63
|
-
<li><a href="./README_rdoc.html">README</a>
|
64
|
-
|
65
|
-
<li><a href="./examples/flat_txt.html">flat</a>
|
66
|
-
|
67
|
-
<li><a href="./examples/graph_html.html">graph.html</a>
|
68
|
-
|
69
|
-
<li><a href="./examples/graph_txt.html">graph</a>
|
70
|
-
|
71
|
-
</ul>
|
72
|
-
</div>
|
73
|
-
|
74
|
-
</div>
|
75
|
-
</nav>
|
76
|
-
|
77
|
-
<main role="main" aria-label="Page LICENSE">
|
78
|
-
|
79
|
-
<p>Copyright (C) 2005 - 2014 Shugo Maeda <shugo@ruby-lang.org> and
|
80
|
-
Charlie Savage <cfis@savagexi.com> Copyright (C) 2010 - 2014 Stefan
|
81
|
-
Kaes <skaes@railsepxress.de> All rights reserved.</p>
|
82
|
-
|
83
|
-
<p>Redistribution and use in source and binary forms, with or without
|
84
|
-
modification, are permitted provided that the following conditions are met:</p>
|
85
|
-
<ol><li>
|
86
|
-
<p>Redistributions of source code must retain the above copyright notice, this
|
87
|
-
list of conditions and the following disclaimer.</p>
|
88
|
-
</li><li>
|
89
|
-
<p>Redistributions in binary form must reproduce the above copyright notice,
|
90
|
-
this list of conditions and the following disclaimer in the documentation
|
91
|
-
and/or other materials provided with the distribution.</p>
|
92
|
-
</li></ol>
|
93
|
-
|
94
|
-
<p>THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS “AS IS''
|
95
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
96
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
97
|
-
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
98
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
99
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
100
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
101
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
102
|
-
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
103
|
-
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
104
|
-
DAMAGE.</p>
|
105
|
-
</main>
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<footer id="validator-badges" role="contentinfo">
|
110
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
111
|
-
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
|
112
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
113
|
-
</footer>
|
114
|
-
|