ruby-prof 1.6.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +11 -0
  3. data/bin/ruby-prof +0 -5
  4. data/ext/ruby_prof/rp_allocation.c +342 -342
  5. data/ext/ruby_prof/rp_call_tree.c +1 -1
  6. data/ext/ruby_prof/rp_call_tree.h +1 -1
  7. data/ext/ruby_prof/rp_call_trees.c +2 -2
  8. data/ext/ruby_prof/rp_call_trees.h +2 -2
  9. data/ext/ruby_prof/rp_measure_allocations.c +1 -1
  10. data/ext/ruby_prof/rp_measure_memory.c +46 -46
  11. data/ext/ruby_prof/rp_measure_process_time.c +1 -1
  12. data/ext/ruby_prof/rp_measure_wall_time.c +1 -1
  13. data/ext/ruby_prof/rp_measurement.c +364 -364
  14. data/ext/ruby_prof/rp_method.c +24 -12
  15. data/ext/ruby_prof/rp_method.h +5 -2
  16. data/ext/ruby_prof/rp_profile.c +2 -2
  17. data/ext/ruby_prof/rp_profile.h +36 -36
  18. data/ext/ruby_prof/rp_stack.c +1 -1
  19. data/ext/ruby_prof/rp_thread.c +1 -1
  20. data/ext/ruby_prof/ruby_prof.c +1 -1
  21. data/ext/ruby_prof/ruby_prof.h +34 -34
  22. data/ext/ruby_prof/vc/ruby_prof.vcxproj +5 -7
  23. data/lib/ruby-prof/compatibility.rb +10 -10
  24. data/lib/ruby-prof/exclude_common_methods.rb +9 -3
  25. data/lib/ruby-prof/method_info.rb +87 -85
  26. data/lib/ruby-prof/version.rb +1 -1
  27. data/ruby-prof.gemspec +1 -1
  28. data/test/crash2.rb +144 -0
  29. data/test/enumerable_test.rb +5 -5
  30. data/test/exclude_methods_test.rb +197 -86
  31. data/test/line_number_test.rb +254 -99
  32. data/test/measure_allocations_test.rb +422 -1
  33. data/test/measure_memory_test.rb +433 -1
  34. data/test/measure_process_time_test.rb +882 -15
  35. data/test/measure_wall_time_test.rb +195 -47
  36. data/test/method_info_test.rb +1 -1
  37. data/test/recursive_test.rb +198 -1
  38. data/test/thread_test.rb +0 -4
  39. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc5b4b0b4220c987ae0168f276545ade540de7ec54965edafdb528b0c83cc208
4
- data.tar.gz: 4b7d92a744ccf7f545d5c19c73dbc8a9294465a261512bc7b9578dccde3194e5
3
+ metadata.gz: f40a85c075fc8776559aecc558adf70e1e5c402e38edc463784658bb881e8612
4
+ data.tar.gz: c41f3e88dfdb16a8717899f21cf0064265186513fad685ed67b493752e182f86
5
5
  SHA512:
6
- metadata.gz: 7891771f81dfc0b4b377ff008b645ba63e5ce3b75901b5b497a6c6c8a5ed2b87eea6a201f155ab6ad646440d6d1bd3ed982acdf872a17d8486c9b5eb665741ff
7
- data.tar.gz: a364fa0592341790d49c6c9649498a2dee553cbc4a2c6971d464b3aed350515adf84a479cd93aa925763d783e5d648528a2ad6f293628f00dd9466ac80463fef
6
+ metadata.gz: c32318e39c2db99f0581a283c8dfd2742eb3f19ffd6e115e90b45d26ddbefdc2a3827be06874ec56f52478f0ca6d709006e4314e38d7dcf5676c5d9ed801051b
7
+ data.tar.gz: 27d6dd29863604626eab6d27a8471e5feee6660739568e334c04b9b79aa153933945436a1a1a9b9ddc7cfd4e53d8240032f4b94fd552a5c4dd565e0a5cb81395
data/CHANGES CHANGED
@@ -1,3 +1,14 @@
1
+ 1.7.0 (2024-01-07)
2
+ =====================
3
+ * Add support for ruby 3.3.* (Charlie Savage)
4
+ * Remove support for ruby 2.7.* (Charlie Savage)
5
+ * Fix crash caused by referencing Profile Ruby objects from Method objects that were being moved
6
+ by GC compaction (Charlie Savage)
7
+
8
+ 1.6.3 (2023-04-20)
9
+ =====================
10
+ * Remove debug code unintentionally left in ruby-prof command line program (Charlie Savage)
11
+
1
12
  1.6.2 (2023-04-17)
2
13
  =====================
3
14
  * Fix Profile#merge! implementation (asksurya)
data/bin/ruby-prof CHANGED
@@ -1,10 +1,5 @@
1
1
  #! /usr/bin/env ruby
2
2
 
3
- # To make testing/debugging easier test within this source tree versus an installed gem
4
- require 'bundler/setup'
5
- ext_path = File.expand_path(File.join(__dir__, '..', 'ext', 'ruby_prof'))
6
- $LOAD_PATH.unshift(File.expand_path(ext_path))
7
-
8
3
  # First require ruby-prof
9
4
  require 'ruby-prof'
10
5