ruby-prof 1.8.0-x64-mswin64-140

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.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES +665 -0
  3. data/LICENSE +25 -0
  4. data/README.md +5 -0
  5. data/Rakefile +98 -0
  6. data/bin/ruby-prof +341 -0
  7. data/bin/ruby-prof-check-trace +45 -0
  8. data/ext/ruby_prof/extconf.rb +23 -0
  9. data/ext/ruby_prof/rp_allocation.c +327 -0
  10. data/ext/ruby_prof/rp_allocation.h +32 -0
  11. data/ext/ruby_prof/rp_call_tree.c +502 -0
  12. data/ext/ruby_prof/rp_call_tree.h +47 -0
  13. data/ext/ruby_prof/rp_call_trees.c +296 -0
  14. data/ext/ruby_prof/rp_call_trees.h +28 -0
  15. data/ext/ruby_prof/rp_measure_allocations.c +47 -0
  16. data/ext/ruby_prof/rp_measure_memory.c +46 -0
  17. data/ext/ruby_prof/rp_measure_process_time.c +64 -0
  18. data/ext/ruby_prof/rp_measure_wall_time.c +52 -0
  19. data/ext/ruby_prof/rp_measurement.c +359 -0
  20. data/ext/ruby_prof/rp_measurement.h +52 -0
  21. data/ext/ruby_prof/rp_method.c +551 -0
  22. data/ext/ruby_prof/rp_method.h +66 -0
  23. data/ext/ruby_prof/rp_profile.c +933 -0
  24. data/ext/ruby_prof/rp_profile.h +36 -0
  25. data/ext/ruby_prof/rp_stack.c +212 -0
  26. data/ext/ruby_prof/rp_stack.h +53 -0
  27. data/ext/ruby_prof/rp_thread.c +433 -0
  28. data/ext/ruby_prof/rp_thread.h +39 -0
  29. data/ext/ruby_prof/ruby_prof.c +50 -0
  30. data/ext/ruby_prof/ruby_prof.h +35 -0
  31. data/ext/ruby_prof/vc/ruby_prof.sln +39 -0
  32. data/ext/ruby_prof/vc/ruby_prof.vcxproj +158 -0
  33. data/lib/ruby-prof/assets/call_stack_printer.html.erb +711 -0
  34. data/lib/ruby-prof/assets/call_stack_printer.png +0 -0
  35. data/lib/ruby-prof/assets/graph_printer.html.erb +355 -0
  36. data/lib/ruby-prof/call_tree.rb +57 -0
  37. data/lib/ruby-prof/call_tree_visitor.rb +36 -0
  38. data/lib/ruby-prof/compatibility.rb +113 -0
  39. data/lib/ruby-prof/exclude_common_methods.rb +204 -0
  40. data/lib/ruby-prof/measurement.rb +17 -0
  41. data/lib/ruby-prof/method_info.rb +87 -0
  42. data/lib/ruby-prof/printers/abstract_printer.rb +156 -0
  43. data/lib/ruby-prof/printers/call_info_printer.rb +53 -0
  44. data/lib/ruby-prof/printers/call_stack_printer.rb +180 -0
  45. data/lib/ruby-prof/printers/call_tree_printer.rb +145 -0
  46. data/lib/ruby-prof/printers/dot_printer.rb +132 -0
  47. data/lib/ruby-prof/printers/flat_printer.rb +53 -0
  48. data/lib/ruby-prof/printers/graph_html_printer.rb +63 -0
  49. data/lib/ruby-prof/printers/graph_printer.rb +113 -0
  50. data/lib/ruby-prof/printers/multi_printer.rb +127 -0
  51. data/lib/ruby-prof/profile.rb +70 -0
  52. data/lib/ruby-prof/rack.rb +105 -0
  53. data/lib/ruby-prof/task.rb +147 -0
  54. data/lib/ruby-prof/thread.rb +20 -0
  55. data/lib/ruby-prof/version.rb +3 -0
  56. data/lib/ruby-prof.rb +52 -0
  57. data/lib/unprof.rb +10 -0
  58. data/ruby-prof.gemspec +67 -0
  59. data/test/abstract_printer_test.rb +27 -0
  60. data/test/alias_test.rb +117 -0
  61. data/test/call_tree_builder.rb +126 -0
  62. data/test/call_tree_test.rb +94 -0
  63. data/test/call_tree_visitor_test.rb +27 -0
  64. data/test/call_trees_test.rb +66 -0
  65. data/test/compatibility_test.rb +49 -0
  66. data/test/duplicate_names_test.rb +32 -0
  67. data/test/dynamic_method_test.rb +50 -0
  68. data/test/enumerable_test.rb +23 -0
  69. data/test/exceptions_test.rb +24 -0
  70. data/test/exclude_methods_test.rb +363 -0
  71. data/test/exclude_threads_test.rb +48 -0
  72. data/test/fiber_test.rb +195 -0
  73. data/test/gc_test.rb +104 -0
  74. data/test/inverse_call_tree_test.rb +174 -0
  75. data/test/line_number_test.rb +426 -0
  76. data/test/marshal_test.rb +145 -0
  77. data/test/measure_allocations.rb +26 -0
  78. data/test/measure_allocations_test.rb +1172 -0
  79. data/test/measure_process_time_test.rb +3330 -0
  80. data/test/measure_times.rb +56 -0
  81. data/test/measure_wall_time_test.rb +635 -0
  82. data/test/measurement_test.rb +82 -0
  83. data/test/merge_test.rb +146 -0
  84. data/test/method_info_test.rb +100 -0
  85. data/test/multi_printer_test.rb +66 -0
  86. data/test/no_method_class_test.rb +15 -0
  87. data/test/pause_resume_test.rb +171 -0
  88. data/test/prime.rb +54 -0
  89. data/test/prime_script.rb +6 -0
  90. data/test/printer_call_stack_test.rb +27 -0
  91. data/test/printer_call_tree_test.rb +30 -0
  92. data/test/printer_flat_test.rb +99 -0
  93. data/test/printer_graph_html_test.rb +59 -0
  94. data/test/printer_graph_test.rb +40 -0
  95. data/test/printers_test.rb +178 -0
  96. data/test/printing_recursive_graph_test.rb +81 -0
  97. data/test/profile_test.rb +101 -0
  98. data/test/rack_test.rb +93 -0
  99. data/test/recursive_test.rb +796 -0
  100. data/test/scheduler.rb +363 -0
  101. data/test/singleton_test.rb +38 -0
  102. data/test/stack_printer_test.rb +61 -0
  103. data/test/start_stop_test.rb +106 -0
  104. data/test/test_helper.rb +21 -0
  105. data/test/thread_test.rb +229 -0
  106. data/test/unique_call_path_test.rb +123 -0
  107. data/test/yarv_test.rb +56 -0
  108. metadata +228 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3f9d64ecf43b66800c906ae14b300eca9b3ede994e7685e16a5d81b44e9ac0ac
