pyroscope_beta 0.2.2-x86_64-linux → 0.2.3-x86_64-linux
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/elflib/rbspy/manylinux.sh +23 -0
- data/elflib/rbspy/pyproject.toml +7 -0
- data/elflib/rbspy/rbspy/__init__.py +0 -0
- data/elflib/rbspy/setup.cfg +22 -0
- data/elflib/rbspy/setup.py +46 -0
- data/elflib/thread_id/manylinux.sh +23 -0
- data/elflib/thread_id/pyproject.toml +7 -0
- data/elflib/thread_id/setup.cfg +22 -0
- data/elflib/thread_id/setup.py +46 -0
- data/elflib/thread_id/thread_id/__init__.py +0 -0
- data/ext/rbspy/Cargo.toml +9 -0
- data/ext/rbspy/Rakefile +0 -1
- data/ext/rbspy/build.rs +12 -0
- data/ext/rbspy/cbindgen.toml +22 -0
- data/ext/thread_id/Cargo.toml +9 -0
- data/ext/thread_id/build.rs +12 -0
- data/ext/thread_id/cbindgen.toml +22 -0
- data/lib/pyroscope/version.rb +1 -1
- data/lib/rbspy/rbspy.so +0 -0
- data/lib/rbspy.libs/libcom_err-f79b9776.so.2.1 +0 -0
- data/lib/rbspy.libs/libcrypto-142cf8a3.so.1.0.1e +0 -0
- data/lib/rbspy.libs/libgssapi_krb5-bb73e344.so.2.2 +0 -0
- data/lib/rbspy.libs/libk5crypto-ab4ddf4c.so.3.1 +0 -0
- data/lib/rbspy.libs/libkeyutils-68db41cc.so.1.3 +0 -0
- data/lib/rbspy.libs/libkrb5-7e4170ab.so.3.3 +0 -0
- data/lib/rbspy.libs/libkrb5support-2ce1fd50.so.0.1 +0 -0
- data/lib/rbspy.libs/libselinux-d72a37e2.so.1 +0 -0
- data/lib/rbspy.libs/libssl-09014658.so.1.0.1e +0 -0
- data/lib/thread_id/thread_id.so +0 -0
- data/scripts/docker.sh +16 -0
- metadata +30 -8
- data/ext/rbspy/Cargo.lock +0 -2220
- data/ext/thread_id/Cargo.lock +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ccf9727c5185ebd79ec4a3e1b699ac40ce589b8919aec71bdfceaf9faa69e3a
|
4
|
+
data.tar.gz: b94d146c4177ee10d6ae3ae421540d6b6a34f9037d76d6d671d581c4857ef54e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72473e4b6464dd002b0d5d698d844ef8887f1fbb16e91e5d7a12a748c3efe1a2ecf231f3f56ce5f0978fc266d65e049eca50442a50312805213db1a66dce51d0
|
7
|
+
data.tar.gz: ecc1077338f7193a9a79de530b5c8b59059c528e083b799909aa2095b0696c3f7ab9ebbfe8d979930b33aaf0651a21890c0d3c4cf0481c51caad1c92afe4b663
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# Install tooling
|
5
|
+
#yum -y -q install wget gcc libffi-devel openssl-devel
|
6
|
+
|
7
|
+
# Install Rust
|
8
|
+
#curl https://sh.rustup.rs -sSf | sh -s -- -y
|
9
|
+
#export PATH=~/.cargo/bin:$PATH
|
10
|
+
|
11
|
+
# Build wheels
|
12
|
+
#/opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
|
13
|
+
|
14
|
+
# Audit wheels
|
15
|
+
#for wheel in dist/*.whl; do
|
16
|
+
#auditwheel repair $wheel -w dist/
|
17
|
+
#rm $wheel
|
18
|
+
#done
|
19
|
+
|
20
|
+
# Extract wheels
|
21
|
+
for wheel in dist/*.whl; do
|
22
|
+
/opt/python/cp37-cp37m/bin/wheel unpack $wheel -d wheelhouse
|
23
|
+
done
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[metadata]
|
2
|
+
name = rbspy
|
3
|
+
version= 1.0.0
|
4
|
+
description = Fake wheel to generate audtiwheel libs
|
5
|
+
url = https://proscope.io
|
6
|
+
maintainer = Abid Omar
|
7
|
+
maintainer_email = contact@pyroscope.io
|
8
|
+
license = Apache 2.0
|
9
|
+
classifiers =
|
10
|
+
Intended Audience :: Developers
|
11
|
+
project_urls =
|
12
|
+
Documentation = https://proscope.io
|
13
|
+
Bug Tracker = https://proscope.io
|
14
|
+
Discussions = https://proscope.io
|
15
|
+
Changelog = https://proscope.io
|
16
|
+
|
17
|
+
[options]
|
18
|
+
packages = find:
|
19
|
+
install_requires =
|
20
|
+
milksnakex>=0.1.6
|
21
|
+
include_package_data = True
|
22
|
+
zip_safe = False
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import os
|
2
|
+
import sys
|
3
|
+
from setuptools import find_packages, setup
|
4
|
+
from pathlib import Path
|
5
|
+
|
6
|
+
SCRIPT_DIR = Path(__file__).resolve().parent
|
7
|
+
|
8
|
+
os.chdir(SCRIPT_DIR)
|
9
|
+
|
10
|
+
# print script_dir
|
11
|
+
print(SCRIPT_DIR)
|
12
|
+
|
13
|
+
LIB_DIR = str(SCRIPT_DIR / "../../ext/rbspy")
|
14
|
+
|
15
|
+
def build_native(spec):
|
16
|
+
# Step 1: build the rust library
|
17
|
+
build = spec.add_external_build(
|
18
|
+
cmd=['cargo', 'build', '--release'],
|
19
|
+
path=LIB_DIR
|
20
|
+
)
|
21
|
+
|
22
|
+
def find_dylib():
|
23
|
+
cargo_target = os.environ.get('CARGO_BUILD_TARGET')
|
24
|
+
if cargo_target:
|
25
|
+
in_path = 'target/%s/release' % (cargo_target)
|
26
|
+
else:
|
27
|
+
in_path = 'target/release'
|
28
|
+
return build.find_dylib('rbspy', in_path=in_path)
|
29
|
+
|
30
|
+
# Step 2: package the compiled library
|
31
|
+
rtld_flags = ["NOW"]
|
32
|
+
if sys.platform == "darwin":
|
33
|
+
rtld_flags.append("NODELETE")
|
34
|
+
|
35
|
+
spec.add_cffi_module(module_path='rbspy._native',
|
36
|
+
dylib=find_dylib,
|
37
|
+
header_filename=lambda:
|
38
|
+
build.find_header('rbspy.h',in_path='include'),
|
39
|
+
rtld_flags=rtld_flags,
|
40
|
+
)
|
41
|
+
|
42
|
+
setup(
|
43
|
+
platforms="any",
|
44
|
+
milksnake_tasks=[build_native],
|
45
|
+
setup_requires=["milksnakex>=0.1.6"],
|
46
|
+
)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# Install tooling
|
5
|
+
#yum -y -q install wget gcc libffi-devel openssl-devel
|
6
|
+
|
7
|
+
# Install Rust
|
8
|
+
#curl https://sh.rustup.rs -sSf | sh -s -- -y
|
9
|
+
#export PATH=~/.cargo/bin:$PATH
|
10
|
+
|
11
|
+
# Build wheels
|
12
|
+
#/opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
|
13
|
+
|
14
|
+
# Audit wheels
|
15
|
+
#for wheel in dist/*.whl; do
|
16
|
+
#auditwheel repair $wheel -w dist/
|
17
|
+
#rm $wheel
|
18
|
+
#done
|
19
|
+
|
20
|
+
# Extract wheels
|
21
|
+
for wheel in dist/*.whl; do
|
22
|
+
/opt/python/cp37-cp37m/bin/wheel unpack $wheel -d wheelhouse
|
23
|
+
done
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[metadata]
|
2
|
+
name = thread_id
|
3
|
+
version= 1.0.0
|
4
|
+
description = Fake wheel to generate audtiwheel libs
|
5
|
+
url = https://proscope.io
|
6
|
+
maintainer = Abid Omar
|
7
|
+
maintainer_email = contact@pyroscope.io
|
8
|
+
license = Apache 2.0
|
9
|
+
classifiers =
|
10
|
+
Intended Audience :: Developers
|
11
|
+
project_urls =
|
12
|
+
Documentation = https://proscope.io
|
13
|
+
Bug Tracker = https://proscope.io
|
14
|
+
Discussions = https://proscope.io
|
15
|
+
Changelog = https://proscope.io
|
16
|
+
|
17
|
+
[options]
|
18
|
+
packages = find:
|
19
|
+
install_requires =
|
20
|
+
milksnakex>=0.1.6
|
21
|
+
include_package_data = True
|
22
|
+
zip_safe = False
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import os
|
2
|
+
import sys
|
3
|
+
from setuptools import find_packages, setup
|
4
|
+
from pathlib import Path
|
5
|
+
|
6
|
+
SCRIPT_DIR = Path(__file__).resolve().parent
|
7
|
+
|
8
|
+
os.chdir(SCRIPT_DIR)
|
9
|
+
|
10
|
+
# print script_dir
|
11
|
+
print(SCRIPT_DIR)
|
12
|
+
|
13
|
+
LIB_DIR = str(SCRIPT_DIR / "../../ext/thread_id")
|
14
|
+
|
15
|
+
def build_native(spec):
|
16
|
+
# Step 1: build the rust library
|
17
|
+
build = spec.add_external_build(
|
18
|
+
cmd=['cargo', 'build', '--release'],
|
19
|
+
path=LIB_DIR
|
20
|
+
)
|
21
|
+
|
22
|
+
def find_dylib():
|
23
|
+
cargo_target = os.environ.get('CARGO_BUILD_TARGET')
|
24
|
+
if cargo_target:
|
25
|
+
in_path = 'target/%s/release' % (cargo_target)
|
26
|
+
else:
|
27
|
+
in_path = 'target/release'
|
28
|
+
return build.find_dylib('thread_id', in_path=in_path)
|
29
|
+
|
30
|
+
# Step 2: package the compiled library
|
31
|
+
rtld_flags = ["NOW"]
|
32
|
+
if sys.platform == "darwin":
|
33
|
+
rtld_flags.append("NODELETE")
|
34
|
+
|
35
|
+
spec.add_cffi_module(module_path='thread_id._native',
|
36
|
+
dylib=find_dylib,
|
37
|
+
header_filename=lambda:
|
38
|
+
build.find_header('thread_id.h',in_path='include'),
|
39
|
+
rtld_flags=rtld_flags,
|
40
|
+
)
|
41
|
+
|
42
|
+
setup(
|
43
|
+
platforms="any",
|
44
|
+
milksnake_tasks=[build_native],
|
45
|
+
setup_requires=["milksnakex>=0.1.6"],
|
46
|
+
)
|
File without changes
|
data/ext/rbspy/Cargo.toml
CHANGED
@@ -13,3 +13,12 @@ pyroscope_rbspy = { version = "0.2" }
|
|
13
13
|
|
14
14
|
[patch.crates-io]
|
15
15
|
read-process-memory = {git = "https://github.com/omarabid/read-process-memory.git", branch = "0.1.4-fix"}
|
16
|
+
|
17
|
+
[build-dependencies]
|
18
|
+
cbindgen = "0.20.0"
|
19
|
+
|
20
|
+
[profile.release]
|
21
|
+
opt-level= "z"
|
22
|
+
debug = false
|
23
|
+
lto = true
|
24
|
+
codegen-units = 1
|
data/ext/rbspy/Rakefile
CHANGED
@@ -44,7 +44,6 @@ class RbspyRakeCargoHelper
|
|
44
44
|
|
45
45
|
def self.flags
|
46
46
|
cc_flags = Shellwords.split(RbConfig.expand(RbConfig::MAKEFILE_CONFIG["CC"].dup))
|
47
|
-
puts RbConfig::MAKEFILE_CONFIG.inspect
|
48
47
|
|
49
48
|
["-C", "linker=#{cc_flags.shift}",
|
50
49
|
*cc_flags.flat_map {|a| ["-C", "link-arg=#{a}"] },
|
data/ext/rbspy/build.rs
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
extern crate cbindgen;
|
2
|
+
|
3
|
+
use cbindgen::Config;
|
4
|
+
|
5
|
+
fn main() {
|
6
|
+
let bindings = {
|
7
|
+
let crate_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
|
8
|
+
let config = Config::from_file("cbindgen.toml").unwrap();
|
9
|
+
cbindgen::generate_with_config(&crate_dir, config).unwrap()
|
10
|
+
};
|
11
|
+
bindings.write_to_file("include/rbspy.h");
|
12
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# The language to output bindings in
|
2
|
+
language = "C"
|
3
|
+
documentation_style = "C"
|
4
|
+
|
5
|
+
style = "type"
|
6
|
+
|
7
|
+
# An optional name to use as an include guard
|
8
|
+
include_guard = "RBSPY_H_"
|
9
|
+
# include a comment with the version of cbindgen used to generate the file
|
10
|
+
include_version = true
|
11
|
+
|
12
|
+
# An optional string of text to output at the beginning of the generated file
|
13
|
+
header = "/* Licensed under Apache-2.0 */"
|
14
|
+
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
|
15
|
+
|
16
|
+
braces = "SameLine"
|
17
|
+
tab_width = 2
|
18
|
+
line_length = 80
|
19
|
+
|
20
|
+
[parse]
|
21
|
+
# Do not parse dependent crates
|
22
|
+
parse_deps = false
|
data/ext/thread_id/Cargo.toml
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
extern crate cbindgen;
|
2
|
+
|
3
|
+
use cbindgen::Config;
|
4
|
+
|
5
|
+
fn main() {
|
6
|
+
let bindings = {
|
7
|
+
let crate_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
|
8
|
+
let config = Config::from_file("cbindgen.toml").unwrap();
|
9
|
+
cbindgen::generate_with_config(&crate_dir, config).unwrap()
|
10
|
+
};
|
11
|
+
bindings.write_to_file("include/thread_id.h");
|
12
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# The language to output bindings in
|
2
|
+
language = "C"
|
3
|
+
documentation_style = "C"
|
4
|
+
|
5
|
+
style = "type"
|
6
|
+
|
7
|
+
# An optional name to use as an include guard
|
8
|
+
include_guard = "RBSPY_H_"
|
9
|
+
# include a comment with the version of cbindgen used to generate the file
|
10
|
+
include_version = true
|
11
|
+
|
12
|
+
# An optional string of text to output at the beginning of the generated file
|
13
|
+
header = "/* Licensed under Apache-2.0 */"
|
14
|
+
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
|
15
|
+
|
16
|
+
braces = "SameLine"
|
17
|
+
tab_width = 2
|
18
|
+
line_length = 80
|
19
|
+
|
20
|
+
[parse]
|
21
|
+
# Do not parse dependent crates
|
22
|
+
parse_deps = false
|
data/lib/pyroscope/version.rb
CHANGED
data/lib/rbspy/rbspy.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/thread_id/thread_id.so
CHANGED
Binary file
|
data/scripts/docker.sh
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -ex
|
3
|
+
|
4
|
+
BUILD_DIR="/work"
|
5
|
+
|
6
|
+
docker run \
|
7
|
+
-w /work/pyroscope_ffi/ruby/elflib/rbspy \
|
8
|
+
-v `pwd`:/work \
|
9
|
+
quay.io/pypa/${BUILD_ARCH} \
|
10
|
+
sh manylinux.sh
|
11
|
+
|
12
|
+
docker run \
|
13
|
+
-w /work/pyroscope_ffi/ruby/elflib/thread_id \
|
14
|
+
-v `pwd`:/work \
|
15
|
+
quay.io/pypa/${BUILD_ARCH} \
|
16
|
+
sh manylinux.sh
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pyroscope_beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Pyroscope Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -61,26 +61,48 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- LICENSE
|
63
63
|
- README.md
|
64
|
-
-
|
64
|
+
- elflib/rbspy/manylinux.sh
|
65
|
+
- elflib/rbspy/pyproject.toml
|
66
|
+
- elflib/rbspy/rbspy/__init__.py
|
67
|
+
- elflib/rbspy/setup.cfg
|
68
|
+
- elflib/rbspy/setup.py
|
69
|
+
- elflib/thread_id/manylinux.sh
|
70
|
+
- elflib/thread_id/pyproject.toml
|
71
|
+
- elflib/thread_id/setup.cfg
|
72
|
+
- elflib/thread_id/setup.py
|
73
|
+
- elflib/thread_id/thread_id/__init__.py
|
65
74
|
- ext/rbspy/Cargo.toml
|
66
75
|
- ext/rbspy/Rakefile
|
76
|
+
- ext/rbspy/build.rs
|
77
|
+
- ext/rbspy/cbindgen.toml
|
67
78
|
- ext/rbspy/extconf.rb
|
68
79
|
- ext/rbspy/src/lib.rs
|
69
|
-
- ext/thread_id/Cargo.lock
|
70
80
|
- ext/thread_id/Cargo.toml
|
71
81
|
- ext/thread_id/Rakefile
|
82
|
+
- ext/thread_id/build.rs
|
83
|
+
- ext/thread_id/cbindgen.toml
|
72
84
|
- ext/thread_id/extconf.rb
|
73
85
|
- ext/thread_id/src/lib.rs
|
74
86
|
- lib/pyroscope/version.rb
|
75
87
|
- lib/pyroscope_beta.rb
|
88
|
+
- lib/rbspy.libs/libcom_err-f79b9776.so.2.1
|
89
|
+
- lib/rbspy.libs/libcrypto-142cf8a3.so.1.0.1e
|
90
|
+
- lib/rbspy.libs/libgssapi_krb5-bb73e344.so.2.2
|
91
|
+
- lib/rbspy.libs/libk5crypto-ab4ddf4c.so.3.1
|
92
|
+
- lib/rbspy.libs/libkeyutils-68db41cc.so.1.3
|
93
|
+
- lib/rbspy.libs/libkrb5-7e4170ab.so.3.3
|
94
|
+
- lib/rbspy.libs/libkrb5support-2ce1fd50.so.0.1
|
95
|
+
- lib/rbspy.libs/libselinux-d72a37e2.so.1
|
96
|
+
- lib/rbspy.libs/libssl-09014658.so.1.0.1e
|
76
97
|
- lib/rbspy/rbspy.so
|
77
98
|
- lib/thread_id/thread_id.so
|
78
99
|
- pyroscope.gemspec
|
100
|
+
- scripts/docker.sh
|
79
101
|
homepage: https://pyroscope.io
|
80
102
|
licenses:
|
81
103
|
- Apache-2.0
|
82
104
|
metadata: {}
|
83
|
-
post_install_message:
|
105
|
+
post_install_message:
|
84
106
|
rdoc_options: []
|
85
107
|
require_paths:
|
86
108
|
- lib
|
@@ -95,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
117
|
- !ruby/object:Gem::Version
|
96
118
|
version: '0'
|
97
119
|
requirements: []
|
98
|
-
rubygems_version: 3.3.
|
99
|
-
signing_key:
|
120
|
+
rubygems_version: 3.3.8
|
121
|
+
signing_key:
|
100
122
|
specification_version: 4
|
101
123
|
summary: Pyroscope Beta
|
102
124
|
test_files: []
|