pyroscope_beta 0.1.2 → 0.1.3
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/ext/rbspy/src/lib.rs +4 -5
- data/lib/pyroscope/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '086621e87e8ea84227b0d1e7588e04d6863e0c7747b8028e7eb91f15ecfa703e'
|
4
|
+
data.tar.gz: fdbd2d92bd973186bd56d991c166e17241358ac5f4a069f8ed9c9fff12887962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 291d6f3a187ae27994fa194a0180f18ae26b7c9ca4f59fc02622e3e1aa3a8200d0ed9635792326e52a5d944b8c0bba57e2829f5592d6090bcea067148160caf2
|
7
|
+
data.tar.gz: 5afe3f72fc7ab7c0a986d6fadadb3c168d4bea11e915dec526da6314e6b4d44ecab54a918c4bbab7714b9fb133e363640f9d0bfeb1cd60d8119e64ed3159c497
|
data/ext/rbspy/src/lib.rs
CHANGED
@@ -34,9 +34,8 @@ fn signalpass() -> &'static SignalPass {
|
|
34
34
|
unsafe { SIGNAL_PASS.assume_init_ref() }
|
35
35
|
}
|
36
36
|
|
37
|
-
#[link(name = "pyroscope_ffi", vers = "0.1")]
|
38
37
|
#[no_mangle]
|
39
|
-
pub fn initialize_agent(
|
38
|
+
pub extern "C" fn initialize_agent(
|
40
39
|
application_name: *const c_char, server_address: *const c_char, sample_rate: u32,
|
41
40
|
detect_subprocesses: bool, tags: *const c_char,
|
42
41
|
) -> bool {
|
@@ -97,7 +96,7 @@ pub fn initialize_agent(
|
|
97
96
|
|
98
97
|
#[link(name = "pyroscope_ffi", vers = "0.1")]
|
99
98
|
#[no_mangle]
|
100
|
-
pub fn drop_agent() -> bool {
|
99
|
+
pub extern "C" fn drop_agent() -> bool {
|
101
100
|
let s = signalpass();
|
102
101
|
s.inner_sender.lock().unwrap().send(Signal::Kill).unwrap();
|
103
102
|
true
|
@@ -105,7 +104,7 @@ pub fn drop_agent() -> bool {
|
|
105
104
|
|
106
105
|
#[link(name = "pyroscope_ffi", vers = "0.1")]
|
107
106
|
#[no_mangle]
|
108
|
-
pub fn add_tag(thread_id: u64, key: *const c_char, value: *const c_char) -> bool {
|
107
|
+
pub extern "C" fn add_tag(thread_id: u64, key: *const c_char, value: *const c_char) -> bool {
|
109
108
|
let s = signalpass();
|
110
109
|
let key = unsafe { CStr::from_ptr(key) }.to_str().unwrap().to_owned();
|
111
110
|
let value = unsafe { CStr::from_ptr(value) }
|
@@ -122,7 +121,7 @@ pub fn add_tag(thread_id: u64, key: *const c_char, value: *const c_char) -> bool
|
|
122
121
|
|
123
122
|
#[link(name = "pyroscope_ffi", vers = "0.1")]
|
124
123
|
#[no_mangle]
|
125
|
-
pub fn remove_tag(thread_id: u64, key: *const c_char, value: *const c_char) -> bool {
|
124
|
+
pub extern "C" fn remove_tag(thread_id: u64, key: *const c_char, value: *const c_char) -> bool {
|
126
125
|
let s = signalpass();
|
127
126
|
let key = unsafe { CStr::from_ptr(key) }.to_str().unwrap().to_owned();
|
128
127
|
let value = unsafe { CStr::from_ptr(value) }
|
data/lib/pyroscope/version.rb
CHANGED