libddprof 0.3.0.1.0-x86_64-linux → 0.5.0.1.0.beta1-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libddprof/version.rb +2 -2
- data/lib/libddprof.rb +2 -2
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/LICENSE +0 -0
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/LICENSE-3rdparty.yml +1 -1
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/NOTICE +0 -0
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/include/ddprof/ffi.h +1 -1
- data/vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/libddprof_ffi.so +0 -0
- data/vendor/{libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi.pc → libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi_with_rpath.pc} +3 -3
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/LICENSE +0 -0
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/LICENSE-3rdparty.yml +1 -1
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/NOTICE +0 -0
- data/vendor/{libddprof-0.3.0 → libddprof-0.5.0}/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/include/ddprof/ffi.h +1 -1
- data/vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/lib/libddprof_ffi.so +0 -0
- data/vendor/{libddprof-0.3.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi.pc → libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi_with_rpath.pc} +3 -3
- metadata +17 -25
- data/.rspec +0 -3
- data/.standard.yml +0 -3
- data/README.md +0 -31
- data/Rakefile +0 -163
- data/docker-compose.yml +0 -14
- data/gems.rb +0 -13
- data/vendor/libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/cmake/DDProfConfig.cmake +0 -41
- data/vendor/libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/libddprof_ffi.a +0 -0
- data/vendor/libddprof-0.3.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/cmake/DDProfConfig.cmake +0 -41
- data/vendor/libddprof-0.3.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/lib/libddprof_ffi.a +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59274aaef3ddd1bc233e5c90462527787ea94a41f913d50939dc2baeeea575ae
|
4
|
+
data.tar.gz: 2b9195ef543447d834e0366dfdc597a32fd09fd35d7a4dce4476414a32a7010e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53859cdc45a2afa36bd6fb81a7e32842fd13e6ef50c3eb7a8b37bc2e1ed278da447e851e6aa77ba881a7a7f2057db095fc69fa86d5da08937bda53f9b61511ff
|
7
|
+
data.tar.gz: c90a2e09b277f4ead6520d22921672d49a51548088f291328829e87698a7aa07f72c0e1e52980766b34262200f99168f0dd3d80920e64f0e09f28b7b989efb5a
|
data/lib/libddprof/version.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
module Libddprof
|
4
4
|
# Current libddprof version
|
5
|
-
LIB_VERSION = "0.
|
5
|
+
LIB_VERSION = "0.5.0"
|
6
6
|
|
7
7
|
GEM_MAJOR_VERSION = "1"
|
8
8
|
GEM_MINOR_VERSION = "0"
|
9
|
-
GEM_PRERELEASE_VERSION = "" # remember to include dot prefix, if needed!
|
9
|
+
GEM_PRERELEASE_VERSION = ".beta1" # remember to include dot prefix, if needed!
|
10
10
|
private_constant :GEM_MAJOR_VERSION, :GEM_MINOR_VERSION, :GEM_PRERELEASE_VERSION
|
11
11
|
|
12
12
|
# The gem version scheme is lib_version.gem_major.gem_minor[.prerelease].
|
data/lib/libddprof.rb
CHANGED
@@ -13,12 +13,12 @@ module Libddprof
|
|
13
13
|
File.directory?(vendor_directory) ? (Dir.entries(vendor_directory) - [".", ".."]) : []
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.pkgconfig_folder
|
16
|
+
def self.pkgconfig_folder(pkgconfig_file_name = "ddprof_ffi_with_rpath.pc")
|
17
17
|
current_platform = Gem::Platform.local.to_s
|
18
18
|
|
19
19
|
return unless available_binaries.include?(current_platform)
|
20
20
|
|
21
|
-
pkgconfig_file = Dir.glob("#{vendor_directory}/#{current_platform}
|
21
|
+
pkgconfig_file = Dir.glob("#{vendor_directory}/#{current_platform}/**/#{pkgconfig_file_name}").first
|
22
22
|
|
23
23
|
return unless pkgconfig_file
|
24
24
|
|
File without changes
|
File without changes
|
data/vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/libddprof_ffi.so
ADDED
Binary file
|
@@ -9,9 +9,9 @@ libdir=${exec_prefix}/lib
|
|
9
9
|
includedir=${prefix}/include
|
10
10
|
|
11
11
|
Name: ddprof_ffi
|
12
|
-
Description: Contains common code used to implement Datadog's Continuous Profilers.
|
13
|
-
Version: 0.
|
12
|
+
Description: Contains common code used to implement Datadog's Continuous Profilers. (Dynamic linking variant, sets rpath)
|
13
|
+
Version: 0.4.0-rc.1
|
14
14
|
Requires:
|
15
|
-
Libs: -L${libdir} -lddprof_ffi
|
15
|
+
Libs: -L${libdir} -lddprof_ffi -Wl,-rpath,${libdir}
|
16
16
|
Libs.private:
|
17
17
|
Cflags: -I${includedir}
|
File without changes
|
File without changes
|
Binary file
|
@@ -9,9 +9,9 @@ libdir=${exec_prefix}/lib
|
|
9
9
|
includedir=${prefix}/include
|
10
10
|
|
11
11
|
Name: ddprof_ffi
|
12
|
-
Description: Contains common code used to implement Datadog's Continuous Profilers.
|
13
|
-
Version: 0.
|
12
|
+
Description: Contains common code used to implement Datadog's Continuous Profilers. (Dynamic linking variant, sets rpath)
|
13
|
+
Version: 0.4.0-rc.1
|
14
14
|
Requires:
|
15
|
-
Libs: -L${libdir} -lddprof_ffi
|
15
|
+
Libs: -L${libdir} -lddprof_ffi -Wl,-rpath,${libdir}
|
16
16
|
Libs.private:
|
17
17
|
Cflags: -I${includedir}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libddprof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0.1.0.beta1
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: libddprof contains implementation bits used by Datadog's ddtrace gem
|
14
14
|
as part of its Continuous Profiler feature.
|
@@ -18,28 +18,20 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- ".rspec"
|
22
|
-
- ".standard.yml"
|
23
|
-
- README.md
|
24
|
-
- Rakefile
|
25
|
-
- docker-compose.yml
|
26
|
-
- gems.rb
|
27
21
|
- lib/libddprof.rb
|
28
22
|
- lib/libddprof/version.rb
|
29
|
-
- vendor/libddprof-0.
|
30
|
-
- vendor/libddprof-0.
|
31
|
-
- vendor/libddprof-0.
|
32
|
-
- vendor/libddprof-0.
|
33
|
-
- vendor/libddprof-0.
|
34
|
-
- vendor/libddprof-0.
|
35
|
-
- vendor/libddprof-0.
|
36
|
-
- vendor/libddprof-0.
|
37
|
-
- vendor/libddprof-0.
|
38
|
-
- vendor/libddprof-0.
|
39
|
-
- vendor/libddprof-0.
|
40
|
-
- vendor/libddprof-0.
|
41
|
-
- vendor/libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/libddprof_ffi.a
|
42
|
-
- vendor/libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi.pc
|
23
|
+
- vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/LICENSE
|
24
|
+
- vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/LICENSE-3rdparty.yml
|
25
|
+
- vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/NOTICE
|
26
|
+
- vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/include/ddprof/ffi.h
|
27
|
+
- vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/lib/libddprof_ffi.so
|
28
|
+
- vendor/libddprof-0.5.0/x86_64-linux-musl/libddprof-x86_64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi_with_rpath.pc
|
29
|
+
- vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/LICENSE
|
30
|
+
- vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/LICENSE-3rdparty.yml
|
31
|
+
- vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/NOTICE
|
32
|
+
- vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/include/ddprof/ffi.h
|
33
|
+
- vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/libddprof_ffi.so
|
34
|
+
- vendor/libddprof-0.5.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi_with_rpath.pc
|
43
35
|
homepage: https://docs.datadoghq.com/tracing/profiler/
|
44
36
|
licenses:
|
45
37
|
- Apache-2.0
|
@@ -59,11 +51,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
51
|
version: 2.1.0
|
60
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
53
|
requirements:
|
62
|
-
- - "
|
54
|
+
- - ">"
|
63
55
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
56
|
+
version: 1.3.1
|
65
57
|
requirements: []
|
66
|
-
rubygems_version: 3.3.
|
58
|
+
rubygems_version: 3.3.7
|
67
59
|
signing_key:
|
68
60
|
specification_version: 4
|
69
61
|
summary: Library of common code used by Datadog Continuous Profiler for Ruby
|
data/.rspec
DELETED
data/.standard.yml
DELETED
data/README.md
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# libddprof Ruby gem
|
2
|
-
|
3
|
-
`libddprof` provides a shared library containing common code used in the implementation of Datadog's
|
4
|
-
[Continuous Profilers](https://docs.datadoghq.com/tracing/profiler/).
|
5
|
-
|
6
|
-
**NOTE**: If you're building a new profiler or want to contribute to Datadog's existing profilers,
|
7
|
-
you've come to the right place!
|
8
|
-
Otherwise, this is possibly not the droid you were looking for.
|
9
|
-
|
10
|
-
## Development
|
11
|
-
|
12
|
-
Run `bundle exec rake` to run the tests and the style autofixer.
|
13
|
-
You can also run `bundle exec pry` for an interactive prompt that will allow you to experiment.
|
14
|
-
|
15
|
-
## Releasing a new version to rubygems.org
|
16
|
-
|
17
|
-
Note: No Ruby needed to run this! It all runs inside docker :)
|
18
|
-
|
19
|
-
Note: Publishing new releases to rubygems.org can only be done by Datadog employees.
|
20
|
-
|
21
|
-
1. [ ] Locate the new libddprof release on GitHub: <https://github.com/DataDog/libddprof/releases>
|
22
|
-
2. [ ] Update the `LIB_GITHUB_RELEASES` section of the <Rakefile> with the new version
|
23
|
-
3. [ ] Update the <lib/libddprof/version.rb> file with the `LIB_VERSION` and `VERSION` to use
|
24
|
-
4. [ ] Commit change, open PR, get it merged
|
25
|
-
5. [ ] Release by running `docker-compose run push_to_rubygems`.
|
26
|
-
(When asked for rubygems credentials, check your local friendly Datadog 1Password.)
|
27
|
-
6. [ ] Verify that release shows up correctly on: <https://rubygems.org/gems/libddprof>
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
See <../CONTRIBUTING.md>.
|
data/Rakefile
DELETED
@@ -1,163 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
require "rspec/core/rake_task"
|
5
|
-
require "standard/rake" unless RUBY_VERSION < "2.5"
|
6
|
-
|
7
|
-
require "fileutils"
|
8
|
-
require "http" unless RUBY_VERSION < "2.5"
|
9
|
-
require "pry"
|
10
|
-
require "rubygems/package"
|
11
|
-
|
12
|
-
RSpec::Core::RakeTask.new(:spec)
|
13
|
-
|
14
|
-
LIB_GITHUB_RELEASES = {
|
15
|
-
"0.2.0" => [
|
16
|
-
{
|
17
|
-
file: "libddprof-x86_64-alpine-linux-musl.tar.gz",
|
18
|
-
sha256: "d519a6241d78260522624b8e79e98502510f11d5d9551f5f80fc1134e95fa146",
|
19
|
-
ruby_platform: "x86_64-linux-musl"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
file: "libddprof-x86_64-unknown-linux-gnu.tar.gz",
|
23
|
-
sha256: "cba0f24074d44781d7252b912faff50d330957e84a8f40a172a8138e81001f27",
|
24
|
-
ruby_platform: "x86_64-linux"
|
25
|
-
}
|
26
|
-
],
|
27
|
-
"0.3.0" => [
|
28
|
-
{
|
29
|
-
file: "libddprof-x86_64-alpine-linux-musl.tar.gz",
|
30
|
-
sha256: "854609c1acc86f6653f539b3fe8780ad1e60d8738f85efdb3b1aa0054e75a217",
|
31
|
-
ruby_platform: "x86_64-linux-musl"
|
32
|
-
},
|
33
|
-
{
|
34
|
-
file: "libddprof-x86_64-unknown-linux-gnu.tar.gz",
|
35
|
-
sha256: "d9c64567e7ef5f957581dd81892b144b81e1f52fdf5671430c7af0b039b48929",
|
36
|
-
ruby_platform: "x86_64-linux"
|
37
|
-
}
|
38
|
-
]
|
39
|
-
# Add more versions here
|
40
|
-
}
|
41
|
-
|
42
|
-
task default: [
|
43
|
-
:spec,
|
44
|
-
(:'standard:fix' unless RUBY_VERSION < "2.5")
|
45
|
-
].compact
|
46
|
-
|
47
|
-
desc "Download lib release from github"
|
48
|
-
task :fetch do
|
49
|
-
Helpers.each_github_release_variant do |file:, sha256:, target_directory:, target_file:, **_|
|
50
|
-
target_url = "https://github.com/DataDog/libddprof/releases/download/v#{Libddprof::LIB_VERSION}/#{file}"
|
51
|
-
|
52
|
-
if File.exist?(target_file)
|
53
|
-
target_file_hash = Digest::SHA256.hexdigest(File.read(target_file))
|
54
|
-
|
55
|
-
if target_file_hash == sha256
|
56
|
-
puts "Found #{target_file} matching the expected sha256, skipping download"
|
57
|
-
next
|
58
|
-
else
|
59
|
-
puts "Found #{target_file} with hash (#{target_file_hash}) BUT IT DID NOT MATCH THE EXPECTED sha256 (#{sha256}), downloading it again..."
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
puts "Going to download #{target_url} into #{target_file}"
|
64
|
-
|
65
|
-
File.open(target_file, "wb") do |file|
|
66
|
-
HTTP.follow.get(target_url).body.each { |chunk| file.write(chunk) }
|
67
|
-
end
|
68
|
-
|
69
|
-
if Digest::SHA256.hexdigest(File.read(target_file)) == sha256
|
70
|
-
puts "Success!"
|
71
|
-
else
|
72
|
-
raise "Downloaded file is corrupt, does not match expected sha256"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
desc "Extract lib downloaded releases"
|
78
|
-
task extract: [:fetch] do
|
79
|
-
Helpers.each_github_release_variant do |target_directory:, target_file:, **_|
|
80
|
-
puts "Extracting #{target_file}"
|
81
|
-
File.open(target_file, "rb") do |file|
|
82
|
-
Gem::Package.new("").extract_tar_gz(file, target_directory)
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
desc "Package lib downloaded releases as gems"
|
88
|
-
task package: [:spec, :'standard:fix', :extract] do
|
89
|
-
gemspec = eval(File.read("libddprof.gemspec"), nil, "libddprof.gemspec") # standard:disable Security/Eval
|
90
|
-
FileUtils.mkdir_p("pkg")
|
91
|
-
|
92
|
-
Helpers.package_without_binaries(gemspec)
|
93
|
-
Helpers.package_linux_x86_64(gemspec)
|
94
|
-
end
|
95
|
-
|
96
|
-
desc "Release all packaged gems"
|
97
|
-
task push_to_rubygems: [
|
98
|
-
:package,
|
99
|
-
:'release:guard_clean'
|
100
|
-
] do
|
101
|
-
system("gem signout") # make sure there are no existing credentials in use
|
102
|
-
|
103
|
-
system("gem push pkg/libddprof-#{Libddprof::VERSION}.gem")
|
104
|
-
system("gem push pkg/libddprof-#{Libddprof::VERSION}-x86_64-linux.gem")
|
105
|
-
|
106
|
-
system("gem signout") # leave no credentials behind
|
107
|
-
end
|
108
|
-
|
109
|
-
module Helpers
|
110
|
-
def self.each_github_release_variant(version: Libddprof::LIB_VERSION)
|
111
|
-
LIB_GITHUB_RELEASES.fetch(version).each do |variant|
|
112
|
-
file = variant.fetch(:file)
|
113
|
-
sha256 = variant.fetch(:sha256)
|
114
|
-
ruby_platform = variant.fetch(:ruby_platform)
|
115
|
-
|
116
|
-
# These two are so common that we just centralize them here
|
117
|
-
target_directory = "vendor/libddprof-#{version}/#{ruby_platform}"
|
118
|
-
target_file = "#{target_directory}/#{file}"
|
119
|
-
|
120
|
-
FileUtils.mkdir_p(target_directory)
|
121
|
-
|
122
|
-
yield(file: file, sha256: sha256, ruby_platform: ruby_platform, target_directory: target_directory, target_file: target_file)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
def self.package_without_binaries(gemspec)
|
127
|
-
target_gemspec = gemspec.dup
|
128
|
-
|
129
|
-
puts "Building a variant without binaries including:"
|
130
|
-
pp target_gemspec.files
|
131
|
-
|
132
|
-
package = Gem::Package.build(target_gemspec)
|
133
|
-
FileUtils.mv(package, "pkg")
|
134
|
-
puts("-" * 80)
|
135
|
-
end
|
136
|
-
|
137
|
-
def self.package_linux_x86_64(gemspec)
|
138
|
-
# We include both glibc and musl variants in the same binary gem to avoid the issues
|
139
|
-
# documented in https://github.com/rubygems/rubygems/issues/3174
|
140
|
-
target_gemspec = gemspec.dup
|
141
|
-
target_gemspec.files += files_for("x86_64-linux", "x86_64-linux-musl")
|
142
|
-
target_gemspec.platform = "x86_64-linux"
|
143
|
-
|
144
|
-
puts "Building for x86_64-linux including: (this can take a while)"
|
145
|
-
pp target_gemspec.files
|
146
|
-
|
147
|
-
package = Gem::Package.build(target_gemspec)
|
148
|
-
FileUtils.mv(package, "pkg")
|
149
|
-
puts("-" * 80)
|
150
|
-
end
|
151
|
-
|
152
|
-
def self.files_for(*included_platforms, version: Libddprof::LIB_VERSION)
|
153
|
-
files = []
|
154
|
-
|
155
|
-
each_github_release_variant(version: version) do |ruby_platform:, target_directory:, target_file:, **_|
|
156
|
-
next unless included_platforms.include?(ruby_platform)
|
157
|
-
|
158
|
-
files += Dir.glob("#{target_directory}/**/*").select { |path| File.file?(path) } - [target_file]
|
159
|
-
end
|
160
|
-
|
161
|
-
files
|
162
|
-
end
|
163
|
-
end
|
data/docker-compose.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
version: '3.2'
|
2
|
-
services:
|
3
|
-
push_to_rubygems:
|
4
|
-
image: ruby:3.1
|
5
|
-
platform: linux/x86_64
|
6
|
-
stdin_open: true
|
7
|
-
tty: true
|
8
|
-
command: bash -c 'cd /libddprof/ruby && bundle install && bundle exec rake push_to_rubygems'
|
9
|
-
volumes:
|
10
|
-
- ..:/libddprof
|
11
|
-
- bundle-3.1:/usr/local/bundle
|
12
|
-
|
13
|
-
volumes:
|
14
|
-
bundle-3.1:
|
data/gems.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in libddprof.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem "rake", ">= 12.0", "< 14"
|
9
|
-
gem "rspec", "~> 3.10"
|
10
|
-
gem "standard", "~> 1.3" unless RUBY_VERSION < "2.5"
|
11
|
-
gem "http", "~> 5.0" unless RUBY_VERSION < "2.5"
|
12
|
-
gem "pry"
|
13
|
-
gem "pry-byebug" unless RUBY_VERSION > "3.1"
|
data/vendor/libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/cmake/DDProfConfig.cmake
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
2
|
-
# This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021-Present Datadog, Inc.
|
3
|
-
include(FindPackageHandleStandardArgs)
|
4
|
-
|
5
|
-
if (DEFINED ENV{DDProf_ROOT})
|
6
|
-
set(DDProf_ROOT "$ENV{DDProf_ROOT}")
|
7
|
-
else ()
|
8
|
-
# If the environment variable is not set, maybe we are part of a build
|
9
|
-
set(DDProf_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
10
|
-
endif ()
|
11
|
-
|
12
|
-
find_path(DDProf_INCLUDE_DIR ddprof/ffi.h
|
13
|
-
HINTS ${DDProf_ROOT}/include
|
14
|
-
)
|
15
|
-
|
16
|
-
find_library(DDProf_FFI_LIBRARY NAMES ddprof_ffi
|
17
|
-
HINTS ${DDProf_ROOT}/lib
|
18
|
-
)
|
19
|
-
|
20
|
-
find_package_handle_standard_args(DDProf DEFAULT_MSG
|
21
|
-
DDProf_FFI_LIBRARY
|
22
|
-
DDProf_INCLUDE_DIR
|
23
|
-
)
|
24
|
-
|
25
|
-
if (DDProf_FOUND)
|
26
|
-
set(DDProf_INCLUDE_DIRS ${DDProf_INCLUDE_DIR})
|
27
|
-
set(DDProf_LIBRARIES ${DDProf_FFI_LIBRARY} -ldl -lrt -lpthread -lc -lm -lrt -lpthread -lutil -ldl -lutil)
|
28
|
-
mark_as_advanced(
|
29
|
-
DDProf_ROOT
|
30
|
-
DDProf_FFI_LIBRARY
|
31
|
-
DDProf_INCLUDE_DIR
|
32
|
-
)
|
33
|
-
|
34
|
-
add_library(ddprof-ffi INTERFACE)
|
35
|
-
target_include_directories(ddprof-ffi INTERFACE ${DDProf_INCLUDE_DIRS})
|
36
|
-
target_link_libraries(ddprof-ffi INTERFACE ${DDProf_LIBRARIES})
|
37
|
-
target_compile_features(ddprof-ffi INTERFACE c_std_11)
|
38
|
-
add_library(DDProf::FFI ALIAS ddprof-ffi)
|
39
|
-
else ()
|
40
|
-
set(DDProf_ROOT "" CACHE STRING "Directory containing libddprof")
|
41
|
-
endif ()
|
data/vendor/libddprof-0.3.0/x86_64-linux/libddprof-x86_64-unknown-linux-gnu/lib/libddprof_ffi.a
DELETED
Binary file
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
2
|
-
# This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021-Present Datadog, Inc.
|
3
|
-
include(FindPackageHandleStandardArgs)
|
4
|
-
|
5
|
-
if (DEFINED ENV{DDProf_ROOT})
|
6
|
-
set(DDProf_ROOT "$ENV{DDProf_ROOT}")
|
7
|
-
else ()
|
8
|
-
# If the environment variable is not set, maybe we are part of a build
|
9
|
-
set(DDProf_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
10
|
-
endif ()
|
11
|
-
|
12
|
-
find_path(DDProf_INCLUDE_DIR ddprof/ffi.h
|
13
|
-
HINTS ${DDProf_ROOT}/include
|
14
|
-
)
|
15
|
-
|
16
|
-
find_library(DDProf_FFI_LIBRARY NAMES ddprof_ffi
|
17
|
-
HINTS ${DDProf_ROOT}/lib
|
18
|
-
)
|
19
|
-
|
20
|
-
find_package_handle_standard_args(DDProf DEFAULT_MSG
|
21
|
-
DDProf_FFI_LIBRARY
|
22
|
-
DDProf_INCLUDE_DIR
|
23
|
-
)
|
24
|
-
|
25
|
-
if (DDProf_FOUND)
|
26
|
-
set(DDProf_INCLUDE_DIRS ${DDProf_INCLUDE_DIR})
|
27
|
-
set(DDProf_LIBRARIES ${DDProf_FFI_LIBRARY} -lssp_nonshared -lc)
|
28
|
-
mark_as_advanced(
|
29
|
-
DDProf_ROOT
|
30
|
-
DDProf_FFI_LIBRARY
|
31
|
-
DDProf_INCLUDE_DIR
|
32
|
-
)
|
33
|
-
|
34
|
-
add_library(ddprof-ffi INTERFACE)
|
35
|
-
target_include_directories(ddprof-ffi INTERFACE ${DDProf_INCLUDE_DIRS})
|
36
|
-
target_link_libraries(ddprof-ffi INTERFACE ${DDProf_LIBRARIES})
|
37
|
-
target_compile_features(ddprof-ffi INTERFACE c_std_11)
|
38
|
-
add_library(DDProf::FFI ALIAS ddprof-ffi)
|
39
|
-
else ()
|
40
|
-
set(DDProf_ROOT "" CACHE STRING "Directory containing libddprof")
|
41
|
-
endif ()
|