pf2 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -2
- data/Cargo.lock +186 -17
- data/Cargo.toml +1 -1
- data/README.md +18 -6
- data/Rakefile +8 -0
- data/crates/backtrace-sys2/.gitignore +1 -0
- data/crates/backtrace-sys2/Cargo.toml +9 -0
- data/crates/backtrace-sys2/build.rs +48 -0
- data/crates/backtrace-sys2/src/lib.rs +5 -0
- data/crates/backtrace-sys2/src/libbacktrace/.gitignore +15 -0
- data/crates/backtrace-sys2/src/libbacktrace/Isaac.Newton-Opticks.txt +9286 -0
- data/crates/backtrace-sys2/src/libbacktrace/LICENSE +29 -0
- data/crates/backtrace-sys2/src/libbacktrace/Makefile.am +623 -0
- data/crates/backtrace-sys2/src/libbacktrace/Makefile.in +2666 -0
- data/crates/backtrace-sys2/src/libbacktrace/README.md +36 -0
- data/crates/backtrace-sys2/src/libbacktrace/aclocal.m4 +864 -0
- data/crates/backtrace-sys2/src/libbacktrace/alloc.c +167 -0
- data/crates/backtrace-sys2/src/libbacktrace/allocfail.c +136 -0
- data/crates/backtrace-sys2/src/libbacktrace/allocfail.sh +104 -0
- data/crates/backtrace-sys2/src/libbacktrace/atomic.c +113 -0
- data/crates/backtrace-sys2/src/libbacktrace/backtrace-supported.h.in +66 -0
- data/crates/backtrace-sys2/src/libbacktrace/backtrace.c +129 -0
- data/crates/backtrace-sys2/src/libbacktrace/backtrace.h +189 -0
- data/crates/backtrace-sys2/src/libbacktrace/btest.c +501 -0
- data/crates/backtrace-sys2/src/libbacktrace/compile +348 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/enable.m4 +38 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/lead-dot.m4 +31 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/libtool.m4 +7436 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/ltoptions.m4 +369 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/ltsugar.m4 +123 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/ltversion.m4 +23 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/lt~obsolete.m4 +98 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/multi.m4 +68 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/override.m4 +117 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/unwind_ipinfo.m4 +37 -0
- data/crates/backtrace-sys2/src/libbacktrace/config/warnings.m4 +227 -0
- data/crates/backtrace-sys2/src/libbacktrace/config.guess +1700 -0
- data/crates/backtrace-sys2/src/libbacktrace/config.h.in +182 -0
- data/crates/backtrace-sys2/src/libbacktrace/config.sub +1885 -0
- data/crates/backtrace-sys2/src/libbacktrace/configure +15740 -0
- data/crates/backtrace-sys2/src/libbacktrace/configure.ac +613 -0
- data/crates/backtrace-sys2/src/libbacktrace/dwarf.c +4402 -0
- data/crates/backtrace-sys2/src/libbacktrace/edtest.c +120 -0
- data/crates/backtrace-sys2/src/libbacktrace/edtest2.c +43 -0
- data/crates/backtrace-sys2/src/libbacktrace/elf.c +7443 -0
- data/crates/backtrace-sys2/src/libbacktrace/fileline.c +407 -0
- data/crates/backtrace-sys2/src/libbacktrace/filenames.h +52 -0
- data/crates/backtrace-sys2/src/libbacktrace/filetype.awk +13 -0
- data/crates/backtrace-sys2/src/libbacktrace/install-debuginfo-for-buildid.sh.in +65 -0
- data/crates/backtrace-sys2/src/libbacktrace/install-sh +501 -0
- data/crates/backtrace-sys2/src/libbacktrace/instrumented_alloc.c +114 -0
- data/crates/backtrace-sys2/src/libbacktrace/internal.h +389 -0
- data/crates/backtrace-sys2/src/libbacktrace/libtool.m4 +7436 -0
- data/crates/backtrace-sys2/src/libbacktrace/ltmain.sh +8636 -0
- data/crates/backtrace-sys2/src/libbacktrace/ltoptions.m4 +369 -0
- data/crates/backtrace-sys2/src/libbacktrace/ltsugar.m4 +123 -0
- data/crates/backtrace-sys2/src/libbacktrace/ltversion.m4 +23 -0
- data/crates/backtrace-sys2/src/libbacktrace/lt~obsolete.m4 +98 -0
- data/crates/backtrace-sys2/src/libbacktrace/macho.c +1355 -0
- data/crates/backtrace-sys2/src/libbacktrace/missing +215 -0
- data/crates/backtrace-sys2/src/libbacktrace/mmap.c +331 -0
- data/crates/backtrace-sys2/src/libbacktrace/mmapio.c +110 -0
- data/crates/backtrace-sys2/src/libbacktrace/move-if-change +83 -0
- data/crates/backtrace-sys2/src/libbacktrace/mtest.c +410 -0
- data/crates/backtrace-sys2/src/libbacktrace/nounwind.c +66 -0
- data/crates/backtrace-sys2/src/libbacktrace/pecoff.c +957 -0
- data/crates/backtrace-sys2/src/libbacktrace/posix.c +104 -0
- data/crates/backtrace-sys2/src/libbacktrace/print.c +92 -0
- data/crates/backtrace-sys2/src/libbacktrace/read.c +110 -0
- data/crates/backtrace-sys2/src/libbacktrace/simple.c +108 -0
- data/crates/backtrace-sys2/src/libbacktrace/sort.c +108 -0
- data/crates/backtrace-sys2/src/libbacktrace/state.c +72 -0
- data/crates/backtrace-sys2/src/libbacktrace/stest.c +137 -0
- data/crates/backtrace-sys2/src/libbacktrace/test-driver +148 -0
- data/crates/backtrace-sys2/src/libbacktrace/test_format.c +55 -0
- data/crates/backtrace-sys2/src/libbacktrace/testlib.c +234 -0
- data/crates/backtrace-sys2/src/libbacktrace/testlib.h +110 -0
- data/crates/backtrace-sys2/src/libbacktrace/ttest.c +161 -0
- data/crates/backtrace-sys2/src/libbacktrace/unittest.c +92 -0
- data/crates/backtrace-sys2/src/libbacktrace/unknown.c +65 -0
- data/crates/backtrace-sys2/src/libbacktrace/xcoff.c +1606 -0
- data/crates/backtrace-sys2/src/libbacktrace/xztest.c +508 -0
- data/crates/backtrace-sys2/src/libbacktrace/zstdtest.c +523 -0
- data/crates/backtrace-sys2/src/libbacktrace/ztest.c +541 -0
- data/ext/pf2/Cargo.toml +1 -0
- data/ext/pf2/src/backtrace.rs +127 -0
- data/ext/pf2/src/lib.rs +3 -0
- data/ext/pf2/src/profile.rs +16 -1
- data/ext/pf2/src/profile_serializer.rs +95 -21
- data/ext/pf2/src/ringbuffer.rs +7 -0
- data/ext/pf2/src/ruby_init.rs +18 -6
- data/ext/pf2/src/ruby_internal_apis.rs +47 -0
- data/ext/pf2/src/sample.rs +22 -1
- data/ext/pf2/src/signal_scheduler/configuration.rs +7 -0
- data/ext/pf2/src/signal_scheduler/timer_installer.rs +79 -126
- data/ext/pf2/src/signal_scheduler.rs +95 -26
- data/ext/pf2/src/timer_thread_scheduler.rs +88 -12
- data/ext/pf2/src/util.rs +2 -2
- data/lib/pf2/reporter.rb +12 -5
- data/lib/pf2/version.rb +1 -1
- data/lib/pf2.rb +3 -6
- metadata +97 -6
data/lib/pf2/version.rb
CHANGED
data/lib/pf2.rb
CHANGED
@@ -13,16 +13,13 @@ module Pf2
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.default_scheduler
|
17
|
-
@@default_scheduler ||= default_scheduler_class.new
|
18
|
-
end
|
19
|
-
|
20
16
|
def self.start(...)
|
21
|
-
default_scheduler.
|
17
|
+
@@default_scheduler = default_scheduler_class.new(...)
|
18
|
+
@@default_scheduler.start
|
22
19
|
end
|
23
20
|
|
24
21
|
def self.stop(...)
|
25
|
-
default_scheduler.stop(...)
|
22
|
+
@@default_scheduler.stop(...)
|
26
23
|
end
|
27
24
|
|
28
25
|
def self.profile(&block)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pf2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daisuke Aritomo
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2024-
|
10
|
+
date: 2024-03-22 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake-compiler
|
@@ -38,7 +37,20 @@ dependencies:
|
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: 0.9.63
|
41
|
-
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: minitest
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
type: :development
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
42
54
|
email:
|
43
55
|
- osyoyu@osyoyu.com
|
44
56
|
executables:
|
@@ -53,15 +65,96 @@ files:
|
|
53
65
|
- LICENSE.txt
|
54
66
|
- README.md
|
55
67
|
- Rakefile
|
68
|
+
- crates/backtrace-sys2/.gitignore
|
69
|
+
- crates/backtrace-sys2/Cargo.toml
|
70
|
+
- crates/backtrace-sys2/build.rs
|
71
|
+
- crates/backtrace-sys2/src/lib.rs
|
72
|
+
- crates/backtrace-sys2/src/libbacktrace/.gitignore
|
73
|
+
- crates/backtrace-sys2/src/libbacktrace/Isaac.Newton-Opticks.txt
|
74
|
+
- crates/backtrace-sys2/src/libbacktrace/LICENSE
|
75
|
+
- crates/backtrace-sys2/src/libbacktrace/Makefile.am
|
76
|
+
- crates/backtrace-sys2/src/libbacktrace/Makefile.in
|
77
|
+
- crates/backtrace-sys2/src/libbacktrace/README.md
|
78
|
+
- crates/backtrace-sys2/src/libbacktrace/aclocal.m4
|
79
|
+
- crates/backtrace-sys2/src/libbacktrace/alloc.c
|
80
|
+
- crates/backtrace-sys2/src/libbacktrace/allocfail.c
|
81
|
+
- crates/backtrace-sys2/src/libbacktrace/allocfail.sh
|
82
|
+
- crates/backtrace-sys2/src/libbacktrace/atomic.c
|
83
|
+
- crates/backtrace-sys2/src/libbacktrace/backtrace-supported.h.in
|
84
|
+
- crates/backtrace-sys2/src/libbacktrace/backtrace.c
|
85
|
+
- crates/backtrace-sys2/src/libbacktrace/backtrace.h
|
86
|
+
- crates/backtrace-sys2/src/libbacktrace/btest.c
|
87
|
+
- crates/backtrace-sys2/src/libbacktrace/compile
|
88
|
+
- crates/backtrace-sys2/src/libbacktrace/config.guess
|
89
|
+
- crates/backtrace-sys2/src/libbacktrace/config.h.in
|
90
|
+
- crates/backtrace-sys2/src/libbacktrace/config.sub
|
91
|
+
- crates/backtrace-sys2/src/libbacktrace/config/enable.m4
|
92
|
+
- crates/backtrace-sys2/src/libbacktrace/config/lead-dot.m4
|
93
|
+
- crates/backtrace-sys2/src/libbacktrace/config/libtool.m4
|
94
|
+
- crates/backtrace-sys2/src/libbacktrace/config/ltoptions.m4
|
95
|
+
- crates/backtrace-sys2/src/libbacktrace/config/ltsugar.m4
|
96
|
+
- crates/backtrace-sys2/src/libbacktrace/config/ltversion.m4
|
97
|
+
- crates/backtrace-sys2/src/libbacktrace/config/lt~obsolete.m4
|
98
|
+
- crates/backtrace-sys2/src/libbacktrace/config/multi.m4
|
99
|
+
- crates/backtrace-sys2/src/libbacktrace/config/override.m4
|
100
|
+
- crates/backtrace-sys2/src/libbacktrace/config/unwind_ipinfo.m4
|
101
|
+
- crates/backtrace-sys2/src/libbacktrace/config/warnings.m4
|
102
|
+
- crates/backtrace-sys2/src/libbacktrace/configure
|
103
|
+
- crates/backtrace-sys2/src/libbacktrace/configure.ac
|
104
|
+
- crates/backtrace-sys2/src/libbacktrace/dwarf.c
|
105
|
+
- crates/backtrace-sys2/src/libbacktrace/edtest.c
|
106
|
+
- crates/backtrace-sys2/src/libbacktrace/edtest2.c
|
107
|
+
- crates/backtrace-sys2/src/libbacktrace/elf.c
|
108
|
+
- crates/backtrace-sys2/src/libbacktrace/fileline.c
|
109
|
+
- crates/backtrace-sys2/src/libbacktrace/filenames.h
|
110
|
+
- crates/backtrace-sys2/src/libbacktrace/filetype.awk
|
111
|
+
- crates/backtrace-sys2/src/libbacktrace/install-debuginfo-for-buildid.sh.in
|
112
|
+
- crates/backtrace-sys2/src/libbacktrace/install-sh
|
113
|
+
- crates/backtrace-sys2/src/libbacktrace/instrumented_alloc.c
|
114
|
+
- crates/backtrace-sys2/src/libbacktrace/internal.h
|
115
|
+
- crates/backtrace-sys2/src/libbacktrace/libtool.m4
|
116
|
+
- crates/backtrace-sys2/src/libbacktrace/ltmain.sh
|
117
|
+
- crates/backtrace-sys2/src/libbacktrace/ltoptions.m4
|
118
|
+
- crates/backtrace-sys2/src/libbacktrace/ltsugar.m4
|
119
|
+
- crates/backtrace-sys2/src/libbacktrace/ltversion.m4
|
120
|
+
- crates/backtrace-sys2/src/libbacktrace/lt~obsolete.m4
|
121
|
+
- crates/backtrace-sys2/src/libbacktrace/macho.c
|
122
|
+
- crates/backtrace-sys2/src/libbacktrace/missing
|
123
|
+
- crates/backtrace-sys2/src/libbacktrace/mmap.c
|
124
|
+
- crates/backtrace-sys2/src/libbacktrace/mmapio.c
|
125
|
+
- crates/backtrace-sys2/src/libbacktrace/move-if-change
|
126
|
+
- crates/backtrace-sys2/src/libbacktrace/mtest.c
|
127
|
+
- crates/backtrace-sys2/src/libbacktrace/nounwind.c
|
128
|
+
- crates/backtrace-sys2/src/libbacktrace/pecoff.c
|
129
|
+
- crates/backtrace-sys2/src/libbacktrace/posix.c
|
130
|
+
- crates/backtrace-sys2/src/libbacktrace/print.c
|
131
|
+
- crates/backtrace-sys2/src/libbacktrace/read.c
|
132
|
+
- crates/backtrace-sys2/src/libbacktrace/simple.c
|
133
|
+
- crates/backtrace-sys2/src/libbacktrace/sort.c
|
134
|
+
- crates/backtrace-sys2/src/libbacktrace/state.c
|
135
|
+
- crates/backtrace-sys2/src/libbacktrace/stest.c
|
136
|
+
- crates/backtrace-sys2/src/libbacktrace/test-driver
|
137
|
+
- crates/backtrace-sys2/src/libbacktrace/test_format.c
|
138
|
+
- crates/backtrace-sys2/src/libbacktrace/testlib.c
|
139
|
+
- crates/backtrace-sys2/src/libbacktrace/testlib.h
|
140
|
+
- crates/backtrace-sys2/src/libbacktrace/ttest.c
|
141
|
+
- crates/backtrace-sys2/src/libbacktrace/unittest.c
|
142
|
+
- crates/backtrace-sys2/src/libbacktrace/unknown.c
|
143
|
+
- crates/backtrace-sys2/src/libbacktrace/xcoff.c
|
144
|
+
- crates/backtrace-sys2/src/libbacktrace/xztest.c
|
145
|
+
- crates/backtrace-sys2/src/libbacktrace/zstdtest.c
|
146
|
+
- crates/backtrace-sys2/src/libbacktrace/ztest.c
|
56
147
|
- exe/pf2
|
57
148
|
- ext/pf2/Cargo.toml
|
58
149
|
- ext/pf2/build.rs
|
59
150
|
- ext/pf2/extconf.rb
|
151
|
+
- ext/pf2/src/backtrace.rs
|
60
152
|
- ext/pf2/src/lib.rs
|
61
153
|
- ext/pf2/src/profile.rs
|
62
154
|
- ext/pf2/src/profile_serializer.rs
|
63
155
|
- ext/pf2/src/ringbuffer.rs
|
64
156
|
- ext/pf2/src/ruby_init.rs
|
157
|
+
- ext/pf2/src/ruby_internal_apis.rs
|
65
158
|
- ext/pf2/src/sample.rs
|
66
159
|
- ext/pf2/src/siginfo_t.c
|
67
160
|
- ext/pf2/src/signal_scheduler.rs
|
@@ -81,7 +174,6 @@ metadata:
|
|
81
174
|
homepage_uri: https://github.com/osyoyu/pf2
|
82
175
|
source_code_uri: https://github.com/osyoyu/pf2
|
83
176
|
changelog_uri: https://github.com/osyoyu/pf2/blob/master/CHANGELOG.md
|
84
|
-
post_install_message:
|
85
177
|
rdoc_options: []
|
86
178
|
require_paths:
|
87
179
|
- lib
|
@@ -97,7 +189,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
189
|
version: '0'
|
98
190
|
requirements: []
|
99
191
|
rubygems_version: 3.6.0.dev
|
100
|
-
signing_key:
|
101
192
|
specification_version: 4
|
102
193
|
summary: Yet another Ruby profiler
|
103
194
|
test_files: []
|