Skip to content

Commit c659d0b

Browse files
committed
chore(release): 0.3.0
1 parent 6d6d022 commit c659d0b

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Pyroscope Profiler
55
"""
66
keywords = ["pyroscope", "profiler"]
77
authors = ["Abid Omar <[email protected]>"]
8-
version = "0.2.0-alpha"
8+
version = "0.3.0"
99
edition = "2021"
1010
license = "Apache-2.0"
1111
homepage = "https://pyroscope.io"
1212
documentation = "https://docs.rs/pyroscope"
13-
repository = "https://github.com/omarabid/pyroscope.git"
13+
repository = "https://github.com/pyroscope-io/pyroscope-rs"
1414
readme = "README.md"
1515

1616
[dependencies]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add this to your `Cargo.toml`:
2222

2323
```toml
2424
[dependencies]
25-
pyroscope = "0.2.0-beta"
25+
pyroscope = "0.3.0"
2626
```
2727

2828
Configure your profiler:
@@ -38,9 +38,9 @@ Profile your code:
3838

3939
```rust
4040

41-
agent.start()?;
41+
agent.start();
4242
// Profiled computation
43-
agent.stop()?;
43+
agent.stop();
4444

4545
// Non-profiled computation
4646
```

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
//! To start profiling code and sending data.
2222
//!
2323
//! ```ignore
24-
//! agent.start()?;
24+
//! agent.start();
2525
//! ```
2626
//!
2727
//! To stop profiling code. You can restart the profiling at a later point.
2828
//!
2929
//! ```ignore
30-
//! agent.stop()?;
30+
//! agent.stop();
3131
//! ```
3232
3333
// Re-exports structs

src/pyroscope.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl PyroscopeAgent {
328328
/// # Example
329329
/// ```ignore
330330
/// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build().unwrap();
331-
/// agent.start().unwrap();
331+
/// agent.start();
332332
/// ```
333333
pub fn start(&mut self) {
334334
match self._start() {
@@ -361,7 +361,7 @@ impl PyroscopeAgent {
361361
/// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build().unwrap();
362362
/// agent.start().unwrap();
363363
/// // Expensive operation
364-
/// agent.stop().unwrap();
364+
/// agent.stop();
365365
/// ```
366366
pub fn stop(&mut self) {
367367
match self._stop() {

tests/timer-epoll.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ mod tests {
7878
let mut events = vec![libc::epoll_event { events: 0, u64: 0 }];
7979

8080
// Expire in 1ms
81-
let void = unsafe {
82-
epoll_wait(epoll_fd, events.as_mut_ptr(), 1, 1).unwrap();
83-
};
81+
let void = unsafe { epoll_wait(epoll_fd, events.as_mut_ptr(), 1, 1).unwrap() };
8482

8583
assert!(void == ());
8684
}

0 commit comments

Comments
 (0)