fiber-profiler 0.3.1 → 0.4.0
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
- checksums.yaml.gz.sig +0 -0
- data/ext/Fiber_Profiler.bundle +0 -0
- data/ext/Fiber_Profiler.bundle.dSYM/Contents/Info.plist +20 -0
- data/ext/Fiber_Profiler.bundle.dSYM/Contents/Resources/DWARF/Fiber_Profiler.bundle +0 -0
- data/ext/Fiber_Profiler.bundle.dSYM/Contents/Resources/Relocations/aarch64/Fiber_Profiler.bundle.yml +5 -0
- data/ext/Makefile +12 -9
- data/ext/capture.o +0 -0
- data/ext/extconf.rb +2 -2
- data/ext/fiber.o +0 -0
- data/ext/mkmf.log +69 -0
- data/ext/profiler.o +0 -0
- data/lib/fiber/profiler/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +8 -9
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64e27c2a0ba665e441f7fa4e89044961c777572bc9a47bf9d3a25db83b3e6b90
|
4
|
+
data.tar.gz: 514104f2792a95d4262e99adec6108d36e7d9c0b1ea927ffed4fadc8cfae5836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3501a3d76137aa083c27c1f552171ea07915a1ac87c10d16b3d0cb2ff5dd11a48b0f7cb353aaa7b1c452b5d2251b8d2a46fa52178f9f50a66c4d0b100253bc9b
|
7
|
+
data.tar.gz: e42ef50211f27eccbdb83eb7682fd736fbc6e40a082de68d0b4e34f65f8820c97f9132ef5ed922b8c31a35906cfac1e380d0510a2c2f3f727c234e0417071e6e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/ext/Fiber_Profiler.bundle
CHANGED
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>English</string>
|
7
|
+
<key>CFBundleIdentifier</key>
|
8
|
+
<string>com.apple.xcode.dsym.Fiber_Profiler.bundle</string>
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
10
|
+
<string>6.0</string>
|
11
|
+
<key>CFBundlePackageType</key>
|
12
|
+
<string>dSYM</string>
|
13
|
+
<key>CFBundleSignature</key>
|
14
|
+
<string>????</string>
|
15
|
+
<key>CFBundleShortVersionString</key>
|
16
|
+
<string>1.0</string>
|
17
|
+
<key>CFBundleVersion</key>
|
18
|
+
<string>1</string>
|
19
|
+
</dict>
|
20
|
+
</plist>
|
Binary file
|
data/ext/Makefile
CHANGED
@@ -13,12 +13,12 @@ NULLCMD = :
|
|
13
13
|
#### Start of system configuration section. ####
|
14
14
|
|
15
15
|
srcdir = .
|
16
|
-
topdir = /Users/samuel/.rubies/ruby-3.
|
16
|
+
topdir = /Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0
|
17
17
|
hdrdir = $(topdir)
|
18
|
-
arch_hdrdir = /Users/samuel/.rubies/ruby-3.
|
18
|
+
arch_hdrdir = /Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/arm64-darwin24
|
19
19
|
PATH_SEPARATOR = :
|
20
20
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir)/fiber/profiler
|
21
|
-
prefix = $(DESTDIR)/Users/samuel/.rubies/ruby-3.
|
21
|
+
prefix = $(DESTDIR)/Users/samuel/.rubies/ruby-3.4.2
|
22
22
|
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
23
23
|
rubyarchprefix = $(rubylibprefix)/$(arch)
|
24
24
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
@@ -42,6 +42,7 @@ archincludedir = $(includedir)/$(arch)
|
|
42
42
|
sitearchlibdir = $(libdir)/$(sitearch)
|
43
43
|
archlibdir = $(libdir)/$(arch)
|
44
44
|
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
45
|
+
modular_gc_dir = $(DESTDIR)
|
45
46
|
mandir = $(datarootdir)/man
|
46
47
|
localedir = $(datarootdir)/locale
|
47
48
|
libdir = $(exec_prefix)/lib
|
@@ -67,7 +68,7 @@ archdir = $(rubyarchdir)
|
|
67
68
|
|
68
69
|
CC_WRAPPER =
|
69
70
|
CC = clang
|
70
|
-
CXX = clang++
|
71
|
+
CXX = clang++ -std=gnu++11
|
71
72
|
LIBRUBY = $(LIBRUBY_A)
|
72
73
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
73
74
|
LIBRUBYARG_SHARED =
|
@@ -78,7 +79,7 @@ COUTFLAG = -o $(empty)
|
|
78
79
|
CSRCFLAG = $(empty)
|
79
80
|
|
80
81
|
RUBY_EXTCONF_H = extconf.h
|
81
|
-
cflags = -fdeclspec
|
82
|
+
cflags = $(hardenflags) -fdeclspec $(optflags) $(debugflags) $(warnflags)
|
82
83
|
cxxflags =
|
83
84
|
optflags = -O3 -fno-fast-math
|
84
85
|
debugflags = -ggdb3
|
@@ -96,11 +97,13 @@ ARCH_FLAG = -arch arm64
|
|
96
97
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
97
98
|
LDSHARED = $(CC) -dynamic -bundle
|
98
99
|
LDSHAREDXX = $(CXX) -dynamic -bundle
|
100
|
+
POSTLINK = dsymutil $@ 2>/dev/null; { test -z '$(RUBY_CODESIGN)' || codesign -s '$(RUBY_CODESIGN)' $@; }
|
99
101
|
AR = ar
|
102
|
+
LD = ld
|
100
103
|
EXEEXT =
|
101
104
|
|
102
105
|
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
103
|
-
RUBY_SO_NAME = ruby.3.
|
106
|
+
RUBY_SO_NAME = ruby.3.4
|
104
107
|
RUBYW_INSTALL_NAME =
|
105
108
|
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
106
109
|
RUBYW_BASE_NAME = rubyw
|
@@ -108,7 +111,7 @@ RUBY_BASE_NAME = ruby
|
|
108
111
|
|
109
112
|
arch = arm64-darwin24
|
110
113
|
sitearch = $(arch)
|
111
|
-
ruby_version = 3.
|
114
|
+
ruby_version = 3.4.0
|
112
115
|
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
113
116
|
RUBY = $(ruby)
|
114
117
|
BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
|
@@ -128,7 +131,7 @@ TOUCH = exit >
|
|
128
131
|
|
129
132
|
preload =
|
130
133
|
libpath = . $(libdir) /opt/local/lib
|
131
|
-
LIBPATH =
|
134
|
+
LIBPATH = -L. -L$(libdir) -L/opt/local/lib
|
132
135
|
DEFFILE =
|
133
136
|
|
134
137
|
CLEANFILES = mkmf.log
|
@@ -161,7 +164,7 @@ HDRDIR = $(sitehdrdir)$(target_prefix)
|
|
161
164
|
ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
|
162
165
|
TARGET_SO_DIR =
|
163
166
|
TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
|
164
|
-
CLEANLIBS = $(TARGET_SO) $(TARGET_SO)
|
167
|
+
CLEANLIBS = $(TARGET_SO) $(TARGET_SO:=.dSYM)
|
165
168
|
CLEANOBJS = $(OBJS) *.bak
|
166
169
|
TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.time
|
167
170
|
|
data/ext/capture.o
CHANGED
Binary file
|
data/ext/extconf.rb
CHANGED
@@ -9,12 +9,12 @@ require "mkmf"
|
|
9
9
|
gem_name = File.basename(__dir__)
|
10
10
|
extension_name = "Fiber_Profiler"
|
11
11
|
|
12
|
-
|
12
|
+
append_cflags(["-Wall", "-Wno-unknown-pragmas", "-std=c99"])
|
13
13
|
|
14
14
|
if ENV.key?("RUBY_DEBUG")
|
15
15
|
$stderr.puts "Enabling debug mode..."
|
16
16
|
|
17
|
-
|
17
|
+
append_cflags(["-DRUBY_DEBUG", "-O0"])
|
18
18
|
end
|
19
19
|
|
20
20
|
$srcs = ["fiber/profiler/profiler.c", "fiber/profiler/time.c", "fiber/profiler/fiber.c", "fiber/profiler/capture.c"]
|
data/ext/fiber.o
CHANGED
Binary file
|
data/ext/mkmf.log
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
have_func: checking for rb_fiber_current()... -------------------- yes
|
2
|
+
|
3
|
+
DYLD_LIBRARY_PATH=.:/Users/samuel/.rubies/ruby-3.4.2/lib ASAN_OPTIONS=detect_leaks=0 "clang -o conftest -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/arm64-darwin24 -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -pipe -Wall -Wno-unknown-pragmas -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.4.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -arch arm64 -lruby.3.4-static -framework CoreFoundation -lgmp -ldl -lobjc -lpthread -lpthread "
|
4
|
+
ld: warning: ignoring duplicate libraries: '-lpthread'
|
5
|
+
checked program was:
|
6
|
+
/* begin */
|
7
|
+
1: #include "ruby.h"
|
8
|
+
2:
|
9
|
+
3: int main(int argc, char **argv)
|
10
|
+
4: {
|
11
|
+
5: return !!argv[argc];
|
12
|
+
6: }
|
13
|
+
/* end */
|
14
|
+
|
15
|
+
DYLD_LIBRARY_PATH=.:/Users/samuel/.rubies/ruby-3.4.2/lib ASAN_OPTIONS=detect_leaks=0 "clang -o conftest -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/arm64-darwin24 -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -pipe -Wall -Wno-unknown-pragmas -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.4.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -arch arm64 -lruby.3.4-static -framework CoreFoundation -lgmp -ldl -lobjc -lpthread -lpthread "
|
16
|
+
ld: warning: ignoring duplicate libraries: '-lpthread'
|
17
|
+
checked program was:
|
18
|
+
/* begin */
|
19
|
+
1: #include "ruby.h"
|
20
|
+
2:
|
21
|
+
3: /*top*/
|
22
|
+
4: extern int t(void);
|
23
|
+
5: int main(int argc, char **argv)
|
24
|
+
6: {
|
25
|
+
7: if (argc > 1000000) {
|
26
|
+
8: int (* volatile tp)(void)=(int (*)(void))&t;
|
27
|
+
9: printf("%d", (*tp)());
|
28
|
+
10: }
|
29
|
+
11:
|
30
|
+
12: return !!argv[argc];
|
31
|
+
13: }
|
32
|
+
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_fiber_current; return !p; }
|
33
|
+
/* end */
|
34
|
+
|
35
|
+
--------------------
|
36
|
+
|
37
|
+
have_func: checking for rb_ext_ractor_safe()... -------------------- yes
|
38
|
+
|
39
|
+
DYLD_LIBRARY_PATH=.:/Users/samuel/.rubies/ruby-3.4.2/lib ASAN_OPTIONS=detect_leaks=0 "clang -o conftest -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/arm64-darwin24 -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.4.2/include/ruby-3.4.0 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -pipe -Wall -Wno-unknown-pragmas -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.4.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -arch arm64 -lruby.3.4-static -framework CoreFoundation -lgmp -ldl -lobjc -lpthread -lpthread "
|
40
|
+
ld: warning: ignoring duplicate libraries: '-lpthread'
|
41
|
+
checked program was:
|
42
|
+
/* begin */
|
43
|
+
1: #include "ruby.h"
|
44
|
+
2:
|
45
|
+
3: /*top*/
|
46
|
+
4: extern int t(void);
|
47
|
+
5: int main(int argc, char **argv)
|
48
|
+
6: {
|
49
|
+
7: if (argc > 1000000) {
|
50
|
+
8: int (* volatile tp)(void)=(int (*)(void))&t;
|
51
|
+
9: printf("%d", (*tp)());
|
52
|
+
10: }
|
53
|
+
11:
|
54
|
+
12: return !!argv[argc];
|
55
|
+
13: }
|
56
|
+
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_ext_ractor_safe; return !p; }
|
57
|
+
/* end */
|
58
|
+
|
59
|
+
--------------------
|
60
|
+
|
61
|
+
extconf.h is:
|
62
|
+
/* begin */
|
63
|
+
1: #ifndef EXTCONF_H
|
64
|
+
2: #define EXTCONF_H
|
65
|
+
3: #define HAVE_RB_FIBER_CURRENT 1
|
66
|
+
4: #define HAVE_RB_EXT_RACTOR_SAFE 1
|
67
|
+
5: #endif
|
68
|
+
/* end */
|
69
|
+
|
data/ext/profiler.o
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fiber-profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain:
|
11
10
|
- |
|
@@ -37,16 +36,17 @@ cert_chain:
|
|
37
36
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
37
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
38
|
-----END CERTIFICATE-----
|
40
|
-
date:
|
39
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
41
40
|
dependencies: []
|
42
|
-
description:
|
43
|
-
email:
|
44
41
|
executables: []
|
45
42
|
extensions:
|
46
43
|
- ext/extconf.rb
|
47
44
|
extra_rdoc_files: []
|
48
45
|
files:
|
49
46
|
- ext/Fiber_Profiler.bundle
|
47
|
+
- ext/Fiber_Profiler.bundle.dSYM/Contents/Info.plist
|
48
|
+
- ext/Fiber_Profiler.bundle.dSYM/Contents/Resources/DWARF/Fiber_Profiler.bundle
|
49
|
+
- ext/Fiber_Profiler.bundle.dSYM/Contents/Resources/Relocations/aarch64/Fiber_Profiler.bundle.yml
|
50
50
|
- ext/Makefile
|
51
51
|
- ext/capture.o
|
52
52
|
- ext/extconf.h
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- ext/fiber/profiler/profiler.h
|
62
62
|
- ext/fiber/profiler/time.c
|
63
63
|
- ext/fiber/profiler/time.h
|
64
|
+
- ext/mkmf.log
|
64
65
|
- ext/profiler.o
|
65
66
|
- ext/time.o
|
66
67
|
- lib/fiber/profiler.rb
|
@@ -76,7 +77,6 @@ licenses:
|
|
76
77
|
metadata:
|
77
78
|
documentation_uri: https://socketry.github.io/fiber-profiler/
|
78
79
|
source_code_uri: https://github.com/socketry/fiber-profiler.git
|
79
|
-
post_install_message:
|
80
80
|
rdoc_options: []
|
81
81
|
require_paths:
|
82
82
|
- lib
|
@@ -84,15 +84,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '3.
|
87
|
+
version: '3.2'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
95
|
-
signing_key:
|
94
|
+
rubygems_version: 3.6.7
|
96
95
|
specification_version: 4
|
97
96
|
summary: A fiber stall profiler.
|
98
97
|
test_files: []
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
e
|
1
|
+
i�G��H�ur�7�(Q7��|�Pv����^}�}�@�7x�Uk;�yA`���4/�|;6� 0IKM��{-H�
|
2
|
+
O-�����;��*���Um��?�϶�$�_�H��e�*��7 ����j�5̔0/w�w�@�K�YW�{#�b!�ud Sy�>]CI����s�ڟF����H
|