Skip to content

Commit cf79afc

Browse files
committed
chore(cargo): various minor changes
1 parent 2c44db7 commit cf79afc

File tree

12 files changed

+146
-22
lines changed

12 files changed

+146
-22
lines changed

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ exclude = [
2525
"pyroscope_cli",
2626
]
2727

28-
#[[bin]]
29-
#name = "pyroscope-cli"
30-
#path = "pyroscope_cli/src/main.rs"
31-
3228
[[example]]
3329
name = "internal-backend-void"
3430
path = "examples/internal/backend-void.rs"
Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,52 @@
11
[package]
22
name = "pyroscope_pprofrs"
3-
version = "0.1.0"
3+
description = """
4+
pprof-rs backend for Pyroscope Profiler.
5+
"""
6+
keywords = ["pyroscope", "profiler", "pprof-rs"]
7+
authors = ["Abid Omar <[email protected]>"]
8+
version = "0.1.0-beta"
49
edition = "2021"
10+
license = "Apache-2.0"
11+
homepage = "https://pyroscope.io"
12+
documentation = "https://docs.rs/pyroscope"
13+
repository = "https://github.com/pyroscope-io/pyroscope-rs"
14+
readme = "README.md"
515

6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
716

817
[dependencies]
918
pprof = "0.7"
10-
pyroscope = { path = "../../" }
19+
pyroscope = {version = "0.4.0", path = "../../" }
1120
thiserror ="1.0"
21+
22+
[profile.dev]
23+
opt-level=0
24+
debug = true
25+
rpath = false
26+
lto = false
27+
debug-assertions = true
28+
codegen-units = 4
29+
30+
[profile.release]
31+
opt-level=3
32+
debug = false
33+
rpath = false
34+
lto = true
35+
debug-assertions = false
36+
codegen-units = 1
37+
38+
[profile.test]
39+
opt-level = 1
40+
debug = true
41+
rpath = false
42+
lto = false
43+
debug-assertions = true
44+
codegen-units = 4
45+
46+
[profile.bench]
47+
opt-level = 3
48+
debug = false
49+
rpath = false
50+
lto = true
51+
debug-assertions = false
52+
codegen-units = 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# pprof-rs
2+
3+
Backend implementation for [pprof-rs](https://github.com/tikv/pprof-rs).
Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
11
[package]
22
name = "pyroscope_pyspy"
3-
version = "0.1.0"
3+
description = """
4+
pyspy backend for Pyroscope Profiler.
5+
"""
6+
keywords = ["pyroscope", "profiler", "pyspy"]
7+
authors = ["Abid Omar <[email protected]>"]
8+
version = "0.1.0-beta"
49
edition = "2021"
5-
6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10+
license = "Apache-2.0"
11+
homepage = "https://pyroscope.io"
12+
documentation = "https://docs.rs/pyroscope"
13+
repository = "https://github.com/pyroscope-io/pyroscope-rs"
14+
readme = "README.md"
715

816
[dependencies]
917
py-spy = "0.3.11"
10-
pyroscope = { path = "../../" }
18+
pyroscope = { version = "0.4.0", path = "../../" }
1119
thiserror ="1.0"
20+
21+
[profile.dev]
22+
opt-level=0
23+
debug = true
24+
rpath = false
25+
lto = false
26+
debug-assertions = true
27+
codegen-units = 4
28+
29+
[profile.release]
30+
opt-level=3
31+
debug = false
32+
rpath = false
33+
lto = true
34+
debug-assertions = false
35+
codegen-units = 1
36+
37+
[profile.test]
38+
opt-level = 1
39+
debug = true
40+
rpath = false
41+
lto = false
42+
debug-assertions = true
43+
codegen-units = 4
44+
45+
[profile.bench]
46+
opt-level = 3
47+
debug = false
48+
rpath = false
49+
lto = true
50+
debug-assertions = false
51+
codegen-units = 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pyspy
2+
3+
Backend implementation for [pyspy](https://github.com/benfred/py-spy)
Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,53 @@
11
[package]
22
name = "pyroscope_rbspy"
3-
version = "0.1.0"
3+
description = """
4+
rbspy backend for Pyroscope Profiler.
5+
"""
6+
keywords = ["pyroscope", "profiler", "rbspy"]
7+
authors = ["Abid Omar <[email protected]>"]
8+
version = "0.1.0-beta"
49
edition = "2021"
5-
6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10+
license = "Apache-2.0"
11+
homepage = "https://pyroscope.io"
12+
documentation = "https://docs.rs/pyroscope"
13+
repository = "https://github.com/pyroscope-io/pyroscope-rs"
14+
readme = "README.md"
715

816
[dependencies]
917
rbspy = "0.11.1"
1018
pyroscope = { path = "../../" }
1119
thiserror ="1.0"
1220
log = "0.4"
1321
anyhow = "*"
22+
23+
[profile.dev]
24+
opt-level=0
25+
debug = true
26+
rpath = false
27+
lto = false
28+
debug-assertions = true
29+
codegen-units = 4
30+
31+
[profile.release]
32+
opt-level=3
33+
debug = false
34+
rpath = false
35+
lto = true
36+
debug-assertions = false
37+
codegen-units = 1
38+
39+
[profile.test]
40+
opt-level = 1
41+
debug = true
42+
rpath = false
43+
lto = false
44+
debug-assertions = true
45+
codegen-units = 4
46+
47+
[profile.bench]
48+
opt-level = 3
49+
debug = false
50+
rpath = false
51+
lto = true
52+
debug-assertions = false
53+
codegen-units = 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#rbspy
2+
3+
Backend implementation for [rbspy](https://github.com/rbspy/rbspy)

pyroscope_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pyroscope Profiler CLI
55
"""
66
keywords = ["pyroscope", "profiler", "cli"]
77
authors = ["Abid Omar <[email protected]>"]
8-
version = "0.4.0"
8+
version = "0.0.1-beta"
99
edition = "2021"
1010
license = "Apache-2.0"
1111
homepage = "https://pyroscope.io"

src/backend.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ impl std::fmt::Display for Report {
160160
}
161161

162162
/// StackTrace
163+
/// A representation of a stack trace.
163164
#[derive(Debug, Default, PartialEq, Eq, Hash, Clone)]
164165
pub struct StackTrace {
165166
/// Process ID
@@ -188,6 +189,7 @@ impl StackTrace {
188189
}
189190

190191
/// StackFrame
192+
/// A representation of a stack frame.
191193
#[derive(Debug, Default, PartialEq, Eq, Hash, Clone)]
192194
pub struct StackFrame {
193195
/// Module name

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! # Quick Start
44
//!
5-
//! ## Configure Pyroscope Agent
5+
//! ## Configure a Pyroscope Agent
66
//!
77
//! ```ignore
88
//! let mut agent =

0 commit comments

Comments
 (0)