ruby-prof 1.6.3 → 1.7.2
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.
- checksums.yaml +4 -4
- data/CHANGES +19 -0
- data/ext/ruby_prof/extconf.rb +23 -22
- data/ext/ruby_prof/rp_allocation.c +342 -342
- data/ext/ruby_prof/rp_call_tree.c +1 -1
- data/ext/ruby_prof/rp_call_tree.h +1 -1
- data/ext/ruby_prof/rp_call_trees.c +296 -296
- data/ext/ruby_prof/rp_call_trees.h +28 -28
- data/ext/ruby_prof/rp_measure_allocations.c +47 -47
- data/ext/ruby_prof/rp_measure_memory.c +46 -46
- data/ext/ruby_prof/rp_measure_process_time.c +64 -66
- data/ext/ruby_prof/rp_measure_wall_time.c +52 -64
- data/ext/ruby_prof/rp_measurement.c +364 -364
- data/ext/ruby_prof/rp_method.c +551 -550
- data/ext/ruby_prof/rp_method.h +5 -2
- data/ext/ruby_prof/rp_profile.c +2 -2
- data/ext/ruby_prof/rp_profile.h +36 -36
- data/ext/ruby_prof/rp_stack.c +212 -212
- data/ext/ruby_prof/rp_thread.c +1 -1
- data/ext/ruby_prof/ruby_prof.c +50 -50
- data/ext/ruby_prof/ruby_prof.h +35 -34
- data/ext/ruby_prof/vc/ruby_prof.vcxproj +5 -7
- data/lib/ruby-prof/compatibility.rb +113 -113
- data/lib/ruby-prof/exclude_common_methods.rb +204 -198
- data/lib/ruby-prof/method_info.rb +87 -85
- data/lib/ruby-prof/printers/abstract_printer.rb +156 -138
- data/lib/ruby-prof/version.rb +3 -3
- data/ruby-prof.gemspec +66 -64
- data/test/dynamic_method_test.rb +9 -21
- data/test/enumerable_test.rb +23 -21
- data/test/exclude_methods_test.rb +363 -146
- data/test/fiber_test.rb +195 -195
- data/test/gc_test.rb +104 -102
- data/test/line_number_test.rb +426 -134
- data/test/measure_allocations_test.rb +1172 -660
- data/test/measure_memory_test.rb +1193 -1024
- data/test/measure_process_time_test.rb +3330 -1610
- data/test/measure_wall_time_test.rb +634 -420
- data/test/merge_test.rb +146 -146
- data/test/method_info_test.rb +100 -95
- data/test/printers_test.rb +178 -135
- data/test/recursive_test.rb +796 -425
- data/test/start_stop_test.rb +4 -4
- data/test/test_helper.rb +20 -20
- data/test/thread_test.rb +229 -235
- data/test/unique_call_path_test.rb +9 -22
- data/test/yarv_test.rb +1 -5
- metadata +33 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5755a16ded5472a0dd58f411dd22a1da4213136a8050eef0c9f392f558a86970
|
|
4
|
+
data.tar.gz: d8b67fcd1b208fe448864b24b7c76630bce578eda1f4588ef11e0644987d9632
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1d8167a024ac0ec233d0ad2e1638bde210c4279caf28c8d9c091c371e23eb5d4c6aa54bb9aecb60a3ae04611a03e4c3fb504140e4d0943e3b34467cebf75af4
|
|
7
|
+
data.tar.gz: 75e8cd9be4f9cb5bb7c82ef8460b2f0c7f807325d9e65df4389063fce416991908aaf09cf58d6295d8603f5231a1af4780ea099159cb486daa0e6edcae28c984
|
data/CHANGES
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
1.7.2 (2025-05-21)
|
|
2
|
+
=====================
|
|
3
|
+
* Fix compiling on Ubuntu and Arch Linux
|
|
4
|
+
* Update tests for Ruby 3.4
|
|
5
|
+
* Remove tests for Ruby 3.1
|
|
6
|
+
* Update MacOS to use clock_gettime (same as Linux) instead of proprietary mach_absolute_time API
|
|
7
|
+
* Add CMake support
|
|
8
|
+
|
|
9
|
+
1.7.1 (2024-10-19)
|
|
10
|
+
=====================
|
|
11
|
+
* Fix crashes when calling merge due to inconsistent method keys (Chris Heald)
|
|
12
|
+
|
|
13
|
+
1.7.0 (2024-01-07)
|
|
14
|
+
=====================
|
|
15
|
+
* Add support for ruby 3.3.* (Charlie Savage)
|
|
16
|
+
* Remove support for ruby 2.7.* (Charlie Savage)
|
|
17
|
+
* Fix crash caused by referencing Profile Ruby objects from Method objects that were being moved
|
|
18
|
+
by GC compaction (Charlie Savage)
|
|
19
|
+
|
|
1
20
|
1.6.3 (2023-04-20)
|
|
2
21
|
=====================
|
|
3
22
|
* Remove debug code unintentionally left in ruby-prof command line program (Charlie Savage)
|
data/ext/ruby_prof/extconf.rb
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
require "mkmf"
|
|
2
|
-
|
|
3
|
-
# Let's go with a modern version of C! want to intermix declarations and code (ie, don't define
|
|
4
|
-
# all variables at the top of the method). If using Visual Studio, you'll need 2019 version
|
|
5
|
-
# 16.8 or higher
|
|
6
|
-
if RUBY_PLATFORM =~ /mswin/
|
|
7
|
-
$CFLAGS += ' /std:c11'
|
|
8
|
-
else
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
require "mkmf"
|
|
2
|
+
|
|
3
|
+
# Let's go with a modern version of C! want to intermix declarations and code (ie, don't define
|
|
4
|
+
# all variables at the top of the method). If using Visual Studio, you'll need 2019 version
|
|
5
|
+
# 16.8 or higher
|
|
6
|
+
if RUBY_PLATFORM =~ /mswin/
|
|
7
|
+
$CFLAGS += ' /std:c11'
|
|
8
|
+
else
|
|
9
|
+
# Need -D_POSIX_C_SOURCE=199309L for clock_gettime
|
|
10
|
+
$CFLAGS += ' -std=c11 -D_POSIX_C_SOURCE=199309L'
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# For gcc add -s to strip symbols, reducing library size from 17MB to 78KB (at least on Windows with mingw64)
|
|
14
|
+
if RUBY_PLATFORM !~ /mswin/
|
|
15
|
+
$LDFLAGS += ' -s'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# And since we are using C99 we want to disable Ruby sending these warnings to gcc
|
|
19
|
+
if CONFIG['warnflags']
|
|
20
|
+
CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '')
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
create_makefile("ruby_prof")
|