4
+ data.tar.gz: e8a93122c3a8b099a284085f5d4d7b5bfe6e77439474137bf4da80edfa328bf9
5
+ SHA512:
6
+ metadata.gz: 436650c161435d6343591bad19568aa4fdfcd77eed1f36e7003c0d65e731f872d848a1b4122ec7a8330dec0becc1b6a9f32feb9d0063bcf9c44d049b52a0256b
7
+ data.tar.gz: 777b3b9cbf70be6c810f9afa5e569e7dd6e604dd9491fbcf1a6e821785351827feccb36db73b190bad7164f220d3ad23b2ec1acfaff825835758e4ebe3cc0c42
data/CHANGES ADDED
@@ -0,0 +1,665 @@
1
+ 1.8.0 (2026-02-07)
2
+ =====================
3
+ * Ruby 4.0 support. Note tests don't pass because the trace_point API no longer returns Class#new
4
+
5
+ 1.7.2 (2025-05-21)
6
+ =====================
7
+ * Fix compiling on Ubuntu and Arch Linux
8
+ * Update tests for Ruby 3.4
9
+ * Remove tests for Ruby 3.1
10
+ * Update MacOS to use clock_gettime (same as Linux) instead of proprietary mach_absolute_time API
11
+ * Add CMake support
12
+
13
+ 1.7.1 (2024-10-19)
14
+ =====================
15
+ * Fix crashes when calling merge due to inconsistent method keys (Chris Heald)
16
+
17
+ 1.7.0 (2024-01-07)
18
+ =====================
19
+ * Add support for ruby 3.3.* (Charlie Savage)
20
+ * Remove support for ruby 2.7.* (Charlie Savage)
21
+ * Fix crash caused by referencing Profile Ruby objects from Method objects that were being moved
22
+ by GC compaction (Charlie Savage)
23
+
24
+ 1.6.3 (2023-04-20)
25
+ =====================
26
+ * Remove debug code unintentionally left in ruby-prof command line program (Charlie Savage)
27
+
28
+ 1.6.2 (2023-04-17)
29
+ =====================
30
+ * Fix Profile#merge! implementation (asksurya)
31
+ * Fix ruby-prof command line program (Charlie Savage)
32
+ * Added CMakeLists.txt file (Charlie Savage)
33
+
34
+ 1.6.1 (2023-02-21)
35
+ =====================
36
+ * Fix loading C extension for MacOS (Charlie Savage)
37
+
38
+ 1.6.0 (2023-02-20)
39
+ =====================
40
+ * Add support for Ruby's compacting garbage collector (Charlie Savage)
41
+ * Add rbs signature files (Charlie Savage)
42
+ * Update rack adapter used for profiling Rails to include latest ruby-prof features (Charlie Savage)
43
+ * Add warnings for deprecated methods (Charlie Savage)
44
+ * Update tests to not use deprecated methods (Charlie Savage)
45
+ * Improve tests on OSX (Charlie Savage)
46
+
47
+ 1.5.0 (2023-02-06)
48
+ =====================
49
+ * Add new Profile#merge! method that merges results for threads/fibers that share the same root method (Charlie Savage)
50
+ * Expand API to allow creation of +Measurement+, +CallTree+, +MethodInfo+ and +Thread+ instances. This
51
+ was done to make is possible to write tests for the new Profile#merge! functionality (Charlie Savage)
52
+
53
+ 1.4.5 (2022-12-27)
54
+ =====================
55
+ * Look for ruby_prof extension built on install in the lib directory (Charlie Savage)
56
+ * Added Ruby 3.2.0 build for mingw-urct
57
+
58
+ 1.4.4 (2022-12-11)
59
+ =====================
60
+ * Update tests for Ruby 3.1 (Charlie Savage)
61
+ * 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)
62
+ * 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)
63
+ * Don't expose threads to Ruby that don't have a call tree. This can happen when a user is profiling memory usage and then sends a signint to the profiled process. New objects will be created in a new thread, but no method enter/exit trace events are generated by Ruby. Thus the thread has no call tree. Fixes #312 (Charlie Savage)
64
+ * Update github Actions - change 3.0 to '3.0', add Windows mswin (MSP-Greg)
65
+ * Add Ruby 3.1 to test matrix (Charlie Savage)
66
+ * Use normal weight text instead of bold in call strack printer output. Fixes #297 (Charlie Savage)
67
+ * Update VC project to Ruby 3.1 and Visual Studio 2022 (Charlie Savage)
68
+ * Fix marshaling of profile measure. Fixes #315 (Charlie Savage)
69
+ * CI: Omit duplicate 'bundle install'. PR #309 (Olle Jonsson)
70
+ * Fix typo. s/perecent/percent/ (Paarth Madan)
71
+ * Remove support for Ruby 2.5 and 2.6 which are now end of life (Charlie Savage)
72
+
73
+ 1.4.3 (2021-02-16)
74
+ =====================
75
+ * Remove trailing spaces (sergioro)
76
+ * Load "ruby-prof.so" with require_relative (sergioro)
77
+ * Use same file permissions for all test files (sergioro)
78
+ * Create tmp directory for test output (sergioro)
79
+ * Update git-ignore to add mkmf log (sergioro)
80
+ * Fix minitest warning about using MT_CPU instead of N (sergioro)
81
+ * Fix minitest warning "Use assert_nil if expecting nil (sergioro)
82
+ * Add xcode project (Charlie Savage)
83
+ * Update test for Ruby 3.0 (Charlie Savage)
84
+ * Remove Ruby 2.4 support since it is no longer maintained (Charlie Savage)
85
+ * Replace travis status badge with github status badge (Charlie Savage)
86
+
87
+ 1.4.2 (2020-11-3)
88
+ =====================
89
+ * 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
90
+ not work. Version 2.7.2 works correctly.
91
+ * Fix crash caused be reallocating an internal stack that keeps tracks of frames *after* getting a reference to the
92
+ top frame in the stack (Charlie Savage).
93
+ * Fix bug where the flat printer did not correctly report the correct measurement mode.
94
+
95
+ 1.4.1 (2020-05-14)
96
+ =====================
97
+ * Fix compiling on older versions of gcc that do not default to c99 (Charlie Savage)
98
+
99
+ 1.4.0 (2020-05-12)
100
+ =====================
101
+ * API change - remove merge_fibers support since it resulted in incorrect results or crashes (Charlie Savage)
102
+ * Fix crash when profiling memory usage (Charlie Savage)
103
+ * When tracing execution correctly print out newobj tracepoint events (Charlie Savage)
104
+ * Remove no longer needed code for building extensions (Charlie Savage)
105
+
106
+ 1.3.2 (2020-04-19)
107
+ =====================
108
+ * Fix rack profiler so it is thread safe (Charlie Savage)
109
+ * Fix loading of prebuilt binaries on mingw64 to use Ruby's major and minor version (Charlie Savage)
110
+
111
+ 1.3.1 (2020-03-11)
112
+ =====================
113
+ * Add max_percent and filter_by options to flat printer (Sean McGivern)
114
+ * Include binary in mingw64 build (Charlie Savage)
115
+
116
+ 1.3.0 (2020-02-22)
117
+ =====================
118
+ * Update C code to use newer RTypedData API versus older RData API.
119
+ * Update C code to use rb_cObject versus the older, deprecated, rb_cData.
120
+ * Update memory management - CallInfo's now keep alive their owning Profile instances. Fixes crashes that
121
+ could happen in rare instances.
122
+
123
+ 1.2.0 (2020-01-23)
124
+ =====================
125
+ * Fix call stack printer broken in version 1.0.0 (Charlie Savage)
126
+ * Ruby 2.7.0 support (Charlie Savage)
127
+ * Switch to Windows high precision timer for measuring wall time (Charlie Savage)
128
+ * Much better support for reverse call trees - if you start RubyProf at the bottom
129
+ of a call tree it will correctly calculate times as it ascends the tree (Charlie Savage)
130
+ * Port AggregateCallInfo from Ruby to C to increase performance
131
+ * API change - CallInfo has been renamed CallTree
132
+ * Fix crashes on Ruby 2.4.*
133
+
134
+ 1.1.0 (2019-12-14)
135
+ =====================
136
+ Changes
137
+
138
+ * Reimplement merge_fibers (Charlie Savage)
139
+ * Fix crash caused by threads being freed when profiles are freed (Charlie Savage)
140
+
141
+ 1.0.0 (2019-07-29)
142
+ =====================
143
+ ruby-prof's development stretches all the way back to 2005. Fourteen years later, it seems time for version 1.0!
144
+ Version 1.0 is a significant update that greatly improves the internals of ruby-prof and adds a number of improvements.
145
+
146
+ Changes (Charlie Savage):
147
+
148
+ * Profiling is significantly faster - 5x in some cases
149
+ * Recursive profiles are finally handled correctly. Yeah!!!
150
+ * Redesigned reports (Chirs Whitefield)
151
+ * New documentation website (https://ruby-prof.github.io)
152
+ * The ability to measure allocations and memory usage using a standard (unpatched) version of ruby
153
+ * The ability to save and reload profiling results for later analysis
154
+ * The ability track object allocations
155
+
156
+ At the same time, it was also time to remove old code and deprecated methods. These changes include (Charlie Savage):
157
+
158
+ * Drop support for old versions of ruby. Currently 2.4 and up are required.
159
+ * Remove support for method elimination (instead use method exclusion).
160
+ * Remove the CPU_TIME measurement mode since it duplicates the PROCESS_TIME mode and required inline assembly code
161
+ * Remove the GC_TIME and GC_RUNS measurement modes since they required patched ruby versions. In modern ruby it is possible to reimplement this functionality, but it does not seem of that much value (shout out if you want it back).
162
+ * Merge the RubyProf::FlatPrinterWithLineNumbers printer into RubyProf::FlatPrinter.
163
+ * Removed support for RUBY_PROF_EDITOR_URI environment variable that specified the link scheme. This features was more confusing then helpful.
164
+
165
+
166
+ 0.18.0 (2019-05-27)
167
+ =====================
168
+ Fixes
169
+ ------
170
+ * Fix grouping by thread/fiber (Charlie Savage)
171
+ * Fix include/exclude thread checking (Charlie Savage)
172
+ * Fix failing tests (Charlie Savage)
173
+ * Fix grouping by thread_id and fiber_id (Charlie Savage)
174
+ * Update Visual Studio solution to 2019 (Charlie Savage)
175
+ * Adjust AbstractPrinter#editor_uri so it's possible to disable uri (Maciek Dubiński)-
176
+ * Fix -X/--exclude-file option not working (John Lindgren)
177
+ * Different directory for middleware output in readme (Aldric Giacomoni)
178
+ * Fixing spelling mistakes and typos (David Kennedy and Roger Pack)
179
+ * Add "allow_exceptions" option to Profile (Ryan Duryea)
180
+ * Update readme (Jan Piotrowski, Nathan Seither, victor-am)
181
+ * Travis updates (Niocals Leger and Charlie Savage)
182
+ * Fix NewRelic module detection in exclude_common_methods! (Ben Hughes)
183
+
184
+ 0.17.0 (2017-12-17)
185
+ =====================
186
+ * Changed method/class names produced by the callgrind printer to be more kcachegrind
187
+ friendly (thx to Nelson Gauthier and Ben Hughes, see https://github.com/ruby-prof/ruby-prof/pull/200).
188
+ * Recursive instances of a method call are now dtected during profiling (thx to Nelson Gauthier and
189
+ Ben Hughes, see https://github.com/ruby-prof/ruby-prof/pull/201).
190
+ * Methods can now be ignored during a profiling run instead of eliminating them
191
+ after a profile run, which has been deprecated (thx to Nelson Gauthier and Ben Hughes,
192
+ see https://github.com/ruby-prof/ruby-prof/pull/202).
193
+ * Use RUBY_PROF_EDITOR_URI=emacs to open source code links in the one true editor.
194
+ (thx Alexander Egorov, see https://github.com/ruby-prof/ruby-prof/pull/183 and
195
+ https://github.com/typester/emacs-handler).
196
+ * Fixed that calling profile.stop would stop profiling all active profiling runs.
197
+ * Fixed that remembering parent call frame pointer before stack reallocation could cause a segfault.
198
+
199
+ 0.16.2 (2016-08-25)
200
+ =====================
201
+ * fixed incorrect setting of RUBY_VERSION macro
202
+
203
+ 0.16.1 (2016-08-24)
204
+ =====================
205
+ * fixed compile problem with ruby 2.1.10
206
+
207
+ 0.16.0 (2016-08-24)
208
+ =====================
209
+ * ruby-prof can now be installed if ruby has been compiled with --disable-gems or
210
+ RUBYOPT includes --disable-gems (thx to Arthur Nogueira Neves)
211
+ * Profile.new now accepts and prefers an options hash:
212
+ - measure_mode: one of the RubyProf measure mode constants
213
+ - exclude_threads: an array of threads to ignore when collecting profile data
214
+ - include_threads: an array of threads to include when collecting profile data
215
+ - merge_fibers: whether or not to merge the profile data for all fibers under their creating thread
216
+ * overhauled printer for cachegrind profiles:
217
+ - profile data for each thread dumped to a separate file, as kcachegrind does not
218
+ fully implement the cachegrind specification
219
+ - this required a change in interface: it's now necessary to specify a directory
220
+ where to dump the cachegrind files
221
+ - naming convention for cachegrind files changed so that kcachegrind shows them
222
+ all in the open dialog
223
+ * improved Rack middleware:
224
+ - it's now possible to use the MultiPrinter
225
+ - new option ignore_existing_threads: will ignore all prexisiting threads
226
+ when profiling a request, except the thread perfoming the request.
227
+ - new option request_thread_only: will ignore all preexisting threads, but also
228
+ all threads spwaned during the execution of the rack request.
229
+ - new option merge_fibers: whether or not to merge the profile data for all fibers under their creating thread
230
+ * fixed setting threshold bug when displaying stack profiles (thx to Michal Konarski)
231
+ * code related to printing profiles is now autoloaded for efficiency (thx to Dave Gynn)
232
+
233
+ 0.15.9 (2015-12-08)
234
+ ======================
235
+ * rack profiler now supports lambdas for generating profile paths (thx to Jean Rougé)
236
+ * fixed a bug when printing graph profiles
237
+
238
+ 0.15.8 (2015-04-24)
239
+ ======================
240
+ * added missing assets to gem build
241
+ * fixed randomly failing test
242
+
243
+ 0.15.7 (2015-04-23)
244
+ ======================
245
+ * html profiles are now single page (thx to Thomas Leishman)
246
+
247
+ 0.15.6 (2015-02-22)
248
+ ======================
249
+ * improved upon computing children time in graph printers
250
+
251
+ 0.15.5 (2015-02-22)
252
+ ======================
253
+ * changed output format of flat_printer_with_line_number
254
+ * support using multi printer from command line (Dov Murik)
255
+
256
+ 0.15.4 (2015-02-14)
257
+ ======================
258
+ * using env variable to specify mesaurement mode work again
259
+ * measuring memory/object allocations works for 2.1 adn 2.2 again
260
+
261
+ 0.15.3 (2015-01-16)
262
+ ======================
263
+ * support ruby 2.2.0
264
+
265
+ 0.15.2 (2014-05-20)
266
+ ======================
267
+ * rack middleware creates print dir for profile result (Neng)
268
+
269
+ 0.15.1 (2014-05-20)
270
+ ======================
271
+ * added license to gemspec
272
+
273
+ 0.15.0 (2014-05-02)
274
+ ======================
275
+ * improved cpu time measurement (Charlie Somerville)
276
+
277
+ 0.14.2 (2014-01-05)
278
+ ======================
279
+ * hopefully fixed compile problem under Windows
280
+
281
+ 0.14.0 (2014-01-02)
282
+ ======================
283
+ * support ruby 2.1.0
284
+ * dropped support for 1.8.x, 1.9.1 and 1.9.2
285
+
286
+ 0.13.1 (2013-12-14)
287
+ ======================
288
+ * speed up for displaying large call stacks (Benjamin Quoming)
289
+
290
+ 0.13 (2013-03-10)
291
+ ======================
292
+ * support fibers on 1.9.x+
293
+ * improved display for very wide call stacks (Sammy Larbi)
294
+
295
+ 0.12.2 (2013-02-13)
296
+ ======================
297
+ * Fixed segfault when using falcon or railsexpress patches for 1.9.3
298
+
299
+ 0.12.1 (2013-01-07)
300
+ ======================
301
+ * Add back in pause/resume support since Rails uses it
302
+
303
+ 0.12.0 (2013-01-06)
304
+ ======================
305
+ * Ruby 2.0.0 support (Charlie Savage)
306
+ * Fix issue where profiling results could exceed 100% if profile code had multiple top level methods (Charlie Savage)
307
+ * Replaced RubyProf::Thread#top_method with RubyProf::Thread#top_methods (Charlie Savage)
308
+ * Added RubyProf::Thread#total_time (Charlie Savage)
309
+ * Remove the -r and -e command line options. If you need specific libraries or code profiled then add them
310
+ to your code (Charlie Savage).
311
+ * Rewrite ruby-prof script to be more self-contained (Gary Weaver)
312
+ * Fix list formatting in readme (Thilo Rusche)
313
+ * Remove pause/resume support since its buggy and complicates the code
314
+
315
+ 0.11.3 (2012-12-27)
316
+ ======================
317
+ * Prefix c functions with prof_ to avoid name conflicts (Kenta Murata)
318
+ * Update ruby-prof script to avoid seg faults (Gary Weaver)
319
+ * Rakefile updates (Roger Pack)
320
+ * Fix regexp file reading (Gilbert Roulot)
321
+ * Update documentation (Timo Schilling)
322
+ * Fix up ruby warnings (Mike Gehard)
323
+ * Remove duplicate code (Chas Lemley)
324
+
325
+
326
+ 0.11.2 (2012-05-06)
327
+ ======================
328
+ * Fix compile issue with BOOL. Should be _Bool for C99.
329
+
330
+
331
+ 0.11.1 (2012-05-06)
332
+ ======================
333
+ * Added option --exclude-common-callbacks, plus exclude #map and #inject in common cycles (Vasily Fedoseyev)
334
+ * Add option --exclude-common-cycles to exclude common iterators (Vasily Fedoseyev)
335
+ * Allow method elimination from command line via '-x' and '-X' keys (Vasily Fedoseyev)
336
+
337
+
338
+ 0.11.0 (2012-05-05)
339
+ ======================
340
+ * Fix pause/resume so it actually works and add tests (David Barri)
341
+ * Resume now returns the result of the block when given (David Barri)
342
+ * Make recursive method explanation more clear (Charlie Savage)
343
+ * Fix ruby warnings (Charlie Savage)
344
+ * Toggle GC.enable_stats when profiling for memory to get the data (Vasily Fedoseyev)
345
+ * Fix patched ruby support and remove some warnings (Vasily Fedoseyev)
346
+ * Fix tests on 1.8.7 (rogerdpack)
347
+
348
+
349
+ 0.11.0.rc3 (2012-03-26)
350
+ ======================
351
+ * Include missing files in gemspec (Charlie Savage).
352
+
353
+
354
+ 0.11.0.rc2 (2012-03-25)
355
+ ======================
356
+ * Lots of improvements to Rack handler - this can be used to profile requests
357
+ in Rails and other rack-based ruby web frameworks (Charlie Savage).
358
+ * Reimplemented handling of recursive calls using CallInfoVisitor (Charlie Savage).
359
+ * Fix bug where child times were not correctly reported in complicated
360
+ call graphs with recursion like in frameworks like Rails (Charlie Savage).
361
+ * Add in recursive call information to Flat, Graph and Graph HTML reports (Charlie Savage).
362
+ * Add in new thread class add added RubyProf::Thread#top_method to
363
+ make report generation easier (Charlie Savage).
364
+ * Add in CallInfoVisitor class to make it easy to iterate over a call graph (Charlie Savage).
365
+ * Add in CallInfoPrinter to make it visualize RubyProf's internal call graphs (Charlie Savage).
366
+ * Significant updates to documentation (Charlie Savage).
367
+ * More c code cleanup (Charlie Savage).
368
+
369
+ 0.11.0.rc1 (2012-03-24)
370
+ ======================
371
+ * Big internal refactoring of C code to make RubyProf easier to understand and extend (Charlie Savage).
372
+ * Profile results are now returned as instances of a new class RubyProf::Profile. The old api
373
+ is supported via a compatability layer that at some point will be deprecated. (Charlie Savage).
374
+ * On Windows, use QueryPerformanceCounter and QueryPerformanceFrequency to measure CPU time instead
375
+ of rdtsc. This change is based on Microsoft's recommendation (Charlie Savage).
376
+ * On Windows use GetProcessTimes to return real PROCESS_TIME times instead of wall times (Charlie Savage).
377
+ * Split out tests for each time of measurement (cpu_time, process_time, etc.) (Charlie Savage).
378
+ * Dropped support for Ruby 1.8.4 and 1.8.6 and 1.9.0 (Charlie Savage).
379
+ * Added support for sorting results by total, self, wait and child times (Jan Suchal)
380
+ * Added tests for sorting behaviour & removed options from constructor to print method (Jan Suchal)
381
+ * Fix line number tests due to changes at top of file (Charlie Savage).
382
+ * Add encoding statement to top of all files for Ruby 1.9.x compatability (Charlie Savage).
383
+ * Add def file for VC to avoid the whole declspec annoyance (Charlie Savage).
384
+ * Update test suite to ensure current working directory is correct (Charlie Savage).
385
+ * Modernize gem file and remove various custom/home grown solutions that aren't needed anymore (Charlie Savage).
386
+ * Remove custom mingw build scripts, use rake compiler instead (Charlie Savage).
387
+ * Fixes for compiling with VC 2010 (Charlie Savage).
388
+
389
+ 0.10.8 (2011-07-06)
390
+ ======================
391
+ * 1.9.3 super class (Roger Pack)
392
+
393
+ 0.10.7 (2011-05-09)
394
+ ======================
395
+ * Fix a bug with REE's GC stats. Issue #53 [thanks graaff]
396
+
397
+ 0.10.6 (2011-04-29)
398
+ ======================
399
+ * Slightly more normalized url for linux/windows links to files.
400
+
401
+ 0.10.5 (2011-04-20)
402
+ =======================
403
+ * 1.8.6 compat for -v command (bug fix)
404
+
405
+ 0.10.4 (2011-04-20)
406
+ =======================
407
+ * Faster load time for ruby-prof itself.
408
+
409
+ 0.10.3
410
+ =======================
411
+ * Can cleanly load before rubygems now.
412
+
413
+ 0.10.2
414
+ =======================
415
+ * Fix for 1.9.2, os x for latest commits (thanks skaes!)
416
+
417
+ 0.10.1
418
+ =======================
419
+ * Fix bug in linux wall time, also load with only relative paths so that you can use it to benchmark rubygems startup overhead,
420
+ itself.
421
+
422
+ 0.10.0
423
+ =======================
424
+ * Some rdoc changes, for linux wall time attempt to use higher granularity (thanks to all the contributors for this round!)
425
+
426
+ 0.9.2
427
+ =======================
428
+ * Make graphviz work on 1.8.6
429
+ * Roll back some 1.9.2 optimizations until I can figure out what caused them.
430
+
431
+ 0.9.1
432
+ =======================
433
+ * Add a graphviz output
434
+
435
+ 0.9.0
436
+ =======================
437
+ * measurements for recursive methods are now correct
438
+ * gave up on splitting up recursive methods according to call depth
439
+ * made it possible to eliminate methods from profiling results
440
+ * new printer for call stack visualization
441
+ * new printer to print several profiles in one run
442
+ * HTML profiles contain Textmate links so you can jump to the source code easily
443
+ * producing an event log is now a runtime option
444
+
445
+ 0.7.10 (2009-01-22)
446
+ =======================
447
+ * fix SEGFAULT in 1.9
448
+ * add new printer flat_printer_with_line_numbers
449
+
450
+ 0.7.7 (2009-01-13)
451
+ ======================
452
+ * "fix" multi threading support for 1.9 http://redmine.ruby-lang.org/issues/show/2012
453
+ * speedups
454
+
455
+ 0.7.6 (2009-12-31)
456
+ ======================
457
+ * fix some tests for 1.9 (no real code changes)
458
+
459
+ 0.7.5 (2009-12)
460
+ ========================
461
+ * fix a GC collection bug (nobu's patch).
462
+ * correctly report recursive call depths (Kevin Scaldeferri).
463
+ * sort methods on output (Kevin Scaldeferri).
464
+
465
+ 0.7.3 (2008-12-09)
466
+ ========================
467
+ * Fixed compile error with new x86_64 code using GCC.
468
+
469
+ 0.7.2 (2008-12-08)
470
+ ========================
471
+ * Fixed major bug in printing child methods in graph reports.
472
+
473
+ * Fixes for supporting x86_64 machines (Diego Pettenò)
474
+
475
+
476
+ 0.7.1 (2008-11-28)
477
+ ========================
478
+ * Added new AggregateCallTree class for printers to
479
+ make results easier to read. Take this call sequence
480
+ for example:
481
+
482
+ A B C
483
+ | | |
484
+ Z A A
485
+ | |
486
+ Z Z
487
+
488
+ By default, ruby-prof will show that Z was called by 3 separate
489
+ instances of A. In an IDE that is helpful but in a text report
490
+ it is not since it makes the report much harder to read.
491
+ As a result, printers now aggregate together callers (and children),
492
+ matching ruby-prof's output from versions prior to 0.7.0.
493
+
494
+ * Fixes for supporting x86_64 machines (Matt Sanford)
495
+
496
+
497
+ 0.7.0 (2008-11-04)
498
+ ========================
499
+
500
+ Features
501
+ --------
502
+ * Added two new methods - RubyProf.resume and RubyProf.pause.
503
+ RubyProf.resume takes an optional block, which ensures that
504
+ RubyProf.pause is called. For example:
505
+
506
+ 10.times do |i|
507
+ RubyProf.resume do
508
+ # Some long process
509
+ end
510
+ end
511
+
512
+ result = RubyProf.stop
513
+
514
+ * Added support for profiling tests that use Ruby's built-in
515
+ unit test framework (ie, test derived from
516
+ Test::Unit::TestCase). To enable profiling simply add
517
+ the following line of code to your test class:
518
+
519
+ include RubyProf::Test
520
+
521
+ By default, profiling results are written to the current
522
+ processes working directory. To change this, or other
523
+ profiling options, simply modify the PROFILE_OPTIONS hash
524
+ table as needed.
525
+
526
+ * Used the new support for profiling test cases to revamp
527
+ the way that Rails profiling works. For more information
528
+ please refer to RubyProf's documentation.
529
+
530
+ * Keep track of call stack for each method to enable more
531
+ powerful profile visualizations in Integrated Development
532
+ Environments (Hin Boean, work supported by CodeGear).
533
+
534
+ * Expose measurements to Ruby (Jeremy Kemper).
535
+
536
+ * Add support for additional memory measurements modes in Ruby 1.9 (Jeremy Kemper).
537
+
538
+ * Add support for Lloyd Hilaiel's Ruby patch for measuring total heap size.
539
+ See http://lloydforge.org/projects/ruby. (Jeremy Kemper).
540
+
541
+
542
+ Fixes
543
+ -------
544
+ * RubyProf.profile no longer crashes if an exception is
545
+ thrown during a profiling run.
546
+
547
+ * Measure memory in fractional kilobytes rather than rounding down (Jeremy Kemper)
548
+
549
+
550
+ 0.6.0 (2008-02-03)
551
+ ========================
552
+
553
+ ruby-prof 0.6.0 adds support for Ruby 1.9 and memory profiling.
554
+
555
+ Features
556
+ --------
557
+ * Added support for ruby 1.9 (Shugo Maeda)
558
+ * Added support for outputting printer results to a String, Array or IO
559
+ object (Michael Granger)
560
+ * Add new memory profiling mode. Note this mode depends on a
561
+ patched Ruby interpreter (Alexander Dymo)
562
+
563
+ Fixes
564
+ -------
565
+ * Improvements to GraphHtmlPrinter including updated documentation,
566
+ fixes for min_time support, ability to specify templates using
567
+ strings or filenames, and table layout fixes (Makoto Kuwata)
568
+ * Fixes to scaling factor for calltrees so that precision is not lost
569
+ due to the conversion to doubles (Sylvain Joyeux)
570
+ * Changed constant ALLOCATED_OBJECTS to ALLOCATIONS in the C code to
571
+ match the Ruby code (Sylvain Joyeux)
572
+ * Added support for calltree printer to ruby-prof binary script (Sylvain Joyeux)
573
+ * Fix support for the allocator measure mode to extconf.rb (Sylvain Joyeux)
574
+ * Honor measure mode when specified on the command line (Sylvain Joyeux)
575
+ * Sorting of methods by total time was incorrect (Dan Fitch, Charlie Savage)
576
+ * Fix ruby-prof to work with the latest version of GEMS (Alexander Dymo)
577
+ * Always define MEASURE_CPU_TIME and MEASURE_ALLOCATIONS in Ruby code, but
578
+ set their values to nil if the functionality is not available.
579
+
580
+
581
+ 0.5.2 (2007-07-19)
582
+ ========================
583
+
584
+ ruby-prof 0.5.2 is a bug fix release.
585
+
586
+ Fixes
587
+ -------
588
+ * Include missing rails plugin
589
+
590
+
591
+ 0.5.1 (2007-07-18)
592
+ ========================
593
+
594
+ ruby-prof 0.5.1 is a bug fix and performance release.
595
+
596
+ Performance
597
+ --------
598
+ * Significantly reduced the number of thread lookups by
599
+ caching the last executed thread.
600
+
601
+ Fixes
602
+ -------
603
+ * Properly escape method names in HTML reports
604
+ * Fix use of -m and --min-percent command line switches
605
+ * Default source file information to ruby_runtime#0 for c calls
606
+ * Moved rails_plugin to top level so it is more obvious
607
+ * Updated rails_plugin to write reports to the current
608
+ Rails log directory
609
+ * Added additional tests
610
+
611
+
612
+ 0.5.0 (2007-07-09)
613
+ ========================
614
+
615
+ Features
616
+ --------
617
+ * Added support for timing multi-threaded applications
618
+ * Added support for 64 bit systems (patch from Diego 'Flameeyes' Petten)
619
+ * Added suport for outputting data in the format used by
620
+ KCacheGrind (patch from Carl Shimer)
621
+ * Add filename and line numbers to call tree information (patch from Carl Shimer)
622
+ * Added Visual Studio 2005 project file.
623
+ * Added replace-progname switch, als rcov.
624
+ * Added better support for recursive methods
625
+ * Added better support for profiling Rails applications
626
+
627
+ Fixes
628
+ -------
629
+ * Fixes bug when the type of an attached object (singleton) is inherited
630
+ from T_OBJECT as opposed to being a T_OBJECT (identified by Francis Cianfrocca)
631
+ * ruby-prof now works in IRB.
632
+ * Fix sort order in reports.
633
+ * Fixed rdoc compile error.
634
+ * Fix tabs in erb template for graph html report on windows.
635
+
636
+ 0.4.1 (2006-06-26)
637
+ ========================
638
+
639
+ Features
640
+ --------
641
+ * Added a RubyProf.running? method to indicate whether a profile is in progress.
642
+ * Added tgz and zip archives to release
643
+
644
+ Fixes
645
+ -------
646
+ * Duplicate method names are now allowed
647
+ * The documentation has been updated to show the correct API usage is RubyProf.stop not RubyProf.end
648
+
649
+
650
+ 0.4.0 (2006-06-16)
651
+ ========================
652
+ Features
653
+ --------
654
+ * added support for call graphs
655
+ * added support for printers. Currently there is a FlatPrinter,
656
+ GraphPrinter and GraphHtmlPrinter.
657
+ * added support for recursive methods
658
+ * added Windows support
659
+ * now packaged as a RubyGem
660
+
661
+ Fixes
662
+ -------
663
+ * Fixes bug where RubyProf would crash depending on the
664
+ way it was invoked - for example, it did not run when
665
+ used with Arachno Ruby's customized version of Ruby.
data/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ Copyright (C) 2005 - 2019 Shugo Maeda <shugo@ruby-lang.org>, Charlie Savage <cfis@savagexi.com> and
2
+ Stefan Kaes <skaes@railsepxress.de>
3
+ All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions
7
+ are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright
10
+ notice, this list of conditions and the following disclaimer.
11
+ 2. Redistributions in binary form must reproduce the above copyright
12
+ notice, this list of conditions and the following disclaimer in the
13
+ documentation and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ SUCH DAMAGE.