pf2 0.7.1 → 0.9.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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +11 -0
  4. data/Rakefile +9 -2
  5. data/doc/development.md +11 -0
  6. data/examples/mandelbrot.rb +69 -0
  7. data/examples/mandelbrot_ractor.rb +77 -0
  8. data/ext/pf2/build.rs +7 -0
  9. data/ext/pf2/src/ruby_c_api_helper.c +6 -0
  10. data/ext/pf2/src/serialization/profile.rs +1 -0
  11. data/ext/pf2/src/serialization/serializer.rs +4 -0
  12. data/ext/pf2/src/signal_scheduler.rs +1 -1
  13. data/ext/pf2/src/util.rs +2 -1
  14. data/ext/pf2c/backtrace_state.c +10 -0
  15. data/ext/pf2c/backtrace_state.h +10 -0
  16. data/ext/pf2c/configuration.c +90 -0
  17. data/ext/pf2c/configuration.h +23 -0
  18. data/ext/pf2c/extconf.rb +21 -0
  19. data/ext/pf2c/pf2.c +17 -0
  20. data/ext/pf2c/pf2.h +8 -0
  21. data/ext/pf2c/ringbuffer.c +74 -0
  22. data/ext/pf2c/ringbuffer.h +24 -0
  23. data/ext/pf2c/sample.c +70 -0
  24. data/ext/pf2c/sample.h +22 -0
  25. data/ext/pf2c/serializer.c +377 -0
  26. data/ext/pf2c/serializer.h +58 -0
  27. data/ext/pf2c/session.c +344 -0
  28. data/ext/pf2c/session.h +51 -0
  29. data/lib/pf2/cli.rb +33 -2
  30. data/lib/pf2/reporter/annotate.rb +101 -0
  31. data/lib/pf2/reporter/firefox_profiler.rb +1 -1
  32. data/lib/pf2/reporter/firefox_profiler_ser2.rb +308 -0
  33. data/lib/pf2/reporter.rb +2 -0
  34. data/lib/pf2/version.rb +1 -1
  35. data/vendor/libbacktrace/.gitignore +5 -0
  36. data/vendor/libbacktrace/Isaac.Newton-Opticks.txt +9286 -0
  37. data/vendor/libbacktrace/LICENSE +29 -0
  38. data/vendor/libbacktrace/Makefile.am +708 -0
  39. data/vendor/libbacktrace/Makefile.in +2820 -0
  40. data/vendor/libbacktrace/README.md +46 -0
  41. data/vendor/libbacktrace/aclocal.m4 +864 -0
  42. data/vendor/libbacktrace/alloc.c +167 -0
  43. data/vendor/libbacktrace/allocfail.c +136 -0
  44. data/vendor/libbacktrace/allocfail.sh +104 -0
  45. data/vendor/libbacktrace/atomic.c +113 -0
  46. data/vendor/libbacktrace/backtrace-supported.h.in +66 -0
  47. data/vendor/libbacktrace/backtrace.c +129 -0
  48. data/vendor/libbacktrace/backtrace.h +189 -0
  49. data/vendor/libbacktrace/btest.c +517 -0
  50. data/vendor/libbacktrace/compile +348 -0
  51. data/vendor/libbacktrace/config/enable.m4 +38 -0
  52. data/vendor/libbacktrace/config/lead-dot.m4 +31 -0
  53. data/vendor/libbacktrace/config/libtool.m4 +7545 -0
  54. data/vendor/libbacktrace/config/ltoptions.m4 +369 -0
  55. data/vendor/libbacktrace/config/ltsugar.m4 +123 -0
  56. data/vendor/libbacktrace/config/ltversion.m4 +23 -0
  57. data/vendor/libbacktrace/config/lt~obsolete.m4 +98 -0
  58. data/vendor/libbacktrace/config/multi.m4 +68 -0
  59. data/vendor/libbacktrace/config/override.m4 +117 -0
  60. data/vendor/libbacktrace/config/unwind_ipinfo.m4 +37 -0
  61. data/vendor/libbacktrace/config/warnings.m4 +227 -0
  62. data/vendor/libbacktrace/config.guess +1700 -0
  63. data/vendor/libbacktrace/config.h.in +185 -0
  64. data/vendor/libbacktrace/config.sub +1885 -0
  65. data/vendor/libbacktrace/configure +15952 -0
  66. data/vendor/libbacktrace/configure.ac +642 -0
  67. data/vendor/libbacktrace/dwarf.c +4593 -0
  68. data/vendor/libbacktrace/edtest.c +120 -0
  69. data/vendor/libbacktrace/edtest2.c +43 -0
  70. data/vendor/libbacktrace/elf.c +7471 -0
  71. data/vendor/libbacktrace/fileline.c +407 -0
  72. data/vendor/libbacktrace/filenames.h +52 -0
  73. data/vendor/libbacktrace/filetype.awk +13 -0
  74. data/vendor/libbacktrace/install-debuginfo-for-buildid.sh.in +65 -0
  75. data/vendor/libbacktrace/install-sh +501 -0
  76. data/vendor/libbacktrace/instrumented_alloc.c +114 -0
  77. data/vendor/libbacktrace/internal.h +428 -0
  78. data/vendor/libbacktrace/ltmain.sh +8636 -0
  79. data/vendor/libbacktrace/macho.c +1361 -0
  80. data/vendor/libbacktrace/missing +215 -0
  81. data/vendor/libbacktrace/mmap.c +331 -0
  82. data/vendor/libbacktrace/mmapio.c +110 -0
  83. data/vendor/libbacktrace/move-if-change +83 -0
  84. data/vendor/libbacktrace/mtest.c +410 -0
  85. data/vendor/libbacktrace/nounwind.c +66 -0
  86. data/vendor/libbacktrace/pecoff.c +1123 -0
  87. data/vendor/libbacktrace/posix.c +104 -0
  88. data/vendor/libbacktrace/print.c +117 -0
  89. data/vendor/libbacktrace/read.c +110 -0
  90. data/vendor/libbacktrace/simple.c +108 -0
  91. data/vendor/libbacktrace/sort.c +108 -0
  92. data/vendor/libbacktrace/state.c +72 -0
  93. data/vendor/libbacktrace/stest.c +137 -0
  94. data/vendor/libbacktrace/test-driver +148 -0
  95. data/vendor/libbacktrace/test_format.c +55 -0
  96. data/vendor/libbacktrace/testlib.c +234 -0
  97. data/vendor/libbacktrace/testlib.h +110 -0
  98. data/vendor/libbacktrace/ttest.c +161 -0
  99. data/vendor/libbacktrace/unittest.c +92 -0
  100. data/vendor/libbacktrace/unknown.c +65 -0
  101. data/vendor/libbacktrace/xcoff.c +1617 -0
  102. data/vendor/libbacktrace/xztest.c +508 -0
  103. data/vendor/libbacktrace/zstdtest.c +523 -0
  104. data/vendor/libbacktrace/ztest.c +541 -0
  105. metadata +122 -3
