From c659d0bffe624150c6a69be29f29162f4de2d57c Mon Sep 17 00:00:00 2001 From: Abid Omar Date: Wed, 26 Jan 2022 02:17:57 +0100 Subject: [PATCH] chore(release): 0.3.0 --- Cargo.toml | 4 ++-- README.md | 6 +++--- src/lib.rs | 4 ++-- src/pyroscope.rs | 4 ++-- tests/timer-epoll.rs | 4 +--- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4285108b..657e246b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,12 +5,12 @@ Pyroscope Profiler """ keywords = ["pyroscope", "profiler"] authors = ["Abid Omar "] -version = "0.2.0-alpha" +version = "0.3.0" edition = "2021" license = "Apache-2.0" homepage = "https://pyroscope.io" documentation = "https://docs.rs/pyroscope" -repository = "https://github.com/omarabid/pyroscope.git" +repository = "https://github.com/pyroscope-io/pyroscope-rs" readme = "README.md" [dependencies] diff --git a/README.md b/README.md index 79fa07ad..8c7f22b0 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -pyroscope = "0.2.0-beta" +pyroscope = "0.3.0" ``` Configure your profiler: @@ -38,9 +38,9 @@ Profile your code: ```rust - agent.start()?; + agent.start(); // Profiled computation - agent.stop()?; + agent.stop(); // Non-profiled computation ``` diff --git a/src/lib.rs b/src/lib.rs index a0736ce8..a222e2b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,13 +21,13 @@ //! To start profiling code and sending data. //! //! ```ignore -//! agent.start()?; +//! agent.start(); //! ``` //! //! To stop profiling code. You can restart the profiling at a later point. //! //! ```ignore -//! agent.stop()?; +//! agent.stop(); //! ``` // Re-exports structs diff --git a/src/pyroscope.rs b/src/pyroscope.rs index e2d64da1..b1390045 100644 --- a/src/pyroscope.rs +++ b/src/pyroscope.rs @@ -328,7 +328,7 @@ impl PyroscopeAgent { /// # Example /// ```ignore /// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build().unwrap(); - /// agent.start().unwrap(); + /// agent.start(); /// ``` pub fn start(&mut self) { match self._start() { @@ -361,7 +361,7 @@ impl PyroscopeAgent { /// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build().unwrap(); /// agent.start().unwrap(); /// // Expensive operation - /// agent.stop().unwrap(); + /// agent.stop(); /// ``` pub fn stop(&mut self) { match self._stop() { diff --git a/tests/timer-epoll.rs b/tests/timer-epoll.rs index 113cb058..11014420 100644 --- a/tests/timer-epoll.rs +++ b/tests/timer-epoll.rs @@ -78,9 +78,7 @@ mod tests { let mut events = vec![libc::epoll_event { events: 0, u64: 0 }]; // Expire in 1ms - let void = unsafe { - epoll_wait(epoll_fd, events.as_mut_ptr(), 1, 1).unwrap(); - }; + let void = unsafe { epoll_wait(epoll_fd, events.as_mut_ptr(), 1, 1).unwrap() }; assert!(void == ()); }