ruby-prof 0.13.1 → 1.4.2

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