ruby-prof 1.7.2 → 2.0.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 +4 -4
- data/{CHANGES → CHANGELOG.md} +112 -178
- data/README.md +5 -5
- data/bin/ruby-prof +1 -4
- data/docs/advanced-usage.md +132 -0
- data/docs/alternatives.md +98 -0
- data/docs/architecture.md +122 -0
- data/docs/best-practices.md +27 -0
- data/docs/getting-started.md +130 -0
- data/docs/history.md +11 -0
- data/docs/index.md +45 -0
- data/docs/profiling-rails.md +64 -0
- data/docs/public/examples/example.rb +33 -0
- data/docs/public/examples/generate_reports.rb +92 -0
- data/docs/public/examples/reports/call_info.txt +27 -0
- data/docs/public/examples/reports/call_stack.html +835 -0
- data/docs/public/examples/reports/callgrind.out +150 -0
- data/docs/public/examples/reports/flame_graph.html +408 -0
- data/docs/public/examples/reports/flat.txt +45 -0
- data/docs/public/examples/reports/graph.dot +129 -0
- data/docs/public/examples/reports/graph.html +1319 -0
- data/docs/public/examples/reports/graph.txt +100 -0
- data/docs/public/examples/reports/graphviz_viewer.html +1 -0
- data/docs/public/images/call_stack.png +0 -0
- data/docs/public/images/class_diagram.png +0 -0
- data/docs/public/images/dot_printer.png +0 -0
- data/docs/public/images/flame_graph.png +0 -0
- data/docs/public/images/flat.png +0 -0
- data/docs/public/images/graph.png +0 -0
- data/docs/public/images/graph_html.png +0 -0
- data/docs/public/images/ruby-prof-logo.svg +1 -0
- data/docs/reports.md +150 -0
- data/docs/stylesheets/extra.css +80 -0
- data/ext/ruby_prof/rp_allocation.c +0 -15
- data/ext/ruby_prof/rp_allocation.h +29 -33
- data/ext/ruby_prof/rp_call_tree.c +3 -0
- data/ext/ruby_prof/rp_call_tree.h +1 -4
- data/ext/ruby_prof/rp_call_trees.h +1 -4
- data/ext/ruby_prof/rp_measurement.c +0 -5
- data/ext/ruby_prof/rp_measurement.h +49 -53
- data/ext/ruby_prof/rp_method.c +3 -0
- data/ext/ruby_prof/rp_method.h +1 -4
- data/ext/ruby_prof/rp_profile.c +1 -1
- data/ext/ruby_prof/rp_profile.h +1 -5
- data/ext/ruby_prof/rp_stack.h +50 -53
- data/ext/ruby_prof/rp_thread.h +1 -4
- data/ext/ruby_prof/ruby_prof.h +1 -4
- data/ext/ruby_prof/vc/ruby_prof.vcxproj +7 -8
- data/lib/ruby-prof/assets/call_stack_printer.html.erb +746 -711
- data/lib/ruby-prof/assets/flame_graph_printer.html.erb +412 -0
- data/lib/ruby-prof/assets/graph_printer.html.erb +355 -355
- data/lib/ruby-prof/call_tree.rb +57 -57
- data/lib/ruby-prof/call_tree_visitor.rb +36 -36
- data/lib/ruby-prof/measurement.rb +17 -17
- data/lib/ruby-prof/printers/abstract_printer.rb +19 -33
- data/lib/ruby-prof/printers/call_info_printer.rb +53 -53
- data/lib/ruby-prof/printers/call_stack_printer.rb +168 -180
- data/lib/ruby-prof/printers/call_tree_printer.rb +132 -145
- data/lib/ruby-prof/printers/dot_printer.rb +177 -132
- data/lib/ruby-prof/printers/flame_graph_printer.rb +79 -0
- data/lib/ruby-prof/printers/flat_printer.rb +52 -52
- data/lib/ruby-prof/printers/graph_html_printer.rb +62 -63
- data/lib/ruby-prof/printers/graph_printer.rb +112 -113
- data/lib/ruby-prof/printers/multi_printer.rb +134 -127
- data/lib/ruby-prof/profile.rb +13 -0
- data/lib/ruby-prof/rack.rb +114 -105
- data/lib/ruby-prof/task.rb +147 -147
- data/lib/ruby-prof/thread.rb +20 -20
- data/lib/ruby-prof/version.rb +1 -1
- data/lib/ruby-prof.rb +50 -52
- data/lib/unprof.rb +10 -10
- data/ruby-prof.gemspec +5 -5
- data/test/abstract_printer_test.rb +25 -27
- data/test/alias_test.rb +203 -117
- data/test/call_tree_builder.rb +126 -126
- data/test/call_tree_visitor_test.rb +27 -27
- data/test/call_trees_test.rb +66 -66
- data/test/duplicate_names_test.rb +32 -32
- data/test/dynamic_method_test.rb +50 -50
- data/test/exceptions_test.rb +24 -24
- data/test/exclude_threads_test.rb +48 -48
- data/test/fiber_test.rb +72 -72
- data/test/inverse_call_tree_test.rb +174 -174
- data/test/line_number_test.rb +138 -1
- data/test/marshal_test.rb +144 -145
- data/test/measure_allocations.rb +26 -26
- data/test/measure_allocations_test.rb +340 -1
- data/test/measure_process_time_test.rb +3098 -3142
- data/test/measure_times.rb +56 -56
- data/test/measure_wall_time_test.rb +511 -372
- data/test/measurement_test.rb +82 -82
- data/test/merge_test.rb +48 -48
- data/test/multi_printer_test.rb +52 -66
- data/test/no_method_class_test.rb +15 -15
- data/test/pause_resume_test.rb +171 -171
- data/test/prime.rb +54 -54
- data/test/prime_script.rb +5 -5
- data/test/printer_call_stack_test.rb +28 -27
- data/test/printer_call_tree_test.rb +30 -30
- data/test/printer_flame_graph_test.rb +82 -0
- data/test/printer_flat_test.rb +99 -99
- data/test/printer_graph_html_test.rb +62 -59
- data/test/printer_graph_test.rb +42 -40
- data/test/printers_test.rb +28 -44
- data/test/printing_recursive_graph_test.rb +81 -81
- data/test/profile_test.rb +101 -101
- data/test/rack_test.rb +103 -93
- data/test/recursive_test.rb +139 -139
- data/test/scheduler.rb +4 -0
- data/test/singleton_test.rb +39 -38
- data/test/stack_printer_test.rb +61 -61
- data/test/start_stop_test.rb +106 -106
- data/test/test_helper.rb +4 -0
- data/test/thread_test.rb +29 -29
- data/test/unique_call_path_test.rb +123 -123
- data/test/yarv_test.rb +56 -56
- metadata +53 -11
- data/ext/ruby_prof/rp_measure_memory.c +0 -46
- data/lib/ruby-prof/compatibility.rb +0 -113
- data/test/compatibility_test.rb +0 -49
- data/test/measure_memory_test.rb +0 -1193
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e224180ee0860da7eab97053ea3b121fee69548319a876ff36281d8adf685ca
|
|
4
|
+
data.tar.gz: 0a31dd2aa2d8606e5f707d1d10c0e0989ecaab0207f941f92d3c3fba0dd6d837
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25a752b1bb9d94fdfcb0c7fc981cebf9427759fb37f585ba103d63b96b6347e884da9a1dff19a56053953cfd95341ff14c52293361a3a4f8ed347381d4a80d31
|
|
7
|
+
data.tar.gz: 9569f365932edcaf06c58b7f7672e75282efa51605b954ff2a3097a2fb48db155a4ffdc6416e47be9193734c679d7d037baa0925f34d61b09979552827b052ae
|
data/{CHANGES → CHANGELOG.md}
RENAMED
|
@@ -1,38 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.0 (2026-02-13)
|
|
4
|
+
### Features
|
|
5
|
+
* Ruby 4.0 support.
|
|
6
|
+
* Add flame graph visualizations with icicle mode toggle
|
|
7
|
+
* Lots of documentation updates!
|
|
8
|
+
* Apply consistent styling across all reports
|
|
9
|
+
* Add `Profile#measure_mode_name` method for human-friendly measurement mode names (e.g., "Wall Time" instead of "wall_time")
|
|
10
|
+
* Fix DotPrinter generating self-referencing edges (was using callers instead of callees)
|
|
11
|
+
* Add Graphviz Online viewer link for dot output
|
|
12
|
+
|
|
13
|
+
### Backwards Incompatible Changes
|
|
14
|
+
* Removed `RubyProf::MEMORY` measurement mode (no longer works on Ruby 4.0+)
|
|
15
|
+
* Rremove compatibility API that was scheduled for removal in 2023
|
|
16
|
+
* Printer options now use keyword arguments instead of an options hash. For example:
|
|
17
|
+
```ruby
|
|
18
|
+
# Before:
|
|
19
|
+
printer.print(STDOUT, :min_percent => 2, :sort_method => :self_time)
|
|
20
|
+
# After:
|
|
21
|
+
printer.print(STDOUT, min_percent: 2, sort_method: :self_time)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 1.7.2 (2025-05-21)
|
|
3
25
|
* Fix compiling on Ubuntu and Arch Linux
|
|
4
26
|
* Update tests for Ruby 3.4
|
|
5
27
|
* Remove tests for Ruby 3.1
|
|
6
28
|
* Update MacOS to use clock_gettime (same as Linux) instead of proprietary mach_absolute_time API
|
|
7
29
|
* Add CMake support
|
|
8
30
|
|
|
9
|
-
1.7.1 (2024-10-19)
|
|
10
|
-
=====================
|
|
31
|
+
## 1.7.1 (2024-10-19)
|
|
11
32
|
* Fix crashes when calling merge due to inconsistent method keys (Chris Heald)
|
|
12
33
|
|
|
13
|
-
1.7.0 (2024-01-07)
|
|
14
|
-
=====================
|
|
34
|
+
## 1.7.0 (2024-01-07)
|
|
15
35
|
* Add support for ruby 3.3.* (Charlie Savage)
|
|
16
36
|
* Remove support for ruby 2.7.* (Charlie Savage)
|
|
17
37
|
* Fix crash caused by referencing Profile Ruby objects from Method objects that were being moved
|
|
18
38
|
by GC compaction (Charlie Savage)
|
|
19
39
|
|
|
20
|
-
1.6.3 (2023-04-20)
|
|
21
|
-
=====================
|
|
40
|
+
## 1.6.3 (2023-04-20)
|
|
22
41
|
* Remove debug code unintentionally left in ruby-prof command line program (Charlie Savage)
|
|
23
42
|
|
|
24
|
-
1.6.2 (2023-04-17)
|
|
25
|
-
=====================
|
|
43
|
+
## 1.6.2 (2023-04-17)
|
|
26
44
|
* Fix Profile#merge! implementation (asksurya)
|
|
27
45
|
* Fix ruby-prof command line program (Charlie Savage)
|
|
28
46
|
* Added CMakeLists.txt file (Charlie Savage)
|
|
29
47
|
|
|
30
|
-
1.6.1 (2023-02-21)
|
|
31
|
-
=====================
|
|
48
|
+
## 1.6.1 (2023-02-21)
|
|
32
49
|
* Fix loading C extension for MacOS (Charlie Savage)
|
|
33
50
|
|
|
34
|
-
1.6.0 (2023-02-20)
|
|
35
|
-
=====================
|
|
51
|
+
## 1.6.0 (2023-02-20)
|
|
36
52
|
* Add support for Ruby's compacting garbage collector (Charlie Savage)
|
|
37
53
|
* Add rbs signature files (Charlie Savage)
|
|
38
54
|
* Update rack adapter used for profiling Rails to include latest ruby-prof features (Charlie Savage)
|
|
@@ -40,19 +56,16 @@
|
|
|
40
56
|
* Update tests to not use deprecated methods (Charlie Savage)
|
|
41
57
|
* Improve tests on OSX (Charlie Savage)
|
|
42
58
|
|
|
43
|
-
1.5.0 (2023-02-06)
|
|
44
|
-
=====================
|
|
59
|
+
## 1.5.0 (2023-02-06)
|
|
45
60
|
* Add new Profile#merge! method that merges results for threads/fibers that share the same root method (Charlie Savage)
|
|
46
61
|
* Expand API to allow creation of +Measurement+, +CallTree+, +MethodInfo+ and +Thread+ instances. This
|
|
47
62
|
was done to make is possible to write tests for the new Profile#merge! functionality (Charlie Savage)
|
|
48
63
|
|
|
49
|
-
1.4.5 (2022-12-27)
|
|
50
|
-
=====================
|
|
64
|
+
## 1.4.5 (2022-12-27)
|
|
51
65
|
* Look for ruby_prof extension built on install in the lib directory (Charlie Savage)
|
|
52
66
|
* Added Ruby 3.2.0 build for mingw-urct
|
|
53
67
|
|
|
54
|
-
1.4.4 (2022-12-11)
|
|
55
|
-
=====================
|
|
68
|
+
## 1.4.4 (2022-12-11)
|
|
56
69
|
* Update tests for Ruby 3.1 (Charlie Savage)
|
|
57
70
|
* When tracing allocations always use the RUBY_INTERNAL_EVENT_NEWOBJ trace event. Previously GC stats could also be used, but that includes the creation of internal T_IMEMO objects makes reviewing results confusing (Charlie Savage)
|
|
58
71
|
* Remove :profile option that lets a user set the prefix on callgrind output files since KCacheGrind will not automatically show these files in its open dialog. Fixes #313. (Charlie Savage)
|
|
@@ -66,8 +79,7 @@
|
|
|
66
79
|
* Fix typo. s/perecent/percent/ (Paarth Madan)
|
|
67
80
|
* Remove support for Ruby 2.5 and 2.6 which are now end of life (Charlie Savage)
|
|
68
81
|
|
|
69
|
-
1.4.3 (2021-02-16)
|
|
70
|
-
=====================
|
|
82
|
+
## 1.4.3 (2021-02-16)
|
|
71
83
|
* Remove trailing spaces (sergioro)
|
|
72
84
|
* Load "ruby-prof.so" with require_relative (sergioro)
|
|
73
85
|
* Use same file permissions for all test files (sergioro)
|
|
@@ -80,44 +92,37 @@
|
|
|
80
92
|
* Remove Ruby 2.4 support since it is no longer maintained (Charlie Savage)
|
|
81
93
|
* Replace travis status badge with github status badge (Charlie Savage)
|
|
82
94
|
|
|
83
|
-
1.4.2 (2020-11-3)
|
|
84
|
-
=====================
|
|
95
|
+
## 1.4.2 (2020-11-3)
|
|
85
96
|
* Do NOT use Ruby 2.7.0 and 2.7.1 with ruby-prof. A bug in those versions of ruby causes ruby-prof to
|
|
86
97
|
not work. Version 2.7.2 works correctly.
|
|
87
98
|
* Fix crash caused be reallocating an internal stack that keeps tracks of frames *after* getting a reference to the
|
|
88
99
|
top frame in the stack (Charlie Savage).
|
|
89
100
|
* Fix bug where the flat printer did not correctly report the correct measurement mode.
|
|
90
101
|
|
|
91
|
-
1.4.1 (2020-05-14)
|
|
92
|
-
=====================
|
|
102
|
+
## 1.4.1 (2020-05-14)
|
|
93
103
|
* Fix compiling on older versions of gcc that do not default to c99 (Charlie Savage)
|
|
94
104
|
|
|
95
|
-
1.4.0 (2020-05-12)
|
|
96
|
-
=====================
|
|
105
|
+
## 1.4.0 (2020-05-12)
|
|
97
106
|
* API change - remove merge_fibers support since it resulted in incorrect results or crashes (Charlie Savage)
|
|
98
107
|
* Fix crash when profiling memory usage (Charlie Savage)
|
|
99
108
|
* When tracing execution correctly print out newobj tracepoint events (Charlie Savage)
|
|
100
109
|
* Remove no longer needed code for building extensions (Charlie Savage)
|
|
101
110
|
|
|
102
|
-
1.3.2 (2020-04-19)
|
|
103
|
-
=====================
|
|
111
|
+
## 1.3.2 (2020-04-19)
|
|
104
112
|
* Fix rack profiler so it is thread safe (Charlie Savage)
|
|
105
113
|
* Fix loading of prebuilt binaries on mingw64 to use Ruby's major and minor version (Charlie Savage)
|
|
106
114
|
|
|
107
|
-
1.3.1 (2020-03-11)
|
|
108
|
-
=====================
|
|
115
|
+
## 1.3.1 (2020-03-11)
|
|
109
116
|
* Add max_percent and filter_by options to flat printer (Sean McGivern)
|
|
110
117
|
* Include binary in mingw64 build (Charlie Savage)
|
|
111
118
|
|
|
112
|
-
1.3.0 (2020-02-22)
|
|
113
|
-
=====================
|
|
119
|
+
## 1.3.0 (2020-02-22)
|
|
114
120
|
* Update C code to use newer RTypedData API versus older RData API.
|
|
115
121
|
* Update C code to use rb_cObject versus the older, deprecated, rb_cData.
|
|
116
122
|
* Update memory management - CallInfo's now keep alive their owning Profile instances. Fixes crashes that
|
|
117
123
|
could happen in rare instances.
|
|
118
124
|
|
|
119
|
-
1.2.0 (2020-01-23)
|
|
120
|
-
=====================
|
|
125
|
+
## 1.2.0 (2020-01-23)
|
|
121
126
|
* Fix call stack printer broken in version 1.0.0 (Charlie Savage)
|
|
122
127
|
* Ruby 2.7.0 support (Charlie Savage)
|
|
123
128
|
* Switch to Windows high precision timer for measuring wall time (Charlie Savage)
|
|
@@ -127,15 +132,13 @@ top frame in the stack (Charlie Savage).
|
|
|
127
132
|
* API change - CallInfo has been renamed CallTree
|
|
128
133
|
* Fix crashes on Ruby 2.4.*
|
|
129
134
|
|
|
130
|
-
1.1.0 (2019-12-14)
|
|
131
|
-
=====================
|
|
135
|
+
## 1.1.0 (2019-12-14)
|
|
132
136
|
Changes
|
|
133
137
|
|
|
134
138
|
* Reimplement merge_fibers (Charlie Savage)
|
|
135
139
|
* Fix crash caused by threads being freed when profiles are freed (Charlie Savage)
|
|
136
140
|
|
|
137
|
-
1.0.0 (2019-07-29)
|
|
138
|
-
=====================
|
|
141
|
+
## 1.0.0 (2019-07-29)
|
|
139
142
|
ruby-prof's development stretches all the way back to 2005. Fourteen years later, it seems time for version 1.0!
|
|
140
143
|
Version 1.0 is a significant update that greatly improves the internals of ruby-prof and adds a number of improvements.
|
|
141
144
|
|
|
@@ -159,10 +162,8 @@ At the same time, it was also time to remove old code and deprecated methods. Th
|
|
|
159
162
|
* Removed support for RUBY_PROF_EDITOR_URI environment variable that specified the link scheme. This features was more confusing then helpful.
|
|
160
163
|
|
|
161
164
|
|
|
162
|
-
0.18.0 (2019-05-27)
|
|
163
|
-
|
|
164
|
-
Fixes
|
|
165
|
-
------
|
|
165
|
+
## 0.18.0 (2019-05-27)
|
|
166
|
+
### Fixes
|
|
166
167
|
* Fix grouping by thread/fiber (Charlie Savage)
|
|
167
168
|
* Fix include/exclude thread checking (Charlie Savage)
|
|
168
169
|
* Fix failing tests (Charlie Savage)
|
|
@@ -177,8 +178,7 @@ Fixes
|
|
|
177
178
|
* Travis updates (Niocals Leger and Charlie Savage)
|
|
178
179
|
* Fix NewRelic module detection in exclude_common_methods! (Ben Hughes)
|
|
179
180
|
|
|
180
|
-
0.17.0 (2017-12-17)
|
|
181
|
-
=====================
|
|
181
|
+
## 0.17.0 (2017-12-17)
|
|
182
182
|
* Changed method/class names produced by the callgrind printer to be more kcachegrind
|
|
183
183
|
friendly (thx to Nelson Gauthier and Ben Hughes, see https://github.com/ruby-prof/ruby-prof/pull/200).
|
|
184
184
|
* Recursive instances of a method call are now dtected during profiling (thx to Nelson Gauthier and
|
|
@@ -192,16 +192,13 @@ Fixes
|
|
|
192
192
|
* Fixed that calling profile.stop would stop profiling all active profiling runs.
|
|
193
193
|
* Fixed that remembering parent call frame pointer before stack reallocation could cause a segfault.
|
|
194
194
|
|
|
195
|
-
0.16.2 (2016-08-25)
|
|
196
|
-
=====================
|
|
195
|
+
## 0.16.2 (2016-08-25)
|
|
197
196
|
* fixed incorrect setting of RUBY_VERSION macro
|
|
198
197
|
|
|
199
|
-
0.16.1 (2016-08-24)
|
|
200
|
-
=====================
|
|
198
|
+
## 0.16.1 (2016-08-24)
|
|
201
199
|
* fixed compile problem with ruby 2.1.10
|
|
202
200
|
|
|
203
|
-
0.16.0 (2016-08-24)
|
|
204
|
-
=====================
|
|
201
|
+
## 0.16.0 (2016-08-24)
|
|
205
202
|
* ruby-prof can now be installed if ruby has been compiled with --disable-gems or
|
|
206
203
|
RUBYOPT includes --disable-gems (thx to Arthur Nogueira Neves)
|
|
207
204
|
* Profile.new now accepts and prefers an options hash:
|
|
@@ -226,78 +223,61 @@ Fixes
|
|
|
226
223
|
* fixed setting threshold bug when displaying stack profiles (thx to Michal Konarski)
|
|
227
224
|
* code related to printing profiles is now autoloaded for efficiency (thx to Dave Gynn)
|
|
228
225
|
|
|
229
|
-
0.15.9 (2015-12-08)
|
|
230
|
-
======================
|
|
226
|
+
## 0.15.9 (2015-12-08)
|
|
231
227
|
* rack profiler now supports lambdas for generating profile paths (thx to Jean Rougé)
|
|
232
228
|
* fixed a bug when printing graph profiles
|
|
233
229
|
|
|
234
|
-
0.15.8 (2015-04-24)
|
|
235
|
-
======================
|
|
230
|
+
## 0.15.8 (2015-04-24)
|
|
236
231
|
* added missing assets to gem build
|
|
237
232
|
* fixed randomly failing test
|
|
238
233
|
|
|
239
|
-
0.15.7 (2015-04-23)
|
|
240
|
-
======================
|
|
234
|
+
## 0.15.7 (2015-04-23)
|
|
241
235
|
* html profiles are now single page (thx to Thomas Leishman)
|
|
242
236
|
|
|
243
|
-
0.15.6 (2015-02-22)
|
|
244
|
-
======================
|
|
237
|
+
## 0.15.6 (2015-02-22)
|
|
245
238
|
* improved upon computing children time in graph printers
|
|
246
239
|
|
|
247
|
-
0.15.5 (2015-02-22)
|
|
248
|
-
======================
|
|
240
|
+
## 0.15.5 (2015-02-22)
|
|
249
241
|
* changed output format of flat_printer_with_line_number
|
|
250
242
|
* support using multi printer from command line (Dov Murik)
|
|
251
243
|
|
|
252
|
-
0.15.4 (2015-02-14)
|
|
253
|
-
======================
|
|
244
|
+
## 0.15.4 (2015-02-14)
|
|
254
245
|
* using env variable to specify mesaurement mode work again
|
|
255
246
|
* measuring memory/object allocations works for 2.1 adn 2.2 again
|
|
256
247
|
|
|
257
|
-
0.15.3 (2015-01-16)
|
|
258
|
-
======================
|
|
248
|
+
## 0.15.3 (2015-01-16)
|
|
259
249
|
* support ruby 2.2.0
|
|
260
250
|
|
|
261
|
-
0.15.2 (2014-05-20)
|
|
262
|
-
======================
|
|
251
|
+
## 0.15.2 (2014-05-20)
|
|
263
252
|
* rack middleware creates print dir for profile result (Neng)
|
|
264
253
|
|
|
265
|
-
0.15.1 (2014-05-20)
|
|
266
|
-
======================
|
|
254
|
+
## 0.15.1 (2014-05-20)
|
|
267
255
|
* added license to gemspec
|
|
268
256
|
|
|
269
|
-
0.15.0 (2014-05-02)
|
|
270
|
-
======================
|
|
257
|
+
## 0.15.0 (2014-05-02)
|
|
271
258
|
* improved cpu time measurement (Charlie Somerville)
|
|
272
259
|
|
|
273
|
-
0.14.2 (2014-01-05)
|
|
274
|
-
======================
|
|
260
|
+
## 0.14.2 (2014-01-05)
|
|
275
261
|
* hopefully fixed compile problem under Windows
|
|
276
262
|
|
|
277
|
-
0.14.0 (2014-01-02)
|
|
278
|
-
======================
|
|
263
|
+
## 0.14.0 (2014-01-02)
|
|
279
264
|
* support ruby 2.1.0
|
|
280
265
|
* dropped support for 1.8.x, 1.9.1 and 1.9.2
|
|
281
266
|
|
|
282
|
-
0.13.1 (2013-12-14)
|
|
283
|
-
======================
|
|
267
|
+
## 0.13.1 (2013-12-14)
|
|
284
268
|
* speed up for displaying large call stacks (Benjamin Quoming)
|
|
285
269
|
|
|
286
|
-
0.13 (2013-03-10)
|
|
287
|
-
======================
|
|
270
|
+
## 0.13 (2013-03-10)
|
|
288
271
|
* support fibers on 1.9.x+
|
|
289
272
|
* improved display for very wide call stacks (Sammy Larbi)
|
|
290
273
|
|
|
291
|
-
0.12.2 (2013-02-13)
|
|
292
|
-
======================
|
|
274
|
+
## 0.12.2 (2013-02-13)
|
|
293
275
|
* Fixed segfault when using falcon or railsexpress patches for 1.9.3
|
|
294
276
|
|
|
295
|
-
0.12.1 (2013-01-07)
|
|
296
|
-
======================
|
|
277
|
+
## 0.12.1 (2013-01-07)
|
|
297
278
|
* Add back in pause/resume support since Rails uses it
|
|
298
279
|
|
|
299
|
-
0.12.0 (2013-01-06)
|
|
300
|
-
======================
|
|
280
|
+
## 0.12.0 (2013-01-06)
|
|
301
281
|
* Ruby 2.0.0 support (Charlie Savage)
|
|
302
282
|
* Fix issue where profiling results could exceed 100% if profile code had multiple top level methods (Charlie Savage)
|
|
303
283
|
* Replaced RubyProf::Thread#top_method with RubyProf::Thread#top_methods (Charlie Savage)
|
|
@@ -308,8 +288,7 @@ Fixes
|
|
|
308
288
|
* Fix list formatting in readme (Thilo Rusche)
|
|
309
289
|
* Remove pause/resume support since its buggy and complicates the code
|
|
310
290
|
|
|
311
|
-
0.11.3 (2012-12-27)
|
|
312
|
-
======================
|
|
291
|
+
## 0.11.3 (2012-12-27)
|
|
313
292
|
* Prefix c functions with prof_ to avoid name conflicts (Kenta Murata)
|
|
314
293
|
* Update ruby-prof script to avoid seg faults (Gary Weaver)
|
|
315
294
|
* Rakefile updates (Roger Pack)
|
|
@@ -319,20 +298,17 @@ Fixes
|
|
|
319
298
|
* Remove duplicate code (Chas Lemley)
|
|
320
299
|
|
|
321
300
|
|
|
322
|
-
0.11.2 (2012-05-06)
|
|
323
|
-
======================
|
|
301
|
+
## 0.11.2 (2012-05-06)
|
|
324
302
|
* Fix compile issue with BOOL. Should be _Bool for C99.
|
|
325
303
|
|
|
326
304
|
|
|
327
|
-
0.11.1 (2012-05-06)
|
|
328
|
-
======================
|
|
305
|
+
## 0.11.1 (2012-05-06)
|
|
329
306
|
* Added option --exclude-common-callbacks, plus exclude #map and #inject in common cycles (Vasily Fedoseyev)
|
|
330
307
|
* Add option --exclude-common-cycles to exclude common iterators (Vasily Fedoseyev)
|
|
331
308
|
* Allow method elimination from command line via '-x' and '-X' keys (Vasily Fedoseyev)
|
|
332
309
|
|
|
333
310
|
|
|
334
|
-
0.11.0 (2012-05-05)
|
|
335
|
-
======================
|
|
311
|
+
## 0.11.0 (2012-05-05)
|
|
336
312
|
* Fix pause/resume so it actually works and add tests (David Barri)
|
|
337
313
|
* Resume now returns the result of the block when given (David Barri)
|
|
338
314
|
* Make recursive method explanation more clear (Charlie Savage)
|
|
@@ -342,13 +318,11 @@ Fixes
|
|
|
342
318
|
* Fix tests on 1.8.7 (rogerdpack)
|
|
343
319
|
|
|
344
320
|
|
|
345
|
-
0.11.0.rc3 (2012-03-26)
|
|
346
|
-
======================
|
|
321
|
+
## 0.11.0.rc3 (2012-03-26)
|
|
347
322
|
* Include missing files in gemspec (Charlie Savage).
|
|
348
323
|
|
|
349
324
|
|
|
350
|
-
0.11.0.rc2 (2012-03-25)
|
|
351
|
-
======================
|
|
325
|
+
## 0.11.0.rc2 (2012-03-25)
|
|
352
326
|
* Lots of improvements to Rack handler - this can be used to profile requests
|
|
353
327
|
in Rails and other rack-based ruby web frameworks (Charlie Savage).
|
|
354
328
|
* Reimplemented handling of recursive calls using CallInfoVisitor (Charlie Savage).
|
|
@@ -362,8 +336,7 @@ Fixes
|
|
|
362
336
|
* Significant updates to documentation (Charlie Savage).
|
|
363
337
|
* More c code cleanup (Charlie Savage).
|
|
364
338
|
|
|
365
|
-
0.11.0.rc1 (2012-03-24)
|
|
366
|
-
======================
|
|
339
|
+
## 0.11.0.rc1 (2012-03-24)
|
|
367
340
|
* Big internal refactoring of C code to make RubyProf easier to understand and extend (Charlie Savage).
|
|
368
341
|
* Profile results are now returned as instances of a new class RubyProf::Profile. The old api
|
|
369
342
|
is supported via a compatability layer that at some point will be deprecated. (Charlie Savage).
|
|
@@ -382,54 +355,42 @@ Fixes
|
|
|
382
355
|
* Remove custom mingw build scripts, use rake compiler instead (Charlie Savage).
|
|
383
356
|
* Fixes for compiling with VC 2010 (Charlie Savage).
|
|
384
357
|
|
|
385
|
-
0.10.8 (2011-07-06)
|
|
386
|
-
======================
|
|
358
|
+
## 0.10.8 (2011-07-06)
|
|
387
359
|
* 1.9.3 super class (Roger Pack)
|
|
388
360
|
|
|
389
|
-
0.10.7 (2011-05-09)
|
|
390
|
-
======================
|
|
361
|
+
## 0.10.7 (2011-05-09)
|
|
391
362
|
* Fix a bug with REE's GC stats. Issue #53 [thanks graaff]
|
|
392
363
|
|
|
393
|
-
0.10.6 (2011-04-29)
|
|
394
|
-
======================
|
|
364
|
+
## 0.10.6 (2011-04-29)
|
|
395
365
|
* Slightly more normalized url for linux/windows links to files.
|
|
396
366
|
|
|
397
|
-
0.10.5 (2011-04-20)
|
|
398
|
-
=======================
|
|
367
|
+
## 0.10.5 (2011-04-20)
|
|
399
368
|
* 1.8.6 compat for -v command (bug fix)
|
|
400
369
|
|
|
401
|
-
0.10.4 (2011-04-20)
|
|
402
|
-
=======================
|
|
370
|
+
## 0.10.4 (2011-04-20)
|
|
403
371
|
* Faster load time for ruby-prof itself.
|
|
404
372
|
|
|
405
|
-
0.10.3
|
|
406
|
-
=======================
|
|
373
|
+
## 0.10.3
|
|
407
374
|
* Can cleanly load before rubygems now.
|
|
408
375
|
|
|
409
|
-
0.10.2
|
|
410
|
-
=======================
|
|
376
|
+
## 0.10.2
|
|
411
377
|
* Fix for 1.9.2, os x for latest commits (thanks skaes!)
|
|
412
378
|
|
|
413
|
-
0.10.1
|
|
414
|
-
=======================
|
|
379
|
+
## 0.10.1
|
|
415
380
|
* Fix bug in linux wall time, also load with only relative paths so that you can use it to benchmark rubygems startup overhead,
|
|
416
381
|
itself.
|
|
417
382
|
|
|
418
|
-
0.10.0
|
|
419
|
-
=======================
|
|
383
|
+
## 0.10.0
|
|
420
384
|
* Some rdoc changes, for linux wall time attempt to use higher granularity (thanks to all the contributors for this round!)
|
|
421
385
|
|
|
422
|
-
0.9.2
|
|
423
|
-
=======================
|
|
386
|
+
## 0.9.2
|
|
424
387
|
* Make graphviz work on 1.8.6
|
|
425
388
|
* Roll back some 1.9.2 optimizations until I can figure out what caused them.
|
|
426
389
|
|
|
427
|
-
0.9.1
|
|
428
|
-
=======================
|
|
390
|
+
## 0.9.1
|
|
429
391
|
* Add a graphviz output
|
|
430
392
|
|
|
431
|
-
0.9.0
|
|
432
|
-
=======================
|
|
393
|
+
## 0.9.0
|
|
433
394
|
* measurements for recursive methods are now correct
|
|
434
395
|
* gave up on splitting up recursive methods according to call depth
|
|
435
396
|
* made it possible to eliminate methods from profiling results
|
|
@@ -438,39 +399,32 @@ Fixes
|
|
|
438
399
|
* HTML profiles contain Textmate links so you can jump to the source code easily
|
|
439
400
|
* producing an event log is now a runtime option
|
|
440
401
|
|
|
441
|
-
0.7.10 (2009-01-22)
|
|
442
|
-
=======================
|
|
402
|
+
## 0.7.10 (2009-01-22)
|
|
443
403
|
* fix SEGFAULT in 1.9
|
|
444
404
|
* add new printer flat_printer_with_line_numbers
|
|
445
405
|
|
|
446
|
-
0.7.7 (2009-01-13)
|
|
447
|
-
======================
|
|
406
|
+
## 0.7.7 (2009-01-13)
|
|
448
407
|
* "fix" multi threading support for 1.9 http://redmine.ruby-lang.org/issues/show/2012
|
|
449
408
|
* speedups
|
|
450
409
|
|
|
451
|
-
0.7.6 (2009-12-31)
|
|
452
|
-
======================
|
|
410
|
+
## 0.7.6 (2009-12-31)
|
|
453
411
|
* fix some tests for 1.9 (no real code changes)
|
|
454
412
|
|
|
455
|
-
0.7.5 (2009-12)
|
|
456
|
-
========================
|
|
413
|
+
## 0.7.5 (2009-12)
|
|
457
414
|
* fix a GC collection bug (nobu's patch).
|
|
458
415
|
* correctly report recursive call depths (Kevin Scaldeferri).
|
|
459
416
|
* sort methods on output (Kevin Scaldeferri).
|
|
460
417
|
|
|
461
|
-
0.7.3 (2008-12-09)
|
|
462
|
-
========================
|
|
418
|
+
## 0.7.3 (2008-12-09)
|
|
463
419
|
* Fixed compile error with new x86_64 code using GCC.
|
|
464
420
|
|
|
465
|
-
0.7.2 (2008-12-08)
|
|
466
|
-
========================
|
|
421
|
+
## 0.7.2 (2008-12-08)
|
|
467
422
|
* Fixed major bug in printing child methods in graph reports.
|
|
468
423
|
|
|
469
424
|
* Fixes for supporting x86_64 machines (Diego Pettenò)
|
|
470
425
|
|
|
471
426
|
|
|
472
|
-
0.7.1 (2008-11-28)
|
|
473
|
-
========================
|
|
427
|
+
## 0.7.1 (2008-11-28)
|
|
474
428
|
* Added new AggregateCallTree class for printers to
|
|
475
429
|
make results easier to read. Take this call sequence
|
|
476
430
|
for example:
|
|
@@ -490,11 +444,9 @@ Fixes
|
|
|
490
444
|
* Fixes for supporting x86_64 machines (Matt Sanford)
|
|
491
445
|
|
|
492
446
|
|
|
493
|
-
0.7.0 (2008-11-04)
|
|
494
|
-
========================
|
|
447
|
+
## 0.7.0 (2008-11-04)
|
|
495
448
|
|
|
496
|
-
Features
|
|
497
|
-
--------
|
|
449
|
+
### Features
|
|
498
450
|
* Added two new methods - RubyProf.resume and RubyProf.pause.
|
|
499
451
|
RubyProf.resume takes an optional block, which ensures that
|
|
500
452
|
RubyProf.pause is called. For example:
|
|
@@ -535,29 +487,25 @@ Features
|
|
|
535
487
|
See http://lloydforge.org/projects/ruby. (Jeremy Kemper).
|
|
536
488
|
|
|
537
489
|
|
|
538
|
-
Fixes
|
|
539
|
-
-------
|
|
490
|
+
### Fixes
|
|
540
491
|
* RubyProf.profile no longer crashes if an exception is
|
|
541
492
|
thrown during a profiling run.
|
|
542
493
|
|
|
543
494
|
* Measure memory in fractional kilobytes rather than rounding down (Jeremy Kemper)
|
|
544
495
|
|
|
545
496
|
|
|
546
|
-
0.6.0 (2008-02-03)
|
|
547
|
-
========================
|
|
497
|
+
## 0.6.0 (2008-02-03)
|
|
548
498
|
|
|
549
499
|
ruby-prof 0.6.0 adds support for Ruby 1.9 and memory profiling.
|
|
550
500
|
|
|
551
|
-
Features
|
|
552
|
-
--------
|
|
501
|
+
### Features
|
|
553
502
|
* Added support for ruby 1.9 (Shugo Maeda)
|
|
554
503
|
* Added support for outputting printer results to a String, Array or IO
|
|
555
504
|
object (Michael Granger)
|
|
556
505
|
* Add new memory profiling mode. Note this mode depends on a
|
|
557
506
|
patched Ruby interpreter (Alexander Dymo)
|
|
558
507
|
|
|
559
|
-
Fixes
|
|
560
|
-
-------
|
|
508
|
+
### Fixes
|
|
561
509
|
* Improvements to GraphHtmlPrinter including updated documentation,
|
|
562
510
|
fixes for min_time support, ability to specify templates using
|
|
563
511
|
strings or filenames, and table layout fixes (Makoto Kuwata)
|
|
@@ -574,28 +522,23 @@ Fixes
|
|
|
574
522
|
set their values to nil if the functionality is not available.
|
|
575
523
|
|
|
576
524
|
|
|
577
|
-
0.5.2 (2007-07-19)
|
|
578
|
-
========================
|
|
525
|
+
## 0.5.2 (2007-07-19)
|
|
579
526
|
|
|
580
527
|
ruby-prof 0.5.2 is a bug fix release.
|
|
581
528
|
|
|
582
|
-
Fixes
|
|
583
|
-
-------
|
|
529
|
+
### Fixes
|
|
584
530
|
* Include missing rails plugin
|
|
585
531
|
|
|
586
532
|
|
|
587
|
-
0.5.1 (2007-07-18)
|
|
588
|
-
========================
|
|
533
|
+
## 0.5.1 (2007-07-18)
|
|
589
534
|
|
|
590
535
|
ruby-prof 0.5.1 is a bug fix and performance release.
|
|
591
536
|
|
|
592
|
-
Performance
|
|
593
|
-
--------
|
|
537
|
+
### Performance
|
|
594
538
|
* Significantly reduced the number of thread lookups by
|
|
595
539
|
caching the last executed thread.
|
|
596
540
|
|
|
597
|
-
Fixes
|
|
598
|
-
-------
|
|
541
|
+
### Fixes
|
|
599
542
|
* Properly escape method names in HTML reports
|
|
600
543
|
* Fix use of -m and --min-percent command line switches
|
|
601
544
|
* Default source file information to ruby_runtime#0 for c calls
|
|
@@ -605,11 +548,9 @@ Fixes
|
|
|
605
548
|
* Added additional tests
|
|
606
549
|
|
|
607
550
|
|
|
608
|
-
0.5.0 (2007-07-09)
|
|
609
|
-
========================
|
|
551
|
+
## 0.5.0 (2007-07-09)
|
|
610
552
|
|
|
611
|
-
Features
|
|
612
|
-
--------
|
|
553
|
+
### Features
|
|
613
554
|
* Added support for timing multi-threaded applications
|
|
614
555
|
* Added support for 64 bit systems (patch from Diego 'Flameeyes' Petten)
|
|
615
556
|
* Added suport for outputting data in the format used by
|
|
@@ -620,8 +561,7 @@ Features
|
|
|
620
561
|
* Added better support for recursive methods
|
|
621
562
|
* Added better support for profiling Rails applications
|
|
622
563
|
|
|
623
|
-
Fixes
|
|
624
|
-
-------
|
|
564
|
+
### Fixes
|
|
625
565
|
* Fixes bug when the type of an attached object (singleton) is inherited
|
|
626
566
|
from T_OBJECT as opposed to being a T_OBJECT (identified by Francis Cianfrocca)
|
|
627
567
|
* ruby-prof now works in IRB.
|
|
@@ -629,24 +569,19 @@ Fixes
|
|
|
629
569
|
* Fixed rdoc compile error.
|
|
630
570
|
* Fix tabs in erb template for graph html report on windows.
|
|
631
571
|
|
|
632
|
-
0.4.1 (2006-06-26)
|
|
633
|
-
========================
|
|
572
|
+
## 0.4.1 (2006-06-26)
|
|
634
573
|
|
|
635
|
-
Features
|
|
636
|
-
--------
|
|
574
|
+
### Features
|
|
637
575
|
* Added a RubyProf.running? method to indicate whether a profile is in progress.
|
|
638
576
|
* Added tgz and zip archives to release
|
|
639
577
|
|
|
640
|
-
Fixes
|
|
641
|
-
-------
|
|
578
|
+
### Fixes
|
|
642
579
|
* Duplicate method names are now allowed
|
|
643
580
|
* The documentation has been updated to show the correct API usage is RubyProf.stop not RubyProf.end
|
|
644
581
|
|
|
645
582
|
|
|
646
|
-
0.4.0 (2006-06-16)
|
|
647
|
-
|
|
648
|
-
Features
|
|
649
|
-
--------
|
|
583
|
+
## 0.4.0 (2006-06-16)
|
|
584
|
+
### Features
|
|
650
585
|
* added support for call graphs
|
|
651
586
|
* added support for printers. Currently there is a FlatPrinter,
|
|
652
587
|
GraphPrinter and GraphHtmlPrinter.
|
|
@@ -654,8 +589,7 @@ Features
|
|
|
654
589
|
* added Windows support
|
|
655
590
|
* now packaged as a RubyGem
|
|
656
591
|
|
|
657
|
-
Fixes
|
|
658
|
-
-------
|
|
592
|
+
### Fixes
|
|
659
593
|
* Fixes bug where RubyProf would crash depending on the
|
|
660
594
|
way it was invoked - for example, it did not run when
|
|
661
595
|
used with Arachno Ruby's customized version of Ruby.
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# ruby-prof
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
For an overview of ruby-prof please see https://ruby-prof.github.io
|
|
1
|
+
# ruby-prof
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
For an overview of ruby-prof please see https://ruby-prof.github.io
|
data/bin/ruby-prof
CHANGED
|
@@ -165,8 +165,7 @@ module RubyProf
|
|
|
165
165
|
'Select what ruby-prof should measure:',
|
|
166
166
|
' wall - Wall time (default).',
|
|
167
167
|
' process - Process time.',
|
|
168
|
-
' allocations - Object allocations (requires patched Ruby interpreter).'
|
|
169
|
-
' memory - Allocated memory in KB (requires patched Ruby interpreter).') do |measure_mode|
|
|
168
|
+
' allocations - Object allocations (requires patched Ruby interpreter).') do |measure_mode|
|
|
170
169
|
|
|
171
170
|
case measure_mode
|
|
172
171
|
when :wall
|
|
@@ -175,8 +174,6 @@ module RubyProf
|
|
|
175
174
|
options.measure_mode = RubyProf::PROCESS_TIME
|
|
176
175
|
when :allocations
|
|
177
176
|
options.measure_mode = RubyProf::ALLOCATIONS
|
|
178
|
-
when :memory
|
|
179
|
-
options.measure_mode = RubyProf::MEMORY
|
|
180
177
|
end
|
|
181
178
|
end
|
|
182
179
|
|