@@ -0,0 +1,185 @@
1
+ /* config.h.in. Generated from configure.ac by autoheader. */
2
+
3
+ /* ELF size: 32 or 64 */
4
+ #undef BACKTRACE_ELF_SIZE
5
+
6
+ /* XCOFF size: 32 or 64 */
7
+ #undef BACKTRACE_XCOFF_SIZE
8
+
9
+ /* Define to 1 if you have the __atomic functions */
10
+ #undef HAVE_ATOMIC_FUNCTIONS
11
+
12
+ /* Define to 1 if you have the `clock_gettime' function. */
13
+ #undef HAVE_CLOCK_GETTIME
14
+
15
+ /* Define to 1 if you have the declaration of `getpagesize', and to 0 if you
16
+ don't. */
17
+ #undef HAVE_DECL_GETPAGESIZE
18
+
19
+ /* Define to 1 if you have the declaration of `strnlen', and to 0 if you
20
+ don't. */
21
+ #undef HAVE_DECL_STRNLEN
22
+
23
+ /* Define to 1 if you have the declaration of `_pgmptr', and to 0 if you
24
+ don't. */
25
+ #undef HAVE_DECL__PGMPTR
26
+
27
+ /* Define to 1 if you have the <dlfcn.h> header file. */
28
+ #undef HAVE_DLFCN_H
29
+
30
+ /* Define if dl_iterate_phdr is available. */
31
+ #undef HAVE_DL_ITERATE_PHDR
32
+
33
+ /* Define to 1 if you have the fcntl function */
34
+ #undef HAVE_FCNTL
35
+
36
+ /* Define if getexecname is available. */
37
+ #undef HAVE_GETEXECNAME
38
+
39
+ /* Define if _Unwind_GetIPInfo is available. */
40
+ #undef HAVE_GETIPINFO
41
+
42
+ /* Define to 1 if you have the <inttypes.h> header file. */
43
+ #undef HAVE_INTTYPES_H
44
+
45
+ /* Define to 1 if you have KERN_PROC and KERN_PROC_PATHNAME in <sys/sysctl.h>.
46
+ */
47
+ #undef HAVE_KERN_PROC
48
+
49
+ /* Define to 1 if you have KERN_PROCARGS and KERN_PROC_PATHNAME in
50
+ <sys/sysctl.h>. */
51
+ #undef HAVE_KERN_PROC_ARGS
52
+
53
+ /* Define if -llzma is available. */
54
+ #undef HAVE_LIBLZMA
55
+
56
+ /* Define to 1 if you have the <link.h> header file. */
57
+ #undef HAVE_LINK_H
58
+
59
+ /* Define if AIX loadquery is available. */
60
+ #undef HAVE_LOADQUERY
61
+
62
+ /* Define to 1 if you have the `lstat' function. */
63
+ #undef HAVE_LSTAT
64
+
65
+ /* Define to 1 if you have the <mach-o/dyld.h> header file. */
66
+ #undef HAVE_MACH_O_DYLD_H
67
+
68
+ /* Define to 1 if you have the <memory.h> header file. */
69
+ #undef HAVE_MEMORY_H
70
+
71
+ /* Define to 1 if you have the `readlink' function. */
72
+ #undef HAVE_READLINK
73
+
74
+ /* Define to 1 if you have the <stdint.h> header file. */
75
+ #undef HAVE_STDINT_H
76
+
77
+ /* Define to 1 if you have the <stdlib.h> header file. */
78
+ #undef HAVE_STDLIB_H
79
+
80
+ /* Define to 1 if you have the <strings.h> header file. */
81
+ #undef HAVE_STRINGS_H
82
+
83
+ /* Define to 1 if you have the <string.h> header file. */
84
+ #undef HAVE_STRING_H
85
+
86
+ /* Define to 1 if you have the __sync functions */
87
+ #undef HAVE_SYNC_FUNCTIONS
88
+
89
+ /* Define to 1 if you have the <sys/ldr.h> header file. */
90
+ #undef HAVE_SYS_LDR_H
91
+
92
+ /* Define to 1 if you have the <sys/link.h> header file. */
93
+ #undef HAVE_SYS_LINK_H
94
+
95
+ /* Define to 1 if you have the <sys/mman.h> header file. */
96
+ #undef HAVE_SYS_MMAN_H
97
+
98
+ /* Define to 1 if you have the <sys/stat.h> header file. */
99
+ #undef HAVE_SYS_STAT_H
100
+
101
+ /* Define to 1 if you have the <sys/types.h> header file. */
102
+ #undef HAVE_SYS_TYPES_H
103
+
104
+ /* Define to 1 if you have the <tlhelp32.h> header file. */
105
+ #undef HAVE_TLHELP32_H
106
+
107
+ /* Define to 1 if you have the <unistd.h> header file. */
108
+ #undef HAVE_UNISTD_H
109
+
110
+ /* Define to 1 if you have the <windows.h> header file. */
111
+ #undef HAVE_WINDOWS_H
112
+
113
+ /* Define if -lz is available. */
114
+ #undef HAVE_ZLIB
115
+
116
+ /* Define if -lzstd is available. */
117
+ #undef HAVE_ZSTD
118
+
119
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
120
+ */
121
+ #undef LT_OBJDIR
122
+
123
+ /* Define to the address where bug reports for this package should be sent. */
124
+ #undef PACKAGE_BUGREPORT
125
+
126
+ /* Define to the full name of this package. */
127
+ #undef PACKAGE_NAME
128
+
129
+ /* Define to the full name and version of this package. */
130
+ #undef PACKAGE_STRING
131
+
132
+ /* Define to the one symbol short name of this package. */
133
+ #undef PACKAGE_TARNAME
134
+
135
+ /* Define to the home page for this package. */
136
+ #undef PACKAGE_URL
137
+
138
+ /* Define to the version of this package. */
139
+ #undef PACKAGE_VERSION
140
+
141
+ /* Define to 1 if you have the ANSI C header files. */
142
+ #undef STDC_HEADERS
143
+
144
+ /* Enable extensions on AIX 3, Interix. */
145
+ #ifndef _ALL_SOURCE
146
+ # undef _ALL_SOURCE
147
+ #endif
148
+ /* Enable GNU extensions on systems that have them. */
149
+ #ifndef _GNU_SOURCE
150
+ # undef _GNU_SOURCE
151
+ #endif
152
+ /* Enable threading extensions on Solaris. */
153
+ #ifndef _POSIX_PTHREAD_SEMANTICS
154
+ # undef _POSIX_PTHREAD_SEMANTICS
155
+ #endif
156
+ /* Enable extensions on HP NonStop. */
157
+ #ifndef _TANDEM_SOURCE
158
+ # undef _TANDEM_SOURCE
159
+ #endif
160
+ /* Enable general extensions on Solaris. */
161
+ #ifndef __EXTENSIONS__
162
+ # undef __EXTENSIONS__
163
+ #endif
164
+
165
+
166
+ /* Enable large inode numbers on Mac OS X 10.5. */
167
+ #ifndef _DARWIN_USE_64_BIT_INODE
168
+ # define _DARWIN_USE_64_BIT_INODE 1
169
+ #endif
170
+
171
+ /* Number of bits in a file offset, on hosts where this is settable. */
172
+ #undef _FILE_OFFSET_BITS
173
+
174
+ /* Define for large files, on AIX-style hosts. */
175
+ #undef _LARGE_FILES
176
+
177
+ /* Define to 1 if on MINIX. */
178
+ #undef _MINIX
179
+
180
+ /* Define to 2 if the system does not provide POSIX.1 features except with
181
+ this defined. */
182
+ #undef _POSIX_1_SOURCE
183
+
184
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
185
+ #undef _POSIX_SOURCE