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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aa796d6f32f43abaedb08bf6c1a4a85c0c869210b6acc4dbddbe866a8e37a29
4
- data.tar.gz: 4708ac6a14371af7d1dc1f03a7e40ffd1e68d79a0acdc0c7a9ea36209c3ee52a
3
+ metadata.gz: '086621e87e8ea84227b0d1e7588e04d6863e0c7747b8028e7eb91f15ecfa703e'
4
+ data.tar.gz: fdbd2d92bd973186bd56d991c166e17241358ac5f4a069f8ed9c9fff12887962
5
5
  SHA512:
6
- metadata.gz: 2379b06f4f5a6bcdcb0bb755172c3a240c5747cf50fe364fb0008dce8f90914fe78c4b05a33c44068db79a0d7eec42333742a8d617ceb36d13b2ce0334f6e46e
7
- data.tar.gz: 21e6d584c6a9b70ed4abef3b10d2d6b5ab80aafcdb5c82b880de714734105d0012c069232cdac047ebf4f1094bf9deafe7cedefef96d4b250f0579f515b8b57e
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) }
@@ -1,3 +1,3 @@
1
1
  module Pyroscope
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyroscope_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pyroscope Team