Skip to content

Commit

Permalink
chore(release): 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
omarabid committed Jan 26, 2022
1 parent 6d6d022 commit c659d0b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ Pyroscope Profiler
"""
keywords = ["pyroscope", "profiler"]
authors = ["Abid Omar <[email protected]>"]
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]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
pyroscope = "0.2.0-beta"
pyroscope = "0.3.0"
```

Configure your profiler:
Expand All @@ -38,9 +38,9 @@ Profile your code:

```rust

agent.start()?;
agent.start();
// Profiled computation
agent.stop()?;
agent.stop();

// Non-profiled computation
```
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/pyroscope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down
4 changes: 1 addition & 3 deletions tests/timer-epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 == ());
}
Expand Down

0 comments on commit c659d0b

Please sign in to comment.