ruby-prof 2.0.2 → 2.0.4

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