ruby-prof 0.16.2 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +15 -0
- data/README.rdoc +36 -5
- data/bin/ruby-prof +7 -2
- data/doc/LICENSE.html +2 -1
- data/doc/README_rdoc.html +42 -8
- data/doc/Rack.html +2 -1
- data/doc/Rack/RubyProf.html +25 -18
- data/doc/Rack/RubyProf/RackProfiler.html +343 -0
- data/doc/RubyProf.html +14 -2
- data/doc/RubyProf/AbstractPrinter.html +91 -12
- data/doc/RubyProf/AggregateCallInfo.html +2 -1
- data/doc/RubyProf/CallInfo.html +18 -78
- data/doc/RubyProf/CallInfoPrinter.html +2 -1
- data/doc/RubyProf/CallInfoVisitor.html +2 -1
- data/doc/RubyProf/CallStackPrinter.html +35 -29
- data/doc/RubyProf/CallTreePrinter.html +98 -14
- data/doc/RubyProf/Cmd.html +11 -5
- data/doc/RubyProf/DeprecationWarnings.html +148 -0
- data/doc/RubyProf/DotPrinter.html +2 -1
- data/doc/RubyProf/FlatPrinter.html +2 -1
- data/doc/RubyProf/FlatPrinterWithLineNumbers.html +7 -5
- data/doc/RubyProf/GraphHtmlPrinter.html +18 -12
- data/doc/RubyProf/GraphPrinter.html +2 -1
- data/doc/RubyProf/MethodInfo.html +19 -88
- data/doc/RubyProf/MultiPrinter.html +231 -17
- data/doc/RubyProf/Profile.html +184 -39
- data/doc/RubyProf/Profile/ExcludeCommonMethods.html +411 -0
- data/doc/RubyProf/Profile/LegacyMethodElimination.html +158 -0
- data/doc/RubyProf/ProfileTask.html +2 -1
- data/doc/RubyProf/Thread.html +4 -39
- data/doc/created.rid +21 -19
- data/doc/css/fonts.css +6 -6
- data/doc/examples/flat_txt.html +2 -1
- data/doc/examples/graph_html.html +2 -1
- data/doc/examples/graph_txt.html +2 -1
- data/doc/index.html +47 -7
- data/doc/js/darkfish.js +7 -7
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +1 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +190 -80
- data/ext/ruby_prof/extconf.rb +4 -0
- data/ext/ruby_prof/rp_call_info.c +19 -1
- data/ext/ruby_prof/rp_call_info.h +8 -3
- data/ext/ruby_prof/rp_method.c +282 -57
- data/ext/ruby_prof/rp_method.h +28 -5
- data/ext/ruby_prof/rp_stack.c +69 -24
- data/ext/ruby_prof/rp_stack.h +21 -9
- data/ext/ruby_prof/rp_thread.c +4 -1
- data/ext/ruby_prof/ruby_prof.c +142 -39
- data/ext/ruby_prof/ruby_prof.h +3 -0
- data/lib/ruby-prof.rb +10 -0
- data/lib/ruby-prof/call_info.rb +0 -11
- data/lib/ruby-prof/method_info.rb +4 -12
- data/lib/ruby-prof/printers/abstract_printer.rb +19 -1
- data/lib/ruby-prof/printers/call_info_printer.rb +1 -1
- data/lib/ruby-prof/printers/call_stack_printer.rb +9 -4
- data/lib/ruby-prof/printers/call_tree_printer.rb +15 -2
- data/lib/ruby-prof/printers/flat_printer_with_line_numbers.rb +23 -4
- data/lib/ruby-prof/printers/graph_html_printer.rb +10 -5
- data/lib/ruby-prof/printers/graph_printer.rb +2 -2
- data/lib/ruby-prof/printers/multi_printer.rb +44 -18
- data/lib/ruby-prof/profile.rb +13 -42
- data/lib/ruby-prof/profile/exclude_common_methods.rb +201 -0
- data/lib/ruby-prof/profile/legacy_method_elimination.rb +49 -0
- data/lib/ruby-prof/rack.rb +130 -51
- data/lib/ruby-prof/thread.rb +0 -6
- data/lib/ruby-prof/version.rb +1 -1
- data/ruby-prof.gemspec +4 -3
- data/test/aggregate_test.rb +1 -1
- data/test/exclude_methods_test.rb +146 -0
- data/test/line_number_test.rb +12 -3
- data/test/multi_printer_test.rb +23 -2
- data/test/no_method_class_test.rb +1 -1
- data/test/printers_test.rb +21 -1
- data/test/rack_test.rb +64 -0
- data/test/recursive_test.rb +15 -15
- data/test/test_helper.rb +11 -0
- metadata +20 -13
data/test/test_helper.rb
CHANGED
@@ -25,6 +25,17 @@ $LOAD_PATH << lib
|
|
25
25
|
$LOAD_PATH << ext
|
26
26
|
|
27
27
|
require 'ruby-prof'
|
28
|
+
|
29
|
+
# stub deprecation warnings
|
30
|
+
module RubyProf
|
31
|
+
module SuppressDeprecationWarnings
|
32
|
+
def deprecation_warning(*args)
|
33
|
+
super if ENV['SHOW_RUBY_PROF_DEPRECATION_WARNINGS'] == '1'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
extend SuppressDeprecationWarnings
|
37
|
+
end
|
38
|
+
|
28
39
|
require 'minitest/autorun'
|
29
40
|
|
30
41
|
class TestCase < Minitest::Test
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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: 2017-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: '5.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: 5.
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '1.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '5.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '5.0'
|
55
55
|
description: |
|
56
56
|
ruby-prof is a fast code profiler for Ruby. It is a C extension and
|
57
57
|
therefore is many times faster than the standard Ruby profiler. It
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- doc/README_rdoc.html
|
78
78
|
- doc/Rack.html
|
79
79
|
- doc/Rack/RubyProf.html
|
80
|
+
- doc/Rack/RubyProf/RackProfiler.html
|
80
81
|
- doc/RubyProf.html
|
81
82
|
- doc/RubyProf/AbstractPrinter.html
|
82
83
|
- doc/RubyProf/AggregateCallInfo.html
|
@@ -86,6 +87,7 @@ files:
|
|
86
87
|
- doc/RubyProf/CallStackPrinter.html
|
87
88
|
- doc/RubyProf/CallTreePrinter.html
|
88
89
|
- doc/RubyProf/Cmd.html
|
90
|
+
- doc/RubyProf/DeprecationWarnings.html
|
89
91
|
- doc/RubyProf/DotPrinter.html
|
90
92
|
- doc/RubyProf/FlatPrinter.html
|
91
93
|
- doc/RubyProf/FlatPrinterWithLineNumbers.html
|
@@ -94,6 +96,8 @@ files:
|
|
94
96
|
- doc/RubyProf/MethodInfo.html
|
95
97
|
- doc/RubyProf/MultiPrinter.html
|
96
98
|
- doc/RubyProf/Profile.html
|
99
|
+
- doc/RubyProf/Profile/ExcludeCommonMethods.html
|
100
|
+
- doc/RubyProf/Profile/LegacyMethodElimination.html
|
97
101
|
- doc/RubyProf/ProfileTask.html
|
98
102
|
- doc/RubyProf/Thread.html
|
99
103
|
- doc/created.rid
|
@@ -199,6 +203,8 @@ files:
|
|
199
203
|
- lib/ruby-prof/printers/graph_printer.rb
|
200
204
|
- lib/ruby-prof/printers/multi_printer.rb
|
201
205
|
- lib/ruby-prof/profile.rb
|
206
|
+
- lib/ruby-prof/profile/exclude_common_methods.rb
|
207
|
+
- lib/ruby-prof/profile/legacy_method_elimination.rb
|
202
208
|
- lib/ruby-prof/rack.rb
|
203
209
|
- lib/ruby-prof/task.rb
|
204
210
|
- lib/ruby-prof/thread.rb
|
@@ -214,6 +220,7 @@ files:
|
|
214
220
|
- test/dynamic_method_test.rb
|
215
221
|
- test/enumerable_test.rb
|
216
222
|
- test/exceptions_test.rb
|
223
|
+
- test/exclude_methods_test.rb
|
217
224
|
- test/exclude_threads_test.rb
|
218
225
|
- test/fiber_test.rb
|
219
226
|
- test/issue137_test.rb
|
@@ -263,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
270
|
version: '0'
|
264
271
|
requirements: []
|
265
272
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.
|
273
|
+
rubygems_version: 2.6.14
|
267
274
|
signing_key:
|
268
275
|
specification_version: 4
|
269
276
|
summary: Fast Ruby profiler
|