ruby-prof 1.4.4-x64-mingw-ucrt